_

Athena scans your repo and writes honest, evidence-backed project knowledge that Claude Code, Cursor, Codex, GitHub Copilot, Gemini CLI and other coding agents actually read. No guessing, no leaked secrets, and nothing leaves your machine.

$npm install -g project-athena

Or run instantly:npx project-athena init(Node.js ≥ 22.12)

Athena Icon“Turn any codebase into clear knowledge.” — MIT Licensed CLI
athena-cli · bash
Example output
$athena init
›Scanning project structure...
local-first engine · 127.0.0.1node ≥ 22.12 required
Interactive Data Pipeline

Best-in-class context.

See how Athena turns raw repository files into evidence-backed, honest intelligence that AI coding agents rely on instead of guessing.

Active Stream:ORM & Entities
Phase: input
01. Repository Source
Prisma AST Entityprisma/schema.prisma:1
model User { id String @id email String @unique }
02. Athena Engine
Athena Icon

AST Entity Parser

Resolved models, fields & relations without guessing

Assigned Label:DETECTED
03. Agent Consumption
.athena/database.md
MCP Tool
Query tool: get_database_schema
✓ User model [DETECTED: prisma/schema.prisma:1] -> 2 fields
Delivered to:Cursor IDE & Claude Code
Verifiable Receipt Citation: prisma/schema.prisma:1 → .athena/database.md
Command:athena mcp
The Athena Core Promise

Every fact shows its receipts.

AI coding agents fail when they guess. Athena eliminates guesswork by labeling every piece of generated knowledge with its exact certainty tier and source code evidence.

FACTActive preview

Declared in configuration (such as package.json) or asserted by the developer.

Receipt citation:
Node.js ">=22.12" — FACT · package.json (engines)
DETECTEDClick to view

Found through heuristic detection, file signatures, or AST parsing.

Receipt citation:
Prisma — DETECTED (high) · prisma/schema.prisma:1
INFERREDClick to view

Derived from patterns or generated via optional AI providers.

