Refactor: consolidate agent type mappings (#200) #212

Merged
shahondin1624 merged 1 commits from refactor/issue-200-agent-type-constants into main 2026-03-11 11:18:11 +01:00

Summary

  • Created agent_types.py shared module with AGENT_TYPE_NAMES, AGENT_TYPE_SHORT_NAMES, and AGENT_TYPE_FROM_NAME as single source of truth
  • Updated all 4 consumer files (context.py, memory_gate.py, session_config.py, decomposer.py) to import from shared module
  • Removed 4 duplicated local mapping dicts across the orchestrator package

Test plan

  • All 482 existing tests pass
  • Ruff lint clean
  • No remaining local agent type mapping dicts in orchestrator source

Closes #200

🤖 Generated with Claude Code

## Summary - Created `agent_types.py` shared module with `AGENT_TYPE_NAMES`, `AGENT_TYPE_SHORT_NAMES`, and `AGENT_TYPE_FROM_NAME` as single source of truth - Updated all 4 consumer files (`context.py`, `memory_gate.py`, `session_config.py`, `decomposer.py`) to import from shared module - Removed 4 duplicated local mapping dicts across the orchestrator package ## Test plan - [x] All 482 existing tests pass - [x] Ruff lint clean - [x] No remaining local agent type mapping dicts in orchestrator source Closes #200 🤖 Generated with [Claude Code](https://claude.com/claude-code)
shahondin1624 added 1 commit 2026-03-11 11:18:07 +01:00
Extract AGENT_TYPE_NAMES, AGENT_TYPE_SHORT_NAMES, and AGENT_TYPE_FROM_NAME
into a single agent_types.py module. All 4 consumer files (context.py,
memory_gate.py, session_config.py, decomposer.py) now import from this
shared source of truth instead of maintaining their own local copies.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
shahondin1624 merged commit cbb2d4ce69 into main 2026-03-11 11:18:11 +01:00
shahondin1624 deleted branch refactor/issue-200-agent-type-constants 2026-03-11 11:18:11 +01:00
Sign in to join this conversation.