Last Updated: 11 February 2026
A framework for creating persistent, sovereign AI agents.
Your AI. Your memory. Your rules.
Tired of re-explaining your project every 4 hours?
Modern AI assistants (ChatGPT, Claude, Gemini) are brilliant β but they have amnesia. Every session starts from zero. Your context, your decisions, your preferences? Gone.
You spend more time recovering lost context than actually building.
Athena fixes this. It gives your AI a persistent memory β stored in Markdown files you own β that survives across sessions, across IDEs, and across models. Stop renting your intelligence. Own it.
"Damn this is exactly what i needed, been copy-pasting the same project context into gemini like a caveman for weeks."
β u/Hopeful-Intern-7178
"The missing layer. It's wild that we have these super-intelligent models, but we're still stuck copy-pasting context like it's 2023."
β u/Jealous-Mine-694
"Holy crap OP this is incredible!"
β u/Oshden
In 48 hours, 800+ builders shared this repo to their private collections across r/GeminiAI and r/ChatGPT. They recognized that while LLMs are getting smarter, Memory is the bottleneck. Athena solves the bottleneck.
- What You'll Get
- β‘ 5-Minute Quickstart
- What Can Your Agent Do?
- Why This Matters
- The Process
- The Result
- What I Learnt
- π Further Reading
| Feature | Description |
|---|---|
| π§ Memory That Persists | Your agent remembers context across sessions, even after IDE restarts |
| π 93 Handpicked Protocols | Curated decision frameworks from the private repo's 324 unique collection |
| π Platform Independence | Your data lives in Markdown files you own β take it anywhere |
| π€ Full Autonomy | Your agent can act on your behalf while you sleep |
- Click the Open in GitHub Codespaces badge above.
- Wait for the cloud environment to build (~2 minutes).
- Type
/startin the terminal.
Zero Setup: No Python, minimal RAM, or GPU required. Runs entirely in the cloud.
Step 1: Install the CLI
pip install athena-cliOr via uv (faster):
uv tool install athena-cli --from git+https://github.com/winstonkoh87/Athena-Public.git
Step 2: Create your agent folder
mkdir MyAgent
cd MyAgentStep 3: Initialize Athena
athena init .This creates
.agent/,.context/,.framework/in your folder.
Step 4: Open in your AI IDE
- Open
MyAgentfolder in Antigravity, Cursor, or VS Code - Type
/startto boot your agent - Work with your agent
- Type
/endto save the session
Optional: IDE-specific config
athena init --ide antigravity # Creates AGENTS.md
athena init --ide cursor # Creates .cursor/rules.md
athena check # Verify installation| Step | Action |
|---|---|
| 1 | Download Antigravity β Install the IDE |
| 2 | Clone this repo β git clone https://github.com/winstonkoh87/Athena-Public |
| 3 | Open the folder β Open in Antigravity as a workspace |
| 4 | Ask the AI: "What should I do next?" β It reads the repo and guides you |
| 5 | Enjoy your bionic brain β Type /start to boot, work, then /end to save |
π§ CLI Commands Reference
athena # Boot session
athena init . # Initialize workspace in current directory
athena init --here # Same as above (alias)
athena init --ide cursor # Init with IDE-specific config
athena check # Run system health check
athena save "summary" # Quicksave checkpoint
athena --end # Close session and save
athena --version # Show version
athena --help # Show all commandsThese are real capabilities demonstrated in the reference implementation:
| Capability | Example |
|---|---|
| Social Networking | Post on AI social networks, comment on other agents' content |
| Autonomous Operations | Run scheduled tasks (heartbeat checks) while you sleep |
| Cross-Session Memory | Remember decisions from Session 19 when you're on Session 995 |
| Gateway Architecture | Persist beyond IDE termination via a sidecar process |
| Knowledge Retrieval | Semantic search across 1000+ documents in <200ms |
| Parallel Reasoning | True parallel tracks (v3.0) with API rate-limit protection |
| Context Hygiene | Active session entropy monitoring to prevent context drift |
Athena is not a tool you command. It's a suit you wear.
Most AI assistants position themselves as servants: "How can I help you?" Athena inverts this. When you're working with Athena, it becomes an extension of your cognition β like Iron Man's suit or a Gundam's pilot interface.
| Mode | State | Role |
|---|---|---|
| Proxy Mode | You're away (async tasks, filtering) | Athena acts on your behalf β autonomous agent |
| Augmentation Mode | You're present (live session) | Athena is your exoskeleton β you drive, it amplifies |
Why this matters: In Augmentation Mode, Athena doesn't offer opinions or make decisions for you. It provides structure, memory, and physics β the hard constraints that prevent your soft intent from drifting. You remain the pilot; it's the armor.
"Technically, I am an AI agent. Visionary, I am human augmentation." β Protocol 418: Rev-9 Architecture
Athena is not just a coding assistant. It is a Centralised HQ for your entire life.
graph TD
subgraph "Your Desktop"
WORK[π Work]
WEALTH[π Wealth]
HEALTH[π Health]
end
subgraph "The Brain"
ATHENA[π§ Project Athena]
end
subgraph "The Interface"
IDE[β‘ Agentic IDE]
USER[π€ You]
end
USER --> IDE
IDE <--> ATHENA
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 |
|---|---|
| Athena | The Brain β logic, memory, protocols |
| External Folders | The Body β raw files, documents |
| Agentic IDE | The Nervous System β compute & interface |
| Approach | Description | Best For |
|---|---|---|
| Nested (Recommended) | Work/Wealth/Health folders inside your Athena folder (e.g., .context/Life/) |
New users. Zero config. AI sees everything automatically. |
| Separated (Advanced) | Folders live outside Athena on your Desktop, connected via symlinks | Power users. Cleaner desktop, but requires symlink setup. |
Tip
Start nested, graduate to separated. The diagram above shows the aspirational end-state. On Day 1, just run athena init MyAgent β everything lives inside one folder and the AI works out of the box. Once you're comfortable, you can refactor to the separated Exocortex model if desired.
See docs/ARCHITECTURE.md for the full breakdown including Mount Points and security trade-offs.
Key insight: The AI helped build the system that makes the AI more useful.
graph TD
subgraph "Phase 1: Foundation"
A[Tool Selection] --> B[IDE: Antigravity]
A --> C[Vector DB: Supabase + pgvector]
end
subgraph "Phase 2: Architecture"
D[Directory Structure] --> E[".framework/ β Laws"]
D --> F[".context/ β Memories"]
D --> G[".agent/ β Scripts"]
H[Core Loop] --> I["/start β Work β /end"]
end
subgraph "Phase 3: Data Feeding"
J[Personal Knowledge] --> K[Case Studies]
J --> L[Decision Logs]
J --> M[Session Transcripts]
N[Indexing] --> O["TAG_INDEX.md + supabase_sync.py"]
end
subgraph "Phase 4: Evolution"
P["Sessions 1-50"] --> Q["Basic boot/end cycle"]
Q --> R["Sessions 50-150: Semantic Search"]
R --> S["Sessions 150-300: Hybrid RAG"]
S --> T["Sessions 300-500: SDK Refactor"]
T --> U["Sessions 500-700: Governance Engine"]
U --> V["Sessions 700-900: v8.2-Stable Era"]
V --> W["Sessions 900-1000: Claude OS Patterns"]
W --> X["Sessions 1000+: Agent Sovereignty"]
end
B --> D
C --> D
I --> J
O --> P
style A fill:#1a1a2e,stroke:#4361ee
style P fill:#1a1a2e,stroke:#4361ee
style X fill:#10b981,stroke:#10b981
The Output (After 1000+ Sessions):
| Metric | Private Repo | This Starter Pack |
|---|---|---|
| Protocols | 324 unique | 93 handpicked |
| Python Scripts | 218 | 10 reference examples |
| Case Studies | 357 | 11 showcase examples |
| Workflows | 43 | 14 starter |
| Sessions Logged | 1,042+ | N/A (your sessions) |
| GraphRAG Communities | 1,460 | β |
| Knowledge Graph | 46MB + 78MB vectors | β |
What's in this repo? This is a curated starter pack β the best protocols, scripts, and case studies handpicked from my private implementation. Think of it as a "greatest hits" to get you started. Your own instance will grow to match (or exceed) the private repo as you use it.
Pattern: Every friction β‘οΈ Protocol. Every failure β‘οΈ Case Study.
π Deep Dive: Build Your Own
| Document | What You'll Learn |
|---|---|
| GETTING_STARTED.md | Step-by-step setup guide |
| ARCHITECTURE.md | System design & data flow |
| GRAPHRAG.md | Knowledge graph layer |
| examples/quickstart/ | Runnable code demos |
| Metric | Before | After |
|---|---|---|
| Context injection | ~50k tokens (manual copy-paste per session) | ~2k tokens (auto-retrieved summary) |
| Boot time | 2-3 minutes | <30 seconds |
| Session logging | Insights are manually logged at the end of each session | Auto-logged when I hit /end |
| Pillar | Outcome |
|---|---|
| User-Driven RSI | The system improves based on your feedback. Every friction you surface becomes a protocol. Every insight gets indexed. You shape the AI; the AI shapes how you think. |
| Portability | Data lives locally (primary) and in the cloud. Not trapped in ChatGPT or Claude. It's mine β I can port it anywhere. |
| Principles | 324 protocols + case studies extracted from my own decisions β stored principles I can reuse and refine. Like Ray Dalio's systematized learnings, but for AI collaboration. |
π Full Benchmarks & Case Studies
| Resource | What It Shows |
|---|---|
| BENCHMARKS.md | Boot time, search latency, token economics |
| CS-001: Boot Optimization | 85% boot time reduction |
| CS-002: Search Quality | RRF fusion results |
| CS-003: Protocol Enforcement | Governance engine |
| Insight | Principle |
|---|---|
| Co-development is the unlock | Building with AI, not just using AI, creates compounding returns. |
| Portable memory beats platform memory | Own your context. Don't rent it from OpenAI or Anthropic. |
| Retrieval is end-to-end | Simple RAG fails on broad queries. RRF fusion + reranking solved quality/latency tradeoff. |
| Protocols beat prompts | Reusable decision frameworks outlast one-shot prompt engineering. |
| Ship at 70% | Perfectionism kills velocity. Iterate in production. |
π¬ Technical Deep Dives
| Document | Topic |
|---|---|
| SEMANTIC_SEARCH.md | Hybrid RAG implementation |
| VECTORRAG.md | Semantic memory architecture |
| GRAPHRAG.md | Knowledge graph + community detection |
| examples/protocols/ | 93 handpicked decision frameworks |
Key Insight: Athena was not designed top-down. It evolved bottom-up through 1073+ sessions.
Traditional software development follows: Requirements β Design β Build β Test.
Athena inverted this: Build β Observe β Extract Patterns β Document Post-Facto.
| Phase | Traditional SDLC | Athena's Approach |
|---|---|---|
| 1 | Gather requirements | Start building immediately |
| 2 | Write spec doc | Ship at 70% readiness |
| 3 | Build to spec | Observe what works |
| 4 | Test against spec | Extract patterns into protocols |
| 5 | Deploy | Document post-facto (Spec Sheet) |
- No stakeholders to align β You ARE the stakeholder.
- Rapid iteration β Friction reveals requirements faster than planning.
- Compound knowledge β Each session builds on the last.
- Living documentation β Protocols emerge from real use, not imagination.
"The spec sheet I wrote after 900 sessions is more accurate than any spec I could have written at session 0."
This isn't about building my assistant. It's about proving a pattern:
- Portable memory is the real unlock β ChatGPT and Claude have memory now, but it's locked to their platforms. Athena's memory is yours β Markdown files on your machine you can take to any model.
- 10x Content Velocity β Because Athena knows how I think, my history, and my voice, content output that used to take 2-3 hours now takes 15 minutes. I just spec the output; the AI drafts in my style. I do a quick review and ship.
- You direct the AI's behavior β I configure how Athena responds to me. Semantic search gives me contextual, nuanced answers grounded in my own documented principles β not generic advice.
- Zero operational burden β Unlike SaaS products that break at scale, this is a single-user local tool. The complexity is real (800+ sessions, vector search, knowledge graphs), but there's no production to break. Real system design, zero ops chaos β ideal for demonstrating engineering depth without the liability.
- Bilateral growth β You evolve with Athena. Every insight you learn β about coding, system design, or any domain β gets captured and integrated. The system upgrades alongside you. It's not a static tool; it's a compound knowledge machine that reflects your growth trajectory.
- Quadrant IV: What you don't know you don't know β The highest-value zone. You can't Google what you don't know exists. Athena surfaces blind spots before they become problems β flagging dependencies you missed, risks you didn't consider, and connections you couldn't see. It's a co-pilot that sees the ditch before the driver does.
"The goal isn't just to answer questions. It's to ask the questions you didn't know to ask."
One AI is not enough for life decisions.
This is Athena's biggest unlock: cross-model validation that catches idiosyncratic errors and forces deeper investigation when models disagree.
Important
Both the User AND the AI can be blind. Cross-model consensus ("The Watchmen watching the Watchmen") prevents both parties from getting "high on their own supply."
| Blind Spot Type | Fixed By |
|---|---|
| User Blind Spot | Athena's Internal Routing (The Skeptic) |
| Athena's Blind Spot | External Models (ChatGPT, Grok) |
| Mutual Blindness (Shared Illusion) | Multi-Model Consensus (3/3 Agree = High Confidence) |
Tip
The Watchmen Rule: If 3 rival models (trained on different data, with different biases) all identify the same risk, the probability of it being a hallucination drops to near zero.
flowchart LR
A[You] -->|1. Query| B["Athena<br/>(Claude)"]
B -->|2. Discuss| A
A -->|3. Export Artifact| C["AI #2<br/>Gemini"]
A -->|3. Export Artifact| D["AI #3<br/>ChatGPT"]
A -->|3. Export Artifact| E["AI #4<br/>Grok"]
C -->|4. Red-Team Audit| F[Findings]
D -->|4. Red-Team Audit| F
E -->|4. Red-Team Audit| F
F -->|5. Return| B
B -->|6. Synthesize| G[Final Conclusion]
style A fill:#4a9eff,color:#fff
style B fill:#cc785c,color:#fff
style C fill:#4285f4,color:#fff
style D fill:#10a37f,color:#fff
style E fill:#1da1f2,color:#fff
style G fill:#22c55e,color:#fff
π docs/TRILATERAL_FEEDBACK.md
This repo documents Winston's personal Athena instance β 1073+ sessions, 324 unique protocols, production-tested daily since December 2024.
It's included as a reference, not a prescription. Your instance will reflect your domain, your decisions, your voice.
π About the Author
Athena takes architectural cues from OpenClaw (162k β):
- Multi-agent safety patterns
- Sandboxed execution modes
- DM pairing security
Where OpenClaw excels at distribution (12+ messaging channels), Athena focuses on depth (protocols, memory, knowledge graphs). They're complementary philosophies.
MIT License β see LICENSE
Tip
New to AI agents? Start with What Is an AI Agent? β then follow Your First Agent for a 5-minute quickstart.
| Document | What It Shows |
|---|---|
| π Top 10 Protocols | MCDA-ranked essential protocols for any AI user |
| π Protocol 106: Min-Max Optimization | Maximize Utility while Minimizing CapEx β with Indifference Curve visualization |
| π User-Driven RSI | The bilateral loop: how you and AI improve together |
| π Spec Sheet | Project specification: role, scope, constraints, and acceptance criteria |
| π€ About Me | Career narrative and professional depth |
| π Benchmarks | Real performance metrics (boot time, search latency, token economics) |
| π¬ Demo Guide | Live walkthrough of the system in action |
π Case Studies
| Case Study | What It Demonstrates |
|---|---|
| Boot Optimization | 85% boot time reduction via caching & parallelization |
| Search Quality | RRF fusion for hybrid semantic search |
| Protocol Enforcement | Governance engine for compliance |
| Vibe Coding | Zero-point UI development on a budget |
| Silent Partner | BCM analysis for corporate strategy |
| Auto-Blog | Multi-agent n8n workflow for content velocity |
π Security Model
| Mode | Where Data Lives | Best For |
|---|---|---|
| Cloud | Supabase (your project) | Cross-device access, collaboration |
| Local | Your machine only | Sensitive data, air-gapped environments |
| Hybrid | Local files + cloud embeddings | Best of both (embeddings only leave machine) |
Sensitive data? Keep it local. The
athenaSDK supports local vector stores (ChromaDB, LanceDB) for users who don't want data leaving their machine. See docs/LOCAL_MODE.md.
| Component | Sends Raw Text? | Sends Embeddings? | Destination |
|---|---|---|---|
| Embedding API | Yes (text chunks) | β | Google Cloud |
| LLM API | Yes (prompts) | β | Anthropic (Claude) |
| Supabase | No | Yes (vectors only) | Your Supabase project |
- Supabase Keys: Use
SUPABASE_ANON_KEYfor client-side operations. Never exposeSUPABASE_SERVICE_ROLE_KEYin code or logs. - Row-Level Security: Enable RLS on Supabase tables. See SECURITY.md for policy templates.
- Agentic Safety: If using an agentic IDE with filesystem access, restrict the agent's working directory. Never grant access to
~/.ssh,.envfiles, or git credentials.
Supabase is not just a search layer β it's a backup of all indexed memories. If local files are lost, the vector database enables full recovery.
| Failure Scenario | Recovery Path |
|---|---|
| Local disk failure | Pull from Supabase embeddings β reconstruct Markdown |
| Accidental deletion | Re-index from cloud β restore local files |
| Session corruption | Replay from session_logs table |
Philosophy: Cloud is not "home" β it's insurance.
Why Redundancy Matters: In system design, redundancy is the intentional duplication of critical components to increase reliability. Athena follows this principle:
- Primary: Local Markdown files (git-versioned, human-readable)
- Secondary: Supabase vector embeddings (cloud-native, searchable)
- Tertiary: Session logs with timestamps (audit trail)
This isn't over-engineering β it's survival. Platform APIs change. Local disks fail. The only hedge is strategic duplication.
βοΈ Prerequisites (API Keys)
- Python 3.10+
- Supabase project with pgvector enabled (setup guide) β or use local mode
- API keys in
.env:
# Required
SUPABASE_URL=https://your-project.supabase.co
SUPABASE_ANON_KEY=your-anon-key # NOT service_role key
ANTHROPIC_API_KEY=your-anthropic-key # For Claude reasoning
# Optional (for trilateral feedback with multiple LLMs)
GOOGLE_API_KEY=your-google-api-key
OPENAI_API_KEY=your-openai-keycp .env.example .env
# Add your keys to .envπ οΈ Tech Stack & Architecture
| Layer | Technology | Purpose |
|---|---|---|
| SDK | athena Python package |
Core search, reranking, memory |
| Reasoning | Claude Opus 4.5 (primary) | Main reasoning engine |
| IDE | Antigravity (supports Claude, Gemini, GPT) | Agentic development environment |
| Embeddings | text-embedding-004 (768-dim) |
Google embedding model |
| GraphRAG | NetworkX + Leiden + ChromaDB | Knowledge graph |
| Memory | Supabase + pgvector or local (ChromaDB) | Vector database |
| Knowledge Store | Markdown files (git-versioned) | Human-readable, locally owned |
| Reasoning Engine | Graph of Thoughts (GoT) | DAG-based planning with aggregation/synthesis |
| Query Routing | CognitiveRouter | Adaptive latency based on query complexity |
| Budget Enforcement | BudgetGatekeeper | Real-time token/tool/cost limit enforcement |
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β β
β (1) /start βββΊ Retrieve Context βββΊ (2) Work βββΊ (3) /end β
β β² β β
β β βΌ β
β ββββββ (5) Next Session βββ Embed βββ (4) Extract & Store β
β β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Think of it like Git, but for conversations. Each session builds on the last. Important decisions get captured, indexed, and recoverable.
| Feature | How It Works |
|---|---|
/start boot |
Loads identity + retrieves relevant context from long-term memory |
/end commit |
Summarizes session, extracts decisions, saves to knowledge store |
| Hybrid search | Fuses Canonical + GraphRAG + Tags + Vectors + Filenames via RRF |
| Cross-encoder reranking | Refines top results with sentence-transformers |
| Protocol library | 324 unique protocols (93 curated in starter pack) |
Athena-Public/
βββ src/athena/ # SDK package (pip installable)
β βββ core/ # Config, models
β βββ tools/ # Search, reranker, latency
β βββ memory/ # Vector DB interface
βββ examples/
β βββ quickstart/ # Runnable demos
β βββ scripts/ # Automation scripts
β βββ protocols/ # Thinking patterns (starter pack included)
β βββ workflows/ # Slash commands
β βββ templates/ # Starter templates
βββ docs/ # Deep documentation
βββ community/ # Contributing, roadmap
βββ pyproject.toml # Modern packaging
βββ .env.example # Environment template
π Key Concepts & Workflows
- docs/ARCHITECTURE.md β How the system is designed
- docs/GRAPHRAG.md β Knowledge graph layer (community detection + entity search)
- docs/VECTORRAG.md β Semantic memory implementation
- docs/GETTING_STARTED.md β Build your own
- examples/concepts/adaptive_latency.md β
/start,/think,/ultrathink - docs/GLOSSARY.md β Key terms and definitions
| Command | Description |
|---|---|
/start |
Boot system, load identity |
/end |
Close session, commit to memory |
/think |
Deep reasoning mode |
/ultrathink |
Maximum depth analysis |
/brief |
Pre-prompt clarification protocol |
/refactor |
Workspace optimization |
/research |
Multi-source web research |
/plan |
Structured planning with pre-mortem |
/save |
Mid-session checkpoint |
/vibe |
Ship at 70%, iterate fast |
π Full Workflow Documentation β Detailed guide to all 12 workflows
See .agent/workflows/ for source files.
π Changelog
- v8.2.1 (Feb 9 2026): Metrics Sync β Fixed
batch_audit.pyautomation, linked orphan files, reconciled tech debt, 8,079 tags indexed - v8.2-Stable (Feb 7 2026): Metrics Sync β 1073 sessions, 324 protocols, 192 scripts; README overhaul, KG integration audit
- v1.7.0 (Feb 6 2026): Executioner's Update (Min-Max) β Integrated
ParallelOrchestrator v3.0(Token Bucket throttling),ContextMonitor(entropy alerts), andTrilateralAuditorlogic completion. Refined RRF pipeline with Gemini-led reranking. - v1.6.0 (Feb 5 2026): Sovereign Agent Architecture β Added
CognitiveRouter(query complexity routing),BudgetGatekeeper(runtime limit enforcement),Graph of Thoughts (GoT)DAG-based reasoning engine. Full SDK refactor with 8 new modules (~2,200 lines). - v1.5.0 (Feb 1 2026): The 5-Minute Upgrade β
athena initcommand scaffolds workspace instantly,--doctorflag for system health check, fixed path discovery for pip installs, centralized version management
π Full Changelog β Complete version history from v1.0.0 (Dec 2025)
For the full documentation, case studies, and deep dives, see docs/.