Receipt citation:
Auth pattern: JWT bearer — INFERRED · based on src/auth/*
UNKNOWNClick to view

Athena cannot verify the detail with evidence, so it refuses to guess.

Receipt citation:
Stripe webhook secret — UNKNOWN (redacted or not set)
How agents consume FACT labels
No guessing · Explicit citation
// FACT: Declared in configuration or asserted by the developer
"node": ">=22.12" [FACT: package.json (engines)]
"target": "ES2022" [FACT: tsconfig.json:4]
🛡️

Athena says “unknown” instead of guessing. There are no fake confidence scores, no synthesized vanity metrics, and no simulated activity.

Evidence-first engineering
Inside the .athena/ Directory

What you get

Structured, modular Markdown files stored directly in your repository. Generated files refresh on re-analysis, while developer-owned files like rules.md and custom manual sections are preserved forever.

.athena/ — 12 documents
12 documents
Manual edits in any document are automatically preserved on update.
.athena/project.mdGENERATED
Example content
What this project is, its technologies, structure, entry points, commands and development workflow.
# Project
## Overview
**Name:** shop
**Project purpose:** UNKNOWN — no description found in manifests.
## Technologies
| Technology | Status | Evidence |
| --- | --- | --- |
| Next.js | DETECTED (high) | package.json |
| Prisma | DETECTED (high) | package.json, prisma/schema.prisma |
Agent Ecosystem

Works with your agents

Configure integrations in one step. Athena generates target instruction files, registers activity hooks, and provides an on-demand MCP server.

CLI setup

Claude Code

Anthropic's terminal agent.

What Athena configures:
Adds an Athena section to CLAUDE.md that imports .athena/rules.md and explains when to read each knowledge file (your existing CLAUDE.md content is kept)
Adds activity hooks in .claude/settings.json, so athena activity shows Claude Code's tool use
Registers the Athena MCP server in .mcp.json
athena agents add claude-code
CLI setup

Cursor

AI-first code editor.

What Athena configures:
Writes an Athena project rule at .cursor/rules/athena.mdc that points Cursor to .athena/
Adds activity hooks in .cursor/hooks.json, so athena activity shows Cursor's tool use
Registers the Athena MCP server in .cursor/mcp.json
athena agents add cursor
New in v0.2.0

Codex

OpenAI's coding agent (CLI, IDE extension and app).

What Athena configures:
Adds the Athena section to AGENTS.md, which Codex reads
Registers the Athena MCP server in .codex/config.toml (inside # athena:start / # athena:end markers; the rest of the file is kept)
Adds activity hooks in .codex/hooks.json
Note: Codex only loads .codex/ for trusted projects; athena doctor tells you if the project isn't trusted yet
athena agents add codex
New in v0.2.0

GitHub Copilot

GitHub's coding agent in VS Code, the Copilot CLI and the cloud agent.

What Athena configures:
Adds a marked Athena section to .github/copilot-instructions.md (your existing content is kept)
Registers the Athena MCP server in .vscode/mcp.json (VS Code)
Adds activity hooks in .github/hooks/athena.json
athena agents add copilot
New in v0.2.0

Gemini CLI

Google's open-source terminal agent.

What Athena configures:
Adds a marked Athena section to GEMINI.md
Registers the Athena MCP server and activity hooks in .gemini/settings.json (other settings are kept)
athena agents add gemini-cli
CLI setup

Antigravity

Advanced agentic coding environment.

What Athena configures:
Writes an Athena workspace rule at .agents/rules/athena.md that tells the agent how to use .athena/
Tip: if Antigravity doesn't apply the rule automatically, set its activation to Always On
Activity hooks are not available for Antigravity
athena agents add antigravity
New in v0.2.0

Windsurf

Codeium's AI editor (now Devin Desktop).

What Athena configures:
Writes an always-on rule at .windsurf/rules/athena.md
MCP is not registered automatically, because Windsurf keeps MCP config per user. Add a server named athena with command athena and args ["mcp"] yourself
Activity hooks are not available
athena agents add windsurf
New in v0.2.0

Cline

Open-source coding agent for VS Code and JetBrains.

What Athena configures:
Writes a rule at .clinerules/athena.md (or .cline/rules/athena.md if .clinerules is a single file, which Athena never touches)
MCP is not registered automatically, because Cline keeps MCP settings per user. Add a server named athena with command athena and args ["mcp"] yourself
Activity hooks are not available
athena agents add cline
CLI setup

AGENTS.md

Universal standard for any AI agent.

What Athena configures:
Adds a marked Athena section to AGENTS.md (your existing content is kept)
Instructs agents how to inspect .athena/ files
Includes the Athena workflow and a relevance map telling agents which document to read for each kind of task
athena agents add agents-md

Any tool or agent supporting AGENTS.md or standard stdio MCP can consume Athena out of the box.

CLI Capabilities

Built for precision and developer control

Explore all features in detail
Workflow

Stays in sync

Detects repository drift and proposes knowledge updates. Changes are never applied automatically without your explicit review.

athena sync / athena watch
Intelligence

Context engine

Show exactly which knowledge documents and sections an agent should read for a specific task or feature, and why.

athena context "<task>"
Protocol

MCP server

Model Context Protocol stdio server exposing 12 specialized tools so agents query schemas, routes, and rules on demand.

athena mcp
Interface

Local web UI

Listens on 127.0.0.1 (port 7432 by default) with token in the URL fragment. Features a knowledge editor, rules manager, sync review, and activity monitor.

athena open
Security

Security scan with your own tools

Dispatches native ecosystem security checkers (npm audit, pip-audit, govulncheck, cargo audit, composer audit) without external telemetry.

athena security
Quality

Diff review & rules checklist

Checks current git diff for facts worth reviewing (secrets, dependencies, schema/route changes) and lists rules from rules.md to verify.

athena review
Automation

CI checks & pre-commit hook

Run athena sync --check in CI and block commits when knowledge is out of date. Uses the GitHub Action Sabari-Vasan-SM/athena@v0 to review pull requests.

athena git-hook / GitHub Action
Privacy & Local Isolation

Runs 100% on your machine.

Your proprietary architecture and repository logic remain exclusively on your device.

127.0.0.1 only

Athena listens on 127.0.0.1, port 7432 by default (or the next free port if 7432 is busy). Access token is in the URL fragment (after #), so browsers never send it in requests or Referer headers.

Secrets redacted

Secrets are detected and redacted. Environment variable names are mapped, but values are never stored.

No account

No telemetry account, no cloud login, and no centralized database. Runs 100% locally on your machine.

AI optional

Analysis, documentation, the web UI and the MCP server run fully offline. Two optional commands use the network, and only when you run them: athena security runs your ecosystem's audit tools (such as npm audit), which query their own advisory databases, and athena ai enrich sends redacted documents to the AI provider you configured.

Athena Icon

Initialize your project in one command.

Stop letting AI coding assistants hallucinate your architecture. Give them persistent, evidence-backed knowledge in .athena/ right now.

$npm install -g project-athena
No account · Local-first · Node.js ≥ 22.12 · 10 language ecosystems