Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,10 @@ Tools are grouped by capability:
- `btw_this.environment()` - Lists and describes objects
- `btw_this.character()` - **Command dispatcher** for special strings:
- `"./path"` → read file or list directory
- `"{pkgName}"` → package help topics + intro vignette
- `"?help_topic"` → help page lookup
- `"{pkgName}"` or `"@pkg pkgName"` → package help topics + intro vignette
- `"?help_topic"` or `"@help topic"` → help page lookup (supports `@help pkg::topic` and `@help pkg topic` formats)
- `"@git status|diff|log"` → git repository information
- `"@issue #number"` or `"@pr #number"` → GitHub issues/PRs with auto-repo detection
- `"@platform_info"` → session/platform details
- `"@current_file"` → read active editor
- And more (see `?btw_this.character`)
Expand Down Expand Up @@ -329,6 +331,7 @@ Edit files in `inst/prompts/`. These are assembled in `btw_client()` based on co
- **Tool output formats are fluid** - btw intentionally experiments with different formats (JSON, markdown, plain text) to discover what works best with different models
- **clipboard operations may fail** in non-interactive contexts or without clipboard support
- **IDE tools** (e.g., `@current_file`) require RStudio or Positron with rstudioapi support
- **Git and GitHub commands** - `@git` and `@issue`/`@pr` commands require gert and gh packages respectively, plus appropriate repository access
- **MCP server blocks** the R process - run non-interactively
- **Test snapshots require frequent updates** as output formatting evolves

Expand Down
Loading