Merge pull request #129 from dlukt/main

feat: Add gt config command for managing agent settings
This commit is contained in:
Steve Yegge
2026-01-04 23:53:43 -08:00
committed by GitHub
6 changed files with 1294 additions and 4 deletions

View File

@@ -215,6 +215,28 @@ gt doctor # Health check
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
```bash