r/coolgithubprojects • u/Significant-Log-4272 • 8d ago
Athena v1.3.1 (Update #3): I ran my offline caller-checking tool across 2,472 commits of Google FlatBuffers and NVIDIA cuVS. It caught 55 breaking API changes and ran up to 26.73x faster with hybrid Rust
Hey everyone, this is my third post here sharing updates on Athena (athena-mcp), my Apache-2.0 offline code-intelligence tool (CLI, terminal UI, GitHub Action and 13-tool MCP server).
Repo: https://github.com/aaryanrwt/athena
Quick recap if you missed the first two posts: git diff only shows the lines you edited, so renamed functions, changed defaults, unit shifts or broken callers ten files away often slip past green PRs. Athena sits next to Git completely offline (0-LLM default, no cloud indexing or telemetry), traces callers across 14 languages, catches breaking changes before merge and predicts which tests to run.
What changed in v1.3.1 since my last update
Instead of doing a full rewrite in Rust (which would hurt Python AST fidelity and make contributing harder), I kept Python as the main codebase and ported just 4 hot kernels to Rust via PyO3, plus replaced per-file git show calls with batched git cat-file --batch (4.02x faster diff checks on Athena itself). Pure-Python fallback still works out of the box (FAST_ANYTHING_DISABLE=1).
The honest fail from this release: I also ported our unified diff parser to Rust. It matched Python on 229/229 test calls, yet ran 3.1x slower because copying strings across the PyO3 FFI boundary cost more than parsing in Python. We dropped that crate and kept diff parsing in Python.
We also added predictive test selection (athena affected-tests for pytest/Playwright/unit suites), CUDA and TeX support, multi-hop TS/JS barrel re-export tracing, TOCTOU working-tree drift guards and explicit ResidualUnknown tracking for dynamic magic (Python metaclasses/setattr, PHP/Laravel magic) so the graph never fakes completeness.
Before vs After Rust Audit (1,000+ commits each, 0 regressions)
Tested side-by-side (FAST_ANYTHING_DISABLE=1 vs Rust enabled):
| Repo | Span | Graph Build (Before -> After) | Caught | Parity |
|---|---|---|---|---|
google/flatbuffers | 1,000 commits | 43.39s -> 1.62s (26.73x) | 34 breaks, 831 tests | 14/14 SHA-256 identical |
NVIDIA/cuvs | 1,472 commits | 29.89s -> 1.33s (22.48x) | 21 breaks, 306 tests | 14/14 SHA-256 identical |
microsoft/playwright-python | 1,000 commits | 45.78s -> 12.22s (3.75x) | 18 breaks, 604 tests | 14/14 SHA-256 identical |
Try it locally (30 seconds)
git clone https://github.com/aaryanrwt/athena.git
cd athena
pip install -e .
athena map .
athena check --staged
athena affected-tests .Looking for feedback, stars & PR collaborators
If you run Athena on one of your own repos and it catches something useful (or breaks on an edge case), I would genuinely appreciate you trying it out, dropping a star on GitHub and opening an issue or PR.
Areas where PR collaborators would be huge right now:
- Expanding AST / structural parsers for more languages and edge cases
- Testing and benchmarking on large monorepos (Linux/macOS/Windows)
- New test-runner mappings for
athena affected-tests(Jest, Vitest, Go test, Cargo) - Packaging prebuilt Rust wheels so users get the speedups automatically on
pip install
Happy to answer any technical questions about the PyO3 hybrid split, AST caller tracing or the benchmark setup