av_session_start
Capture a baseline architecture snapshot before code changes and start auto-monitoring to detect structural drift in the specified workspace.
Instructions
改代码之前拍一张"改之前"的照片(记录当前结构)。MCP 长期进程还会开启自动监听(默认约 8 秒防抖);CLI 不会持续监听,改完需手动 report。日常优先 av_guard。必须显式传当前工作区绝对路径 repo;务必回显返回的 path.checking。完全离线。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | 必填。当前 IDE 工作区根目录的绝对路径。不要写死主仓路径——worktree 场景会拍错照片。 | |
| intent | No | 可选。本次改动意图,例如「只修分层,不改 /todos」。报告会对照对外表面,不对齐只黄灯/信息,不阻断。 | |
| editDir | No | 可选。正在改代码的目录绝对路径;与 repo 不是同一 Git 根时中止。 | |
| confirmRepo | No | 可选。当 MCP cwd 与 repo 不是同一 Git 根、但你确认就要检查 repo 时,传入与 repo 相同的绝对路径。 |