Last Updated: 5 February 2026
System Version: v8.2-stable (Agent Sovereignty)
Athena/
├── .framework/ # ← THE CODEX (stable, rarely updated)
│ ├── v8.2-stable/
│ │ ├── modules/
│ │ │ ├── Core_Identity.md # Laws #0-#4, RSI, Bionic Stack, COS
│ │ │ └── Output_Standards.md # Response formatting, reasoning levels
│ │ └── protocols/ # Versioned protocol copies
│ ├── v7.0/ # Previous stable version
│ └── archive/ # Archived monoliths
│
├── .context/ # ← USER-SPECIFIC DATA (frequently updated)
│ ├── User_Vault/ # Personal vault (credentials, secrets)
│ ├── memories/
│ │ ├── case_studies/ # 358+ documented patterns
│ │ ├── session_logs/ # Historical session analysis
│ │ └── patterns/ # Formalized patterns
│ ├── references/ # External frameworks (Dalio, Halbert, Graham)
│ ├── research/ # Steal analyses, explorations
│ ├── TAG_INDEX_A-M.md # Global hashtag system (split for performance)
│ ├── TAG_INDEX_N-Z.md
│ └── KNOWLEDGE_GRAPH.md # Visual architecture reference
│
├── .agent/ # ← AGENT CONFIGURATION
│ ├── skills/
│ │ ├── SKILL_INDEX.md # Protocol loading registry
│ │ ├── protocols/ # 319+ modular skill files
│ │ │ ├── architecture/ # System protocols (latency, modularity)
│ │ │ ├── business/ # Business frameworks
│ │ │ ├── career/ # Career navigation
│ │ │ ├── decision/ # Decision frameworks
│ │ │ ├── psychology/ # Psych protocols
│ │ │ └── trading/ # Trading protocols
│ │ └── capabilities/ # Bionic Triple Crown
│ ├── workflows/ # 40+ slash commands
│ │ ├── start.md # Session boot
│ │ ├── end.md # Session close + maintenance
│ │ ├── think.md # Deep reasoning (L4)
│ │ └── ...
│ ├── scripts/ # 192+ Python automation scripts
│ │ ├── quicksave.py # Auto-checkpoint every exchange
│ │ ├── boot.py # Resilient boot with recovery shell
│ │ ├── smart_search.py # Semantic search
│ │ └── ...
│ └── gateway/ # Sidecar process for persistence
│
├── src/ # ← PYTHON SDK SOURCE
│ └── athena/
│ ├── boot/ # Boot loaders and constants
│ ├── core/ # Core config and utilities
│ └── tools/ # SDK tools
│
├── supabase/ # ← VECTORRAG CONFIG
│ └── migrations/ # Database migrations
│
├── Athena-Public/ # ← PUBLIC PORTFOLIO
│ ├── docs/ # This documentation
│ ├── examples/ # Templates and scripts
│ └── README.md # Repository overview
│
└── docs/ # Root-level docs (audit, architecture)
graph TD
ROOT[Athena/] --> FRAMEWORK[.framework/]
ROOT --> CONTEXT[.context/]
ROOT --> AGENT[.agent/]
ROOT --> VAULT[User_Vault/]
ROOT --> PUBLIC[Athena-Public/]
FRAMEWORK --> FW_MODULES[modules/]
FW_MODULES --> CORE_ID[Core_Identity.md]
FW_MODULES --> OUTPUT[Output_Standards.md]
CONTEXT --> PROFILE[profile/]
CONTEXT --> MEMORIES[memories/]
CONTEXT --> REFS[references/]
AGENT --> SKILLS[skills/]
AGENT --> WORKFLOWS[workflows/]
AGENT --> SCRIPTS[scripts/]
SKILLS --> PROTOCOLS[protocols/]
SKILLS --> CAPS[capabilities/]
sequenceDiagram
participant User
participant Terminal
participant Athena as Athena Core
participant Memory
Note over User, Athena: Phase 1: Instant Boot (<2K Tokens)
User->>Terminal: /start
Terminal->>Athena: Load Core_Identity.md
Athena->>Memory: Recall Last Session Summary
Athena->>Terminal: Ready (Context Grounded)
Note over User, Athena: Phase 2: Adaptive Loading
User->>Athena: "Analyze this architecture" (Complex Query)
Athena->>Athena: Parse Intent (Heavy)
Athena->>Memory: Load System_Manifest.md
Athena->>Memory: Load Output_Standards.md
Athena->>Terminal: Response [Λ+60]
| Trigger | File Loaded | Tokens |
|---|---|---|
| User context query | User_Profile_Core.md |
~1,500 |
| Skill request | SKILL_INDEX.md |
~4,500 |
/think invoked |
Output_Standards.md |
~700 |
| Tag lookup | TAG_INDEX.md |
~5,500 |
| Architecture query | System_Manifest.md |
~1,900 |
| Specific protocol | protocols/*.md |
varies |
Problem: Learnings written to files (e.g.,
User_Profile_Core.md) become passive documentation. The AI doesn't read them unless explicitly prompted, causing the same mistakes to repeat.
Solution: Active Injection — Force-feed critical constraints into the terminal during boot.
sequenceDiagram
participant Boot as boot.py
participant Knowledge as boot_knowledge.py
participant Agent as Athena Agent
Boot->>Knowledge: Execute on startup
Knowledge->>Knowledge: Parse User_Profile_Core.md
Knowledge->>Agent: Print constraints to stdout
Note over Agent: Constraints are now in context window
Key Scripts:
boot_knowledge.py: Extracts and prints constraints.index_workspace.py: RebuildsTAG_INDEX.mdandPROTOCOL_SUMMARIES.mdon shutdown.
See Also: Protocol 418: Active Knowledge Injection
| Command | Description |
|---|---|
/start |
Boot: Core Identity + session recall + create log |
/end |
Close: finalize log, harvest check, git commit |
/think |
Bankai: Deep reasoning with structured analysis |
/ultrathink |
Shukai: Maximum depth (Triple Crown + Adversarial) |
/refactor |
Anti-entropy: diagnostics, orphan fix, VectorRAG sync |
/research |
Multi-source web research with citations |
/needful |
Autonomous high-value action (AI judges what's needed) |
/diagnose |
Read-only workspace health check |
| Protocol | Trigger | Action |
|---|---|---|
| Quicksave | Every user exchange | quicksave.py → checkpoint to session log |
| Intent Persistence | Significant logical change | TASK_LOG.md → document the "WHY" behind code changes |
| Latency Indicator | Every response | Append [Λ+XX] complexity score |
| Visual Architecture Audit | Architecture query / mutation | generate_puml.py → refresh PlantUML map |
| Auto-Documentation | Pattern detected | File to appropriate location |
| Orphan Detection | On /end |
orphan_detector.py → link or alert |
The Bionic Stack (Triple Crown)
graph TD
A[User Query] --> B{Router}
B -->|Fast| C[L1: Reflex]
B -->|Standard| D[L2: Standard]
B -->|Complex| E[L3: Triple Crown]
subgraph TripleCrown [The Logic Engine]
E --> F[DeepCode: Planning]
F --> G[VectorRAG: Context]
G --> H[DSPy: Optimization]
end
H --> I[Response]
I --> J[User]
| Purpose | File | Update Frequency |
|---|---|---|
| Who I am | Core_Identity.md |
Rare |
| How to respond | Output_Standards.md |
Moderate |
| Who the user is | User_Profile.md |
Every session |
| What's forbidden | Constraints_Master.md |
Rare |
| Architecture SSOT | System_Manifest.md |
When architecture changes |
| Available skills | SKILL_INDEX.md |
When skills added |
| Session history | session_logs/*.md |
Every session |
| Component | Technology |
|---|---|
| AI Engine | Google Gemini (via Antigravity) |
| IDE Integration | VS Code / Cursor |
| Knowledge Store | Markdown + VectorRAG (Supabase + pgvector) |
| Version Control | Git |
| Scripting | Python 3.13 |
| Version | Date | Changes |
|---|---|---|
| v8.1 | 31 Jan 2026 | Metrics Sync: 308+ protocols, 995+ sessions; Linked CS-120, CS-140, CS-144 |
| v8.0 | 30 Jan 2026 | Zero-Point Refactor: Sovereign Environment, Score-Modulated RRF (2.0x weights) |
| v7.9 | 07 Jan 2026 | Public repo cleanup: metrics synced |
| v7.8 | 01 Jan 2026 | New year sync: 241 protocols, 495 sessions, Bionic Recovery Protocol (305) |
| v7.7 | 31 Dec 2025 | Year-end sync: 238 protocols, 489 sessions, Value Trinity (245), Ecosystem Physics (303) |
| v7.6 | 28 Dec 2025 | Workflow optimization (E1 Context Handoff, E6 Template Collapse), /resume workflow, 207 protocols, 24 workflows |
| v7.5 | 26 Dec 2025 | Visual Architecture Auditing (PlantUML), Intent Persistence (TASK_LOG), Agentic Engineering Strategy |
| v7.3 | 23 Dec 2025 | VectorRAG (Supabase + pgvector) migration, 164 protocols |
| v7.2 | 20 Dec 2025 | 140+ protocols, nuclear refactor, fact-checking integration |
| v7.0 | 14 Dec 2025 | Antigravity migration, GraphRAG integration (deprecated) |
| v6.x | Nov 2025 | Initial modular architecture |
Concept: Athena is not just a coding assistant. It is a Centralised HQ for your entire life — a "second brain" that manages external domains (Work, Wealth, Health) from a single command center.
graph TD
subgraph "Your Desktop (The World)"
WORK[📁 Work / Assignments]
WEALTH[📁 Wealth / Finances]
HEALTH[📁 Health / Personal]
end
subgraph "The Brain"
ATHENA[🧠 Project Athena]
SCRIPTS[Scripts & Protocols]
MEMORY[Session Logs & Knowledge]
end
subgraph "The Interface"
IDE[⚡ Agentic IDE - Antigravity]
USER[👤 You]
end
USER --> IDE
IDE <--> ATHENA
ATHENA --> SCRIPTS
ATHENA --> MEMORY
ATHENA <-.-> WORK
ATHENA <-.-> WEALTH
ATHENA <-.-> HEALTH
style ATHENA fill:#16a34a,stroke:#333,stroke-width:2px
style IDE fill:#2563eb,stroke:#333,stroke-width:2px
| Component | Role | Analogy |
|---|---|---|
| Project Athena | The Kernel — holds logic, memory, and laws | The Brain |
| External Folders | The Database — holds raw assets (files, docs) | The Body |
| Agentic IDE | The Console — provides compute and interface | The Nervous System |
| You | The Pilot — issues commands and makes decisions | The Consciousness |
To enable Athena to manage your life, you define Mount Points — aliases to external folders that exist outside the Athena directory:
# In src/athena/boot/constants.py
MOUNTS = {
"WORK": "/Users/you/Desktop/Assignments",
"WEALTH": "/Users/you/Desktop/Wealth",
"HEALTH": "/Users/you/Desktop/Health"
}This separation protects your user data from system updates. If Athena's code is reset, your Health records remain safe in their own folder.
To achieve "Total Life OS" functionality, the Agentic IDE must have elevated permissions:
| Setting | Value | Purpose |
|---|---|---|
| Non-Workspace File Access | Enabled |
Allows Athena to reach folders outside its root |
| Terminal Auto Execution | Always Proceed (optional) |
Enables autonomous script execution |
| Secure Mode | Disabled |
Removes friction for trusted environments |
Warning
This is "God Mode". It is powerful but requires trust. Only enable in a personal, secure environment.
Power vs. Safety: An AI that manages your entire life must have access to your entire life. There is no way to sandbox an agent while simultaneously granting it full autonomy.
Mitigation: Instead of locking permissions, lock the process:
- Quicksave before dangerous operations.
- Deny List catastrophic commands (e.g.,
rm -rf /). - Git Commit on every
/endsession.
- User-Driven RSI — The bilateral loop: how you and AI improve together
- Glossary — Key terms and definitions
- Changelog — Full version history
Built by Winston Koh — 10+ years in financial services, now building AI systems.