Context
borg ships a fixed tool set (read_file, write_file, edit_file, edit_lines, grep, glob, list_dir, bash, bash_output, kill_shell, verify, ask_user, finish — internal/tools/). There's no way for a user to see what the agent can do or which tools are permission-gated.
The task
Add a /tools REPL command (and optionally a borg tools CLI subcommand) that lists each tool's name, one-line description, and whether it's mutating (permission-gated) or read-only. The registry already exposes Name(), Description(), Mutating().
Acceptance
/tools prints the tool list with the read-only vs gated distinction.
- Wire it through the existing slash-command menu (
internal/tui/).
- A test. Coverage ≥90%.
Context
borg ships a fixed tool set (
read_file,write_file,edit_file,edit_lines,grep,glob,list_dir,bash,bash_output,kill_shell,verify,ask_user,finish—internal/tools/). There's no way for a user to see what the agent can do or which tools are permission-gated.The task
Add a
/toolsREPL command (and optionally aborg toolsCLI subcommand) that lists each tool's name, one-line description, and whether it's mutating (permission-gated) or read-only. The registry already exposesName(),Description(),Mutating().Acceptance
/toolsprints the tool list with the read-only vs gated distinction.internal/tui/).