cxas-agent-foundry
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAgent Foundry
Agent工厂
End-to-end lifecycle for GECX conversational agents: build, test, debug, iterate.
GECX对话式Agent全生命周期管理:构建、测试、调试、迭代。
Quick Reference
快速参考
bash
undefinedbash
undefinedLint before push (catches structural issues early)
推送前进行代码检查(提前发现结构问题)
cxas lint --app-dir <project>/cxas_app/<AppName>
cxas lint --app-dir <project>/cxas_app/<AppName>
Push local files to platform
将本地文件推送到平台
cxas push --app-dir <project>/cxas_app/<AppName>
--to projects/<project_id>/locations/<location>/apps/<app_id>
--project-id <project_id> --location <location>
--to projects/<project_id>/locations/<location>/apps/<app_id>
--project-id <project_id> --location <location>
cxas push --app-dir <project>/cxas_app/<AppName>
--to projects/<project_id>/locations/<location>/apps/<app_id>
--project-id <project_id> --location <location>
--to projects/<project_id>/locations/<location>/apps/<app_id>
--project-id <project_id> --location <location>
Pull platform state to local
将平台状态拉取到本地
cxas pull projects/<project_id>/locations/<location>/apps/<app_id>
--project-id <project_id> --location <location> --target-dir <project>/cxas_app/
--project-id <project_id> --location <location> --target-dir <project>/cxas_app/
cxas pull projects/<project_id>/locations/<location>/apps/<app_id>
--project-id <project_id> --location <location> --target-dir <project>/cxas_app/
--project-id <project_id> --location <location> --target-dir <project>/cxas_app/
Run evals + triage + report (single command)
运行评估 + 故障分类 + 生成报告(单命令)
python .agents/skills/cxas-agent-foundry/scripts/run-and-report.py --message "what changed" --runs 5
python .agents/skills/cxas-agent-foundry/scripts/run-and-report.py --message "what changed" --runs 5
Inspect app architecture
检查应用架构
python .agents/skills/cxas-agent-foundry/scripts/inspect-app.py
python .agents/skills/cxas-agent-foundry/scripts/inspect-app.py
Triage failures
故障分类
python .agents/skills/cxas-agent-foundry/scripts/triage-results.py --last 3
undefinedpython .agents/skills/cxas-agent-foundry/scripts/triage-results.py --last 3
undefinedEnvironment Readiness Check (run BEFORE routing)
环境就绪检查(在路由前运行)
Before routing to any sub-skill, check these signals in order:
- Virtualenv exists? -- Check if directory exists
.venv/ - Config exists? -- Check if file exists and the referenced
.active-projectexists<project>/gecx-config.json - Has built before? -- Check if any directory has content
<project>/cxas_app/
| Signal | Action |
|---|---|
No | First-time setup needed. Load |
| Returning user, new project. Route normally. |
| All exist | Returning user. Route normally. |
在路由到任何子技能之前,按顺序检查以下信号:
- 是否存在Virtualenv? —— 检查是否存在目录
.venv/ - 是否存在配置? —— 检查是否存在文件,且引用的
.active-project存在<project>/gecx-config.json - 是否已构建过? —— 检查是否有目录包含内容
<project>/cxas_app/
| 信号 | 操作 |
|---|---|
无 | 需要首次设置。在进行任何操作前先加载 |
| 返回用户,新项目。正常路由。 |
| 全部存在 | 返回用户。正常路由。 |
Detect Intent and Route
意图检测与路由
Read what the user wants and load the appropriate sub-skill:
| User says... | Phase | Load |
|---|---|---|
| "Build me an agent from this PRD" | Build | |
| "Create evals for my agent" | Build | |
| "Generate tool tests", "create callback tests" | Build | |
| "Update evals -- requirements changed" | Build | |
| "Update the TDD" | Build | |
| "Run evals", "push evals", "check results" | Run | |
| "Run tool tests", "test the callbacks" | Run | |
| "Generate a report" | Run | |
| "Why is this eval failing", "get to 90%" | Debug | |
| "Fix the failing evals", "debug the agent" | Debug | |
| "Tool test is failing", "callback test broke" | Debug | |
If the intent is unclear, ask: "Are you looking to build/create evals, run them, or debug failures?"
理解用户需求并加载相应的子技能:
| 用户表述... | 阶段 | 加载内容 |
|---|---|---|
| "根据这份PRD为我构建一个Agent" | 构建 | |
| "为我的Agent创建评估" | 构建 | |
| "生成工具测试"、"创建回调测试" | 构建 | |
| "更新评估——需求已变更" | 构建 | |
| "更新TDD" | 构建 | |
| "运行评估"、"推送评估"、"查看结果" | 运行 | |
| "运行工具测试"、"测试回调" | 运行 | |
| "生成报告" | 运行 | |
| "为什么这个评估失败了"、"达到90%的通过率" | 调试 | |
| "修复失败的评估"、"调试Agent" | 调试 | |
| "工具测试失败"、"回调测试出问题了" | 调试 | |
如果意图不明确,询问:"您是想要构建/创建评估、运行评估,还是调试故障?"
Step Tracking
步骤跟踪
CRITICAL: Before starting any multi-step workflow (Build, Run, or Debug), you MUST create a checklist in the project workspace.
todo.mdAs you complete each step in the workflow, update the checklist to check it off ( to ). Do not proceed to the next step until the current one is checked off. This ensures no steps are missed during complex builds or debug sessions.
[ ][x]关键注意事项: 在启动任何多步骤工作流(构建、运行或调试)之前,必须在项目工作区中创建一个检查清单。
todo.md完成工作流中的每个步骤后,更新检查清单将其标记为已完成(从改为)。在当前步骤标记完成之前,不要进行下一步。这可确保在复杂构建或调试会话中不会遗漏任何步骤。
[ ][x]Before Starting
开始之前
Check memory for project-specific context (app ID, variable handling rules, audio scoring workarounds). If not available, ask the user.
检查内存中是否有项目特定上下文(应用ID、变量处理规则、音频评分变通方案)。如果没有,请询问用户。