r/foss • u/Significant-Log-4272 • 1d ago
Athena (Apache-2.0): an offline CLI and code-graph tool that catches breaking API changes before you commit (zero cloud, zero LLM required)
Most tools that check codebase impact or help navigate large repos want an API key, a cloud account or a vector database.
I built Athena (v1.3.0), a Free and Open Source (Apache-2.0) CLI, Terminal UI and local MCP server written in Python that runs 100% offline on your own machine.
What it does:
- Catches breaking changes before commit
Compares old vs. new Python ASTs and structural signatures across 14 languages (including Go, Rust, TypeScript, C++, Java, Ruby and PHP) to flag removed exports, shifted parameters, unguarded None defaults and broken callers.
2. Local code graph and 2KB repo map
Builds an incremental local graph (.athena/graph.json) with zero external services so you or local coding tools can search symbols and callers without scanning the entire tree.
3. Tracks technical debt and unknowns honestly
Binds shortcut comments directly to their enclosing functions and explicitly flags dynamic Python patterns (getattr, eval, custom metaclasses, __init_subclass__, setattr) as unresolved unknowns instead of pretending static analysis sees everything.
4. CI and release ready
Exports SARIF 2.1.0, single-file static HTML reports, SemVer bump checks and pre-commit hooks.
I tested it offline across 10 FOSS repos with 10k+ stars (100 commits each, 8,804 files) plus 1,000-commit runs on FastAPI, Ollama, Tauri and Svelte. All passed with 0 errors.
GitHub: https://github.com/aaryanrwt/athena
Issues, PRs, bug reports and ⭐ stars are always open