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
refactor(cli): one tool roster for every face #420
Three builders register the session's tools — build_registry (CLI run/resume/chat/mission), build_server_registry (tole mcp, MCP-over-HTTP) and session_host::open_session (tole serve, ACP, MCP session tools). Each re-encodes the same per-tool rules, and they have drifted:
Plan mode means three things: register then retain_read_only, skip registration, or register then filter at the caller.
delete_file: registered unconditionally on the CLI, only if interactive on server sessions.
Server sessions lack sibling tracking, the handoff tool, verify_package and the cora MCP / cora_search fallback rule.
binary_available and detect_github_repo exist twice with different rules (the session-host probe accepts non-executable files).
A tool_roster module in tole-cli: build(approver, Roster) where Roster carries what differs per face (workspace, shell dir, plan mode, child-agent options, MCP servers, plan emitter). The three Destructive enforcement layers stay: the roster registers delete_file only behind an interactive approver, and the registry and AllowlistApprover keep refusing it on their own.
Plan (small PRs)
Add the module; move build_registry and build_server_registry onto it; one binary_available.
Move session_host::open_session onto it (server faces gain sibling tracking, handoff, verify_package, the cora fallback rule, the strict binary probe).
One todo registration helper for the five call sites.
Second item of the 2026-10-26 architecture review.
Activity
fix(cli): keep agent tools in every CLI profile; feature-gate main's …
refactor(cli): one tool roster for the CLI and MCP server faces (#420,…
feat(cli): name the cora agent-as-reviewer flow in the system prompt (#…
refactor(cli): server sessions build their tools through the tool ros…