Skip to content

发现与 test-security

列出 Agents / 工具

bash
./target/release/anycode list-agents
./target/release/anycode list-tools

Agent / Task 出现在工具列表中时,表示嵌套子 Agent;与 Claude Code Agent 工具对应的 JSON 字段(cwdmodelisolationrun_in_background 等)见 路线图 P5 段落。

test-security

对给定工具名与 JSON 输入走一遍 SecurityLayer::check_tool_call

bash
./target/release/anycode test-security --tool Bash --input '{"command":"ls"}'

子命令名以 anycode --help 为准。

LSP 工具

使用 --features tools-lsp 时,LSP 工具通过 stdio 子进程转发 JSON-RPC。在 config.json 中配置 lsp(见 配置与安全LSP 小节),或设置 ANYCODE_LSP_COMMAND

相关

English: Discovery & test-security.

MIT License