You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Derive the ACP tool list from the Tool enum to stop three-way drift #1509
The agent tool set exists as three parallel, hand-synced surfaces: the Tool enum (local path), raw-string tool_whitelist arrays in the skill pipeline, and a prose TOOLS_LIST in ACP context assembly that even uses a different name prefix. A test ties the whitelists to the enum, but nothing ties the ACP prose (what external CLI agents actually read) back to it.
Problem Statement
Renaming a tool silently staleness the ACP-facing description, and the prefix split is evidence the surfaces have already drifted.
Proposed Solution
Generate TOOLS_LIST from Tool::ALL (mapping each variant to its wire name + one-line description) and add a test asserting every whitelist string and the ACP list resolves through Tool::from_name. Collapse the three surfaces to one derivation off the enum.
Acceptance Criteria
The ACP tool list is generated from the Tool enum
A test asserts whitelist + ACP names resolve against the enum
Code passes bun run quality:fix; tests pass
Technical Specifications
Reference Files
packages/agent/src/local_agent/tools.rs (Tool enum, ALL, name, def_*), skill_pipeline.rs (whitelists), acp/context_assembly.rs (TOOLS_LIST)
Activity
malibio commentedon Jul 6, 2026
Frontend baseline: 148 test files passed, 3963 tests passed
Derive ACP's TOOLS_LIST from a shim-tool registry to stop the drift (#…