docs: Add gt config command documentation

Updates README.md and docs/reference.md with the new gt config command usage, including:
- All subcommands (agent list, get, set, remove, default-agent)
- Example of setting up a custom agent (claude-glm)
- Note about overriding built-in agents

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Darko Luketic
2026-01-05 07:12:14 +01:00
parent 5787a16067
commit 4cef25c4cb
2 changed files with 38 additions and 0 deletions

View File

@@ -235,6 +235,22 @@ gt <role> attach # Jump into any agent session
# e.g., gt mayor attach, gt witness attach # e.g., gt mayor attach, gt witness attach
``` ```
### Configuration
```bash
gt config agent list [--json] # List all agents (built-in + custom)
gt config agent get <name> # Show agent configuration
gt config agent set <name> <cmd> # Create or update custom agent
gt config agent remove <name> # Remove custom agent (built-ins protected)
gt config default-agent [name] # Get or set town default agent
```
**Example**: Use a cheaper model for most work:
```bash
gt config agent set claude-glm "claude-glm --model glm-4"
gt config default-agent claude-glm
```
Most other work happens through agents - just ask them. Most other work happens through agents - just ask them.
### For Agents ### For Agents

View File

@@ -215,6 +215,28 @@ gt doctor # Health check
gt doctor --fix # Auto-repair gt doctor --fix # Auto-repair
``` ```
### Configuration
```bash
# Agent management
gt config agent list [--json] # List all agents (built-in + custom)
gt config agent get <name> # Show agent configuration
gt config agent set <name> <cmd> # Create or update custom agent
gt config agent remove <name> # Remove custom agent (built-ins protected)
# Default agent
gt config default-agent [name] # Get or set town default agent
```
**Built-in agents**: `claude`, `gemini`, `codex`
**Custom agents**: Define per-town in `mayor/town.json`:
```bash
gt config agent set claude-glm "claude-glm --model glm-4"
gt config agent set claude "claude-opus" # Override built-in
gt config default-agent claude-glm # Set default
```
### Rig Management ### Rig Management
```bash ```bash