# Attocode Code Intel Visualization

Diagrams from symbols + import analysis. Dependency graph returned empty for this project.

## 1. TypeScript Entry — Module Dependencies

flowchart TB subgraph Entry["main.ts"] main end subgraph Providers["providers"] getProvider["provider.js"] resilientProvider["resilient-provider.js"] adapters["adapters"] end subgraph Core["core"] createProductionAgent["agent/index.js"] adaptersModule["adapters.js"] standardTools["tools/standard.js"] end subgraph CLI["cli"] parseArgs["cli.js"] loadConfig["config"] end subgraph Modes["modes"] startTUI["startTUIMode"] startREPL["startProductionREPL"] end subgraph Integrations["integrations"] eventDisplay["event-display"] healthCheck["health-check"] swarm["swarm"] end main --> getProvider main --> resilientProvider main --> createProductionAgent main --> adaptersModule main --> standardTools main --> parseArgs main --> loadConfig main --> startTUI main --> startREPL main --> eventDisplay main --> healthCheck main --> swarm

## 2. ProductionAgent — Key Methods

classDiagram class ProductionAgent { +run() +buildMessages() +buildContext() +runSwarm() +runWithReAct() +runWithTeam() +createAndExecutePlan() +cancel() +reset() +cleanup() +addTool() +getTools() +getMode() +getSkills() +createCheckpoint() +restoreCheckpoint() +approvePlan() +getLSPManager() +suggestAgentForTask() }

## 3. Python Execution Loop — Components

flowchart TB subgraph DataClasses["Data classes"] CompactionResult LoopResult BudgetPreflightResult WrapupState end subgraph PreFlight["Pre-flight"] check_iteration_budget end subgraph ContextMgmt["Context management"] handle_auto_compaction inject_recitation accumulate_failure_evidence end subgraph MainLoop["run_execution_loop"] direction TB step1["1. Recitation"] step2["2. Budget check"] step3["3. Call LLM"] step4["4. Execute tools"] step5["5. Return result"] end MainLoop --> PreFlight MainLoop --> ContextMgmt

## 4. ReAct Loop — Sequence

sequenceDiagram participant EL as Execution Loop participant Checks as Pre-flight participant Inject as Context Injection participant LLM as LLM Call participant Tools as Tools EL->>Checks: Cancel, budget Checks->>Inject: Proceed Inject->>LLM: callLLM LLM-->>EL: Response alt Has tool_calls EL->>Tools: Execute Tools-->>EL: Results else Text only EL->>EL: Complete end

## 5. Python Package Structure

graph TB cli[cli.py] --> config[config] cli --> loop[core/loop.py] codeintel[code_intel] --> server[server.py] codeintel --> installer[installer.py] tui[tui/widgets/swarm] --> task_board tui --> dag_view tui --> agent_grid