Skip to content

Add a /tools REPL command (and 'borg tools') listing available tools #29

Description

@stefanthearchitect

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, finishinternal/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%.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions