1---2name: agents3description: Agents subsystem in TTA.dev: handle_agent_command, get, get_registry and related code. 66 symbols | 24 files | Cohesion: 72%4---56# Agents7866 symbols | 24 files | Cohesion: 72%910## When to Use1112- Working on `agents`-related functionality in TTA.dev13- Modifying `handle_agent_command`, `get`14- Navigating `ttadev/cli/agent.py`, `ttadev/agents/registry.py`1516## Key Files1718| File | Symbols |19|------|---------|20| `tests/agents/test_spawn_agent_model_injection.py` | _make_spec, _make_model_aware_agent, _make_legacy_agent, test_spawn_agent_context_default_model_no_type_error, test_spawned_agent_has_non_none_model (+5) |21| `tests/agents/test_registry.py` | test_register_and_get, test_register_overwrites, test_global_restored_after_context, test_override_restored_on_exception, test_all_returns_registered (+3) |22| `tests/agents/test_tool_call_loop.py` | _make_anthropic_response, _make_google_response, test_parse_anthropic_tool_calls, test_parse_anthropic_multiple_tool_calls, test_parse_google_tool_calls (+3) |23| `tests/agents/test_router.py` | _make_registry, _make_router, test_agent_hint_bypasses_scoring, test_keyword_routing_no_llm_call, test_ambiguous_task_calls_orchestrator (+2) |24| `ttadev/cli/agent.py` | handle_agent_command, _cmd_list, _cmd_show, _cmd_run, _run_agent |25| `ttadev/agents/registry.py` | get, get_registry, all |26| `ttadev/agents/router.py` | _get_model, _get_orchestrator, _execute_impl |27| `ttadev/agents/base.py` | __init__, _execute_impl, _spawn_with_handoff_span |28| `tests/agents/test_spec.py` | _make_result, test_construction, test_failing_gate |29| `tests/agents/test_agent_primitive.py` | _make_spec, __init__ |3031## Entry Points3233Start here when exploring this area:3435- **`handle_agent_command`** (Function) — `ttadev/cli/agent.py:54`36- **`get`** (Function) — `ttadev/agents/registry.py:28`37- **`get_registry`** (Function) — `ttadev/agents/registry.py:51`38- **`test_all_agents_registered`** (Function) — `tests/workflows/test_prebuilt.py:26`39- **`test_registered_after_import`** (Function) — `tests/agents/test_security.py:76`4041## Key Symbols4243| Symbol | Type | File | Line |44|--------|------|------|------|45| `handle_agent_command` | Function | `ttadev/cli/agent.py` | 54 |46| `get` | Function | `ttadev/agents/registry.py` | 28 |47| `get_registry` | Function | `ttadev/agents/registry.py` | 51 |48| `test_all_agents_registered` | Function | `tests/workflows/test_prebuilt.py` | 26 |49| `test_registered_after_import` | Function | `tests/agents/test_security.py` | 76 |50| `test_register_and_get` | Function | `tests/agents/test_registry.py` | 18 |51| `test_register_overwrites` | Function | `tests/agents/test_registry.py` | 40 |52| `test_global_restored_after_context` | Function | `tests/agents/test_registry.py` | 54 |53| `test_override_restored_on_exception` | Function | `tests/agents/test_registry.py` | 61 |54| `test_registered_after_import` | Function | `tests/agents/test_qa.py` | 78 |55| `test_registered_after_import` | Function | `tests/agents/test_performance.py` | 86 |56| `test_registered_after_import` | Function | `tests/agents/test_github.py` | 83 |57| `test_registered_after_import` | Function | `tests/agents/test_git.py` | 70 |58| `test_registered_after_import` | Function | `tests/agents/test_devops.py` | 86 |59| `test_registered_after_import` | Function | `tests/agents/test_developer.py` | 76 |60| `test_spawn_agent_context_default_model_no_type_error` | Function | `tests/agents/test_spawn_agent_model_injection.py` | 95 |61| `test_spawned_agent_has_non_none_model` | Function | `tests/agents/test_spawn_agent_model_injection.py` | 120 |62| `test_spawn_agent_explicit_model_kwarg` | Function | `tests/agents/test_spawn_agent_model_injection.py` | 142 |63| `test_explicit_model_takes_precedence_over_context_default` | Function | `tests/agents/test_spawn_agent_model_injection.py` | 161 |64| `test_legacy_agent_still_works_no_model_param` | Function | `tests/agents/test_spawn_agent_model_injection.py` | 187 |6566## Connected Areas6768| Area | Connections |69|------|-------------|70| Unit | 33 calls |71| Llm | 2 calls |72| Observability | 1 calls |7374## How to Explore75761. `gitnexus_context({name: "handle_agent_command"})` — see callers and callees772. `gitnexus_query({query: "agents"})` — find related execution flows783. Read key files listed above for implementation details