Code Agent - LLM-based agent for software engineering tasks
npm install @dingjia3/code-agent#agent
- agent.config.json.sample 重命名为 agent.config.json
- 修改 agent.config.json 中的apiKey为自己的deepseek apiKey
``bash
npm i
npm run build
npm link
cd 代码项目目录
code-agent interactive
$3
`bash
安装
npm install @dingjia3/code-agent -g进入项目目录
cd 目标工程目录添加文件 agent.config.json
{
"deepseek": {
"apiKey": "sk-你的deepseek ak",
"baseUrl": "https://api.deepseek.com/v1",
"model": "deepseek-chat",
"maxTokens": 4096,
"temperature": 0.5
},
"trajectoryFile": "./logs/execution_trace.json"
}运行
ca interactive
``