{
 "schema_version": 1,
 "generated": "2026-10-26",
 "id": "harvil1-codeagent--run-terminal-agent-on-a-repo-task",
 "repo": "Harvil1/codeAgent",
 "repo_url": "https://github.com/Harvil1/codeAgent",
 "repo_slug": "harvil1-codeagent",
 "title": "Hand a multi-step coding task to a terminal agent",
 "page_title": "How to hand a multi-step coding task to a terminal agent with Code Agent",
 "summary": "Install CodeAgent, start it in a project, and let it plan, edit files, and run commands until the task is done.",
 "who": "A developer with an existing project who has a multi-file change to make and wants an agent to do the routine edits in the terminal.",
 "problem": "Routine multi-file changes take time to plan and type out, and a chat window cannot read or run anything in the repo.",
 "outcome": "The agent works inside the project folder, reads the code, changes files, runs commands and tests, and reports when the task is finished.",
 "steps": [
  "Install uv using the command for your system from the Quick Start section of the README.",
  "Run `git clone https://github.com/Harvil1/codeAgent.git` and then `cd codeAgent`.",
  "Run `uv sync` to install the dependencies.",
  "Set one provider key, for example `DEEPSEEK_API_KEY`, as an environment variable, or write it under `models. .api_key` in `~/.codeAgent/settings.json`.",
  "Run `uv run python main.py` and describe the change you want in plain language."
 ],
 "agent_prompt": "Using the Harvil1/codeAgent repo, start the interactive mode with `uv run python main.py` and give it the task: <describe the change for the target project at <path>>. Expect the agent to read the relevant files, edit them, and report a final summary. Verify by checking that the files named in the summary changed in the target project.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "The README and in-code comments are written in Chinese, and macOS is described as theoretically usable but not fully verified.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "python",
 "requirements": [
  "Python 3.11 or newer",
  "uv, the Python package manager",
  "An API key for a supported model provider, such as DeepSeek, OpenAI, Anthropic, OpenRouter, or ZhipuAI",
  "A local Git repository or project folder to point the agent at"
 ],
 "risk": "dual-use",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "credentials",
   "notice": "The API key can be stored as an environment variable or in ~/.codeAgent/settings.json, so keep that file out of shared repos and backups."
  },
  {
   "tag": "credentials",
   "notice": "Approve shell commands and file writes only after reading them, since the agent can run terminal commands in the project."
  }
 ],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/harvil1-codeagent/run-terminal-agent-on-a-repo-task/",
 "md": "https://dedupedai.com/use-cases/harvil1-codeagent/run-terminal-agent-on-a-repo-task/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/harvil1-codeagent--run-terminal-agent-on-a-repo-task.json",
 "api_version": "v1"
}
