How garnser/codex-web works
Codex Web is a local-first AI engineering and organizational control plane. Its principal workflow turns a request, goal, issue, or event into scoped, policy-governed work; routes bounded execution; and records evidence and outcomes. The graph preserves major documented branches for executive reasoning, integrations, business operations, and operational controls. Most connections reflect README-level architecture; source-level evidence is limited to the sampled application, worker API, and autonomy excerpts.
Main entry points: application.py FastAPI control plane · authorization.py Authority and approvals · work_items.py Work and goals · state_store.py Canonical state
Components 22
User interface
- Browser UI
static/app.js - FastAPI control plane
codex_web/application.py
Identity and governance
- Identity and scope
codex_web/identity.py - Authority and approvals
codex_web/api/authorization.py - Canonical state
codex_web/storage/state_store.py
Work orchestration
- Work and goals
codex_web/services/work_items.py - Decisions and graphs
codex_web/services/decisions.py - Events and scheduling
codex_web/services/event_transport.py - Autonomy controller
codex_web/services/autonomy_controller.py - Executive workflows
codex_web/services/executive_management.py
Agent execution
- Agent routing
codex_web/services/agent_routing.py - Action intents
codex_web/services/action_intents.py - Execution workers
codex_web/services/execution_workers.py - Bounded local execution
codex_web/services/local_execution_worker.py
Evidence and outcomes
- Artifacts and evidence
codex_web/services/artifact_evidence.py - Outcomes and KPIs
codex_web/services/outcome_metrics.py - Organizational memory
codex_web/services/organizational_memory.py
Integrations and operations
- External integrations
codex_web/services/task_sources.py - Slack and Telegram
codex_web/services/conversation_channels.py - Business context
codex_web/services/business_context.py - Operations and recovery
codex_web/services/recovery.py
Other components
- User or event
Connections 26
- User or event → Browser UI: submits work
- Browser UI → FastAPI control plane: sends requests
- FastAPI control plane → Identity and scope: resolves scope
- FastAPI control plane → Authority and approvals: enforces policy
codex_web/application.py - FastAPI control plane → Work and goals: coordinates work
- FastAPI control plane → Decisions and graphs: coordinates decisions
- FastAPI control plane → Events and scheduling: coordinates scheduling
- FastAPI control plane → Executive workflows: serves workflows
- Work and goals → Canonical state: persists state
- Decisions and graphs → Canonical state: persists state
- Authority and approvals → Canonical state: stores controls
- Events and scheduling → Autonomy controller: triggers cycles
- Autonomy controller → Action intents: creates intents
codex_web/services/autonomy_controller.py - Work and goals → Agent routing: routes execution
- Agent routing → Execution workers: selects runtime
- Execution workers → Bounded local execution: dispatches bounded work
codex_web/services/local_execution_worker.py - Action intents → Authority and approvals: checks authorization
- Authority and approvals → Bounded local execution: permits execution
- Bounded local execution → Artifacts and evidence: records proof
codex_web/services/local_execution_worker.py - Artifacts and evidence → Outcomes and KPIs: supports measurement
- Outcomes and KPIs → Organizational memory: informs reusable knowledge
- External integrations → Events and scheduling: provides task events
- Slack and Telegram → FastAPI control plane: supplies intake
- Executive workflows → Work and goals: delegates canonical work
- Business context → Decisions and graphs: supplies business context
- Operations and recovery → Canonical state: manages recovery state