用途:在修改、调试、审查、重构、重命名、重组或规划任何 Switchyard 变更前,先读取当前检出代码,为具体变更生成新的影响图,使编辑计划基于实际代码而非记忆中的架构。
主要能力:按范围、运行时路径、角色契约、接线层和测试五个包分解探索;用 git status/diff 与 rg 搜索定位导入方、测试、符号和配置;识别客户端入口(CLI、FastAPI、Python API、路由表)、链槽位、线格式、profile/路由表/导出路径及验证集。
使用方式:先运行 git status -sb、git diff --stat、git diff --name-only 建立影响图;无 diff 时用 rg 搜索 ProfileSwitchyard、RandomRoutingPresets 等符号;按区域加载对应工作流技能(如 switchyard-lib-core、switchyard-coding-agent-launchers、switchyard-testing-ci);编辑前写出包含 Change、Ingress、Chain slots、Files to read/edit、Validation、Risk 的紧凑计划。聚焦测试示例:uv run pytest tests/test_<area>.py -v -o addopts=;广泛测试:uv run pytest tests/ -v -m "not integration"。
适用场景:Rust 核心分支下 crates/ 中 Rust 变更、PyO3 绑定、CLI 启动器、FastAPI 端点、翻译引擎、路由后端、profile/路由表、统计与 intake、技能与文档等。
限制:不改变 Rust 拥有的后端角色类、链形状、公共 API 导出、HTTP 端点或依赖,除非用户明确要求;保持可选重依赖不进入顶层导入;随机路由使用 strong_probability;pytest 默认 addopts = "-x",排查全部失败时用 -o addopts=;仅在用户明确需要且凭据可用时运行 live 测试。资料未提供具体收费、价格或平台信息。