Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

tt status

Show town status.

Synopsis

tt status [OPTIONS]

Description

Displays comprehensive status of the town including:

  • Town name and location
  • Redis connection info
  • All agents with their states and pending messages
  • Message type breakdown for pending inbox items (tasks, queries, informational, confirmations)
  • With --deep: Recent activity from each agent

Options

OptionShortDescription
--deepShow recent agent activity (stored in Redis)
--tasksShow detailed task breakdown by state and agent
--town <PATH>-tTown directory (default: .)
--verbose-vEnable verbose logging

Examples

Basic Status

tt status

Output:

🏘️  Town: my-project
📂 Root: /Users/you/projects/my-project
📡 Redis: unix:///Users/you/projects/my-project/redis.sock
🤖 Agents: 3
   backend (Working) - 0 messages pending
   frontend (Idle) - 2 messages pending (tasks: 1, queries: 1, informational: 0, confirmations: 0)
   reviewer (Idle) - 1 messages pending (tasks: 0, queries: 0, informational: 1, confirmations: 0)

Deep Status (with stats and activity)

tt status --deep

Output:

🏘️  Town: my-project
📂 Root: /Users/you/projects/my-project
📡 Redis: unix:///Users/you/projects/my-project/redis.sock
🤖 Agents: 3
   backend (Working) - 0 pending, 12 rounds, uptime 1h 23m
      └─ Round 12: ✅ completed
      └─ Round 11: ✅ completed
   frontend (Idle) - 2 pending (tasks: 1, queries: 1, informational: 0, confirmations: 0), 5 rounds, uptime 45m 12s
      └─ Round 5: ✅ completed
   reviewer (Idle) - 1 pending (tasks: 0, queries: 0, informational: 1, confirmations: 0), 2 rounds, uptime 30m 5s
      └─ Round 2: ⚠️ model error

📊 Stats: rounds completed, uptime since spawn

Task Status (detailed task tracking)

tt status --tasks

Output:

🏘️  Town: my-project
📂 Root: /Users/you/projects/my-project
📡 Redis: unix:///Users/you/projects/my-project/redis.sock
🤖 Agents: 2
   backend (Working) - 0 messages pending
   reviewer (Idle) - 1 messages pending
📋 Tasks: 8 total (2 pending, 3 in-flight, 3 done)

📊 Task Breakdown by State:
   ⏳ Pending:   1
   📌 Assigned:  1
   🔄 Running:   2
   ✅ Completed: 3
   ❌ Failed:    0
   🚫 Cancelled: 1
   📋 Backlog:   2

📋 Tasks by Agent:
   backend (2 active, 2 done):
      🔄 abc123 Implement user authentication...
      📌 def456 Add rate limiting to API...
      ✅ ghi789 Setup database migrations...
      ✅ jkl012 Create user model...
   reviewer (1 active, 1 done):
      🔄 mno345 Review auth implementation...
      ✅ pqr678 Review database schema...
   (unassigned) (2 tasks):
      ⏳ stu901 Write integration tests...

Stats Shown

StatDescription
RoundsNumber of agent loop iterations completed
UptimeTime since agent was spawned
PendingMessages waiting in inbox
Message TypesPending breakdown: tasks, queries, informational, confirmations
ActivityRecent round results (last 5)
Task StatesWith --tasks: Pending, Assigned, Running, Completed, Failed, Cancelled, Backlog
Tasks by AgentWith --tasks: Tasks grouped by assigned agent with state icons

Output Fields

FieldDescription
TownName from tinytown.toml
RootAbsolute path to town directory
RedisConnection URL (socket or TCP)
AgentsCount and details

Agent Details

For each agent:

  • Name — Human-readable identifier
  • State — Current lifecycle state
  • Messages — Number of pending inbox messages
  • Type Breakdown — Pending messages grouped as tasks, queries, informational, confirmations

Interpreting Status

SituationMeaningAction
Agent Idle + 0 messagesReady for workAssign a task
Agent Idle + N messagesMessages waitingAgent should process
Agent WorkingBusy with taskWait or check progress
Agent ErrorSomething failedCheck logs, respawn
CommandWhen to Use
tt statusOverview of everything
tt listJust agent names and states

Direct Redis Inspection

For more detail:

# Connect to Redis
redis-cli -s ./redis.sock

# List all keys for your town
KEYS tt:<town_name>:*

# Check specific inbox
LLEN tt:<town_name>:inbox:550e8400-e29b-41d4-a716-446655440000

# View agent state
GET tt:<town_name>:agent:550e8400-e29b-41d4-a716-446655440000

See Also