refactor(examples): rename coding-agent leaf to repl-agent

Name the runnable leaf for the line-oriented front door it owns, matching the existing tui-agent and acp-agent organization. Move the complete config, Code Mode overlay, tests, metadata, and generated composition graph together, then update every loader path and repository reference.

Keep the shared model identity independent of its terminal front door by phrasing the persona as a coding-agent role rather than retaining the retired leaf name. Regenerate graph and tool catalogs and re-record each affected bilingual pair so derived documentation cannot point at the removed path.
This commit is contained in:
Tianyi Cui
2026-07-19 13:13:14 +08:00
parent 418b2b092b
commit 2faeabb05a
51 changed files with 167 additions and 167 deletions

View File

@@ -39,7 +39,7 @@ Harness 使用 `cordis.yml` 描述一个 Agent 加载哪些插件、以什么参
persistenceRoot: './.sessions'
```
### coding-agent 的配置
### repl-agent 的配置
真实场景——接入 DeepSeek API带完整工具链
@@ -81,7 +81,7 @@ Harness 使用 `cordis.yml` 描述一个 Agent 加载哪些插件、以什么参
persistenceRoot: './.sessions'
welcome: 'agent REPL ready. Give it a coding task.'
persona: |
You are coding-agent, a coding assistant powered by the {{model}} model.
You are a coding agent powered by the {{model}} model.
Verify your work by running the code or tests. Keep answers brief and factual.
# Token 计量:统一定义模型能看到的 token 上限

View File

@@ -69,7 +69,7 @@ echo-agent ready. Type a message ("echo <text>" triggers the tool).
DEEPSEEK_API_KEY=sk-your-key-here
```
### 启动 coding-agent
### 启动 repl-agent
```sh
pnpm run demo:repl
@@ -90,7 +90,7 @@ agent REPL ready. Give it a coding task.
## 回头看
echo-agent 和 coding-agent 用的是同一个应用框架(`@deepseek-ai/dsh-stdio-demo`),区别只在 `cordis.yml`——换了哪些插件、填了什么配置。你以后定制自己的 Agent 也是同样的方式。
echo-agent 和 repl-agent 用的是同一个应用框架(`@deepseek-ai/dsh-stdio-demo`),区别只在 `cordis.yml`——换了哪些插件、填了什么配置。你以后定制自己的 Agent 也是同样的方式。
## 下一步