# chrisworsey55/atlas-gic architecture

> Architecture diagram of the GitHub repository chrisworsey55/atlas-gic, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-19). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/chrisworsey55/atlas-gic
- Repository: https://github.com/chrisworsey55/atlas-gic

## Overview

ATLAS is an autonomous trading-agent framework: market-analysis layers develop views, decision agents synthesize and size trades, and outcomes inform prompt or agent improvement. Its MiroFish branch builds market seeds, simulates possible futures, and scores predictions; a separate trainer evaluates agents against generated scenarios. JANUS weights recommendations from trained cohorts. The README documents several product capabilities whose implementation is not present in the sampled source tree, so those are represented at the available source-directory level. MiroFish edges follow explicit bridge calls; broader workflow links rely on README descriptions.

Main entry points: [`src`](https://github.com/chrisworsey55/atlas-gic/tree/main/src) (Market analysis), [`src/mirofish/mirofish_bridge.py`](https://github.com/chrisworsey55/atlas-gic/blob/main/src/mirofish/mirofish_bridge.py) (Simulation bridge), [`src/mirofish/mirofish_trainer.py`](https://github.com/chrisworsey55/atlas-gic/blob/main/src/mirofish/mirofish_trainer.py) (Forward training), [`prompts/examples/cio.md`](https://github.com/chrisworsey55/atlas-gic/blob/main/prompts/examples/cio.md) (CIO synthesis)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_trading["Trading system"]
  node_market["Market analysis"]
  node_macro["Macro agents"]
  node_sectors["Sector desks"]
  node_investors["Investor agents"]
  node_decision["Decision agents"]
  node_cio["CIO synthesis<br/>[cio.md]"]
  node_execution["Trade sizing"]
end

subgraph group_learning["Learning and cohorts"]
  node_autoresearch["Prompt improvement"]
  node_spawning["Agent spawning"]
  node_prism["Regime cohorts"]
  node_janus["Cohort weighting<br/>[janus.py]"]
end

subgraph group_simulation["MiroFish simulation"]
  node_seed["Seed generation"]
  node_bridge["Simulation bridge<br/>[mirofish_bridge.py]"]
  node_scenarios["Future scenarios"]
  node_simulator["Scenario simulation<br/>[mirofish_bridge.py]"]
  node_scorer["Prediction scoring<br/>[mirofish_bridge.py]"]
  node_context["Prompt context"]
  node_trainer["Forward training"]
end

node_marketdata["Market data services"]
node_anthropic["Claude API"]
node_outcomes(("Real outcomes"))
node_portfolio(("Portfolio decisions"))

node_market -->|"analyzes regime"| node_macro
node_market -->|"develops views"| node_sectors
node_market -->|"develops views"| node_investors
node_macro -->|"informs"| node_decision
node_sectors -->|"informs"| node_decision
node_investors -->|"informs"| node_decision
node_decision -->|"synthesizes inputs"| node_cio
node_cio -->|"sets final call"| node_execution
node_execution -->|"sizes trades"| node_portfolio
node_outcomes -->|"scores performance"| node_autoresearch
node_autoresearch -->|"revises prompts"| node_market
node_market -->|"detects knowledge gaps"| node_spawning
node_spawning -->|"adds specialists"| node_market
node_prism -->|"provides cohorts"| node_janus
node_janus -->|"weights recommendations"| node_decision
node_marketdata -->|"supplies market inputs"| node_seed
node_seed -.->|"builds simulation seed"| node_bridge
node_bridge -->|"runs simulation"| node_simulator
node_simulator -->|"requests simulation"| node_anthropic
node_bridge -.->|"scores predictions"| node_scorer
node_scenarios -->|"loads futures"| node_trainer
node_trainer -.->|"requests recommendations"| node_anthropic
node_trainer -->|"evaluates decisions"| node_outcomes
node_bridge -.->|"writes predictions"| node_context
node_context -.->|"formats prompt context"| node_decision

click node_market "https://github.com/chrisworsey55/atlas-gic/tree/main/src"
click node_macro "https://github.com/chrisworsey55/atlas-gic/tree/main/src"
click node_sectors "https://github.com/chrisworsey55/atlas-gic/tree/main/src"
click node_investors "https://github.com/chrisworsey55/atlas-gic/tree/main/src"
click node_decision "https://github.com/chrisworsey55/atlas-gic/tree/main/src"
click node_cio "https://github.com/chrisworsey55/atlas-gic/blob/main/prompts/examples/cio.md"
click node_execution "https://github.com/chrisworsey55/atlas-gic/tree/main/src"
click node_autoresearch "https://github.com/chrisworsey55/atlas-gic/tree/main/src"
click node_spawning "https://github.com/chrisworsey55/atlas-gic/tree/main/src"
click node_prism "https://github.com/chrisworsey55/atlas-gic/tree/main/src"
click node_janus "https://github.com/chrisworsey55/atlas-gic/blob/main/src/janus.py"
click node_seed "https://github.com/chrisworsey55/atlas-gic/blob/main/src/mirofish/mirofish_seed_generator.py"
click node_bridge "https://github.com/chrisworsey55/atlas-gic/blob/main/src/mirofish/mirofish_bridge.py"
click node_scenarios "https://github.com/chrisworsey55/atlas-gic/blob/main/src/mirofish/mirofish_futures_generator.py"
click node_simulator "https://github.com/chrisworsey55/atlas-gic/blob/main/src/mirofish/mirofish_bridge.py"
click node_scorer "https://github.com/chrisworsey55/atlas-gic/blob/main/src/mirofish/mirofish_bridge.py"
click node_context "https://github.com/chrisworsey55/atlas-gic/blob/main/src/mirofish/mirofish_context.py"
click node_trainer "https://github.com/chrisworsey55/atlas-gic/blob/main/src/mirofish/mirofish_trainer.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_market,node_macro,node_sectors,node_investors,node_decision,node_cio,node_execution toneBlue
class node_autoresearch,node_spawning,node_prism,node_janus toneAmber
class node_seed,node_bridge,node_scenarios,node_simulator,node_scorer,node_context,node_trainer,node_anthropic toneMint
class node_marketdata,node_outcomes,node_portfolio toneIndigo
```

## Components

### Trading system

- [Market analysis](https://github.com/chrisworsey55/atlas-gic/tree/main/src): `src`
- [Macro agents](https://github.com/chrisworsey55/atlas-gic/tree/main/src): `src`
- [Sector desks](https://github.com/chrisworsey55/atlas-gic/tree/main/src): `src`
- [Investor agents](https://github.com/chrisworsey55/atlas-gic/tree/main/src): `src`
- [Decision agents](https://github.com/chrisworsey55/atlas-gic/tree/main/src): `src`
- [CIO synthesis](https://github.com/chrisworsey55/atlas-gic/blob/main/prompts/examples/cio.md): `prompts/examples/cio.md`
- [Trade sizing](https://github.com/chrisworsey55/atlas-gic/tree/main/src): `src`

### Learning and cohorts

- [Prompt improvement](https://github.com/chrisworsey55/atlas-gic/tree/main/src): `src`
- [Agent spawning](https://github.com/chrisworsey55/atlas-gic/tree/main/src): `src`
- [Regime cohorts](https://github.com/chrisworsey55/atlas-gic/tree/main/src): `src`
- [Cohort weighting](https://github.com/chrisworsey55/atlas-gic/blob/main/src/janus.py): `src/janus.py`

### MiroFish simulation

- [Seed generation](https://github.com/chrisworsey55/atlas-gic/blob/main/src/mirofish/mirofish_seed_generator.py): `src/mirofish/mirofish_seed_generator.py`
- [Simulation bridge](https://github.com/chrisworsey55/atlas-gic/blob/main/src/mirofish/mirofish_bridge.py): `src/mirofish/mirofish_bridge.py`
- [Future scenarios](https://github.com/chrisworsey55/atlas-gic/blob/main/src/mirofish/mirofish_futures_generator.py): `src/mirofish/mirofish_futures_generator.py`
- [Scenario simulation](https://github.com/chrisworsey55/atlas-gic/blob/main/src/mirofish/mirofish_bridge.py): `src/mirofish/mirofish_bridge.py`
- [Prediction scoring](https://github.com/chrisworsey55/atlas-gic/blob/main/src/mirofish/mirofish_bridge.py): `src/mirofish/mirofish_bridge.py`
- [Prompt context](https://github.com/chrisworsey55/atlas-gic/blob/main/src/mirofish/mirofish_context.py): `src/mirofish/mirofish_context.py`
- [Forward training](https://github.com/chrisworsey55/atlas-gic/blob/main/src/mirofish/mirofish_trainer.py): `src/mirofish/mirofish_trainer.py`

### Other components

- **Market data services**
- **Claude API**
- **Real outcomes**
- **Portfolio decisions**

## Connections

- Market analysis → Macro agents: analyzes regime (evidence: `README.md`)
- Market analysis → Sector desks: develops views (evidence: `README.md`)
- Market analysis → Investor agents: develops views (evidence: `README.md`)
- Macro agents → Decision agents: informs (evidence: `README.md`)
- Sector desks → Decision agents: informs (evidence: `README.md`)
- Investor agents → Decision agents: informs (evidence: `README.md`)
- Decision agents → CIO synthesis: synthesizes inputs (evidence: `README.md`)
- CIO synthesis → Trade sizing: sets final call (evidence: `README.md`)
- Trade sizing → Portfolio decisions: sizes trades (evidence: `README.md`)
- Real outcomes → Prompt improvement: scores performance (evidence: `README.md`)
- Prompt improvement → Market analysis: revises prompts (evidence: `README.md`)
- Market analysis → Agent spawning: detects knowledge gaps (evidence: `README.md`)
- Agent spawning → Market analysis: adds specialists (evidence: `README.md`)
- Regime cohorts → Cohort weighting: provides cohorts (evidence: `README.md`)
- Cohort weighting → Decision agents: weights recommendations (evidence: `README.md`)
- Market data services → Seed generation: supplies market inputs (evidence: `src/mirofish/mirofish_seed_generator.py`)
- Seed generation → Simulation bridge: builds simulation seed
- Simulation bridge → Scenario simulation: runs simulation (evidence: `src/mirofish/mirofish_bridge.py`)
- Scenario simulation → Claude API: requests simulation (evidence: `src/mirofish/mirofish_bridge.py`)
- Simulation bridge → Prediction scoring: scores predictions (evidence: `src/mirofish/mirofish_bridge.py`)
- Future scenarios → Forward training: loads futures (evidence: `src/mirofish/mirofish_trainer.py`)
- Forward training → Claude API: requests recommendations
- Forward training → Real outcomes: evaluates decisions (evidence: `src/mirofish/mirofish_trainer.py`)
- Simulation bridge → Prompt context: writes predictions
- Prompt context → Decision agents: formats prompt context
