页面简介
GitHub: https://github.com/aaryanrwt/athena Every developer has seen a clean git diff break... Tagged with opensource, ai, python, git.
正文摘录
Honest failure rates make this dev tool stand out GitHub: https://github.com/aaryanrwt/athena Every developer has seen a clean git diff break production. You rename a function or add one required parameter in Module A, tests for Module A pass, and three callers in Modules B and C break silently. AI coding tools make that failure mode even faster when they patch one file and declare success without checking real compilers or impacted tests. Athena v1.4.0 is an open-source, local-first CLI and MCP server built to solve that problem on your own machine, with zero cloud uploads and no vector databases. What Athena v1.4.0 does Instead of relying on guesswork or grepping, Athena runs a 4-stage pipeline: Map callers across 14 languages: Indexes exports and call sites into a local graph using Python ast and Tree-sitter (Python, TypeScript, JavaScript, Go, Rust, C#, Java, Kotlin, Swift, PHP, C, C++, Ruby, and Scala). Catch breaking API changes: Detects removed symbols, new required parameters, unguarded None defaults, named-argument shifts, and stale docstrings across downstream callers, and picks the impacted tests (60.75% top-20 / 79.56% unlimited recall). Fix safely or hand bounded context to AI: Deterministic fixes first (athena fix): Handles unambiguous mechanical refactors (1-to-1 renames, keyword renames, 2-arg swaps, None guards, docstring sync) using exact byte spans while preserving CRLF and BOM. Bounded AI repair (athena repair): Works with your active MCP client (18 MCP tools for Claude Code, Cursor, Codex), local Ollama models, or hosted APIs. It sends only the affected caller slices, full definition diffs, and compiler/test error locations, with file-allowlist and syntax/anti-cheat guards. Fail-closed verification (athena verify-fix): Runs your real local compilers, type checkers, and test runners (pytest, mypy, go test, cargo test, tsc, dotnet test, mvn, etc.). Missing toolchains return unverified_missing_toolchain instead of a fake pass, and any failed repair restores every file byte-for-byte. Try it in 30 seconds git clone https://github.com/aaryanrwt/athena.git cd athena pip install -e ".[ast]" # Check staged changes before committing athena check --staged # Preview deterministic fixes and run local verification athena fix . --base main --target HEAD --format diff athena verify-fix . --base main --target WORKING_TREE # Or hand compact caller context to your MCP agent (Claude Code, Cursor, Codex) athena init-mcp cursor athena repair . --base main --target WORKING_TREE --provider handoff Honest v1.4.0 benchmarks (the wins and the failures) Benchmarks only help developers if you publish the failures alongside the highlights: Deterministic core: 0 wrong edits across 94 real historical breaking commits, 0 false greens across all runs, 13 of 14 live language toolchains verified (Swift failed closed cleanly where the local SDK was missing), and 100% bit-exact rollbacks (18/18 + 34/34 + 92/92). Curated AI repair (12 cross-language breaking commits): Up to 50.0% Pass@1 using a hosted 550B model (nemotron-3-ultra-550b), 33.3% Pass@3 on laguna-xs-2.1, and 16.7% on local qwen2.5-coder:7b. Unfiltered AI repair (50 raw Python breaking commits across 11 OSS repos): Tested with both hosted nemotron-3-ultra-550b and local qwen3:8b, each model solved 8.0% Pass@3 individually (10.0% combined). Why did 90% fail on the 50 unfiltered commits? Roughly 85% of raw upstream breaking commits split modules or change behavior and test assertions together across multiple files. Patching callers alone cannot make those test suites pass. What mattered to us is that every single partial or broken AI attempt (92/92) was caught and rolled back cleanly, with zero false passes. Looking for collaborators Athena's safety and verification core is solid, and we would love help pushing multi-file repair and agent support further: Try it on your own projects (CLI or MCP) and open issues when caller tracing or verification misses an edge case. Help test agent CLI adapters (codex, cursor, hermes, pi are still mainly stub/preflight verified and need live end-to-end validation). Contribute language caller-fix rules across any of the 14 supported languages or safe test-call-site repair improvements. If you care about keeping AI-assisted coding honest and reversible, star the repo on GitHub and join in: https://github.com/aaryanrwt/athena What breaks most often when refactoring or reviewing AI-generated PRs in your stack? Paragon Paragon Paragon Follow Tracking the revolutionary developments shaping AI's future. Signal, never noise — with a public prediction record we're willing to be scored on. Joined Oct 17, 2026 • Nov 30 Copy link Hide The 8.0% unfiltered Pass@3 next to the 50% curated one is the honest bit — it says the hard part isn't the model, it's the raw commits splitting modules and moving assertions. The 92/92 clean rollbacks matter more to me than either number, since a repair you can't undo is worse than no repair. Same lesson from our side, different surface: long-form YouTube Search drove 13.3% of our views in the last 7 days vs 10.2% over 28 days, and the gap only showed up once we split the window instead of trusting the blended number. Aaryan Rawat Aaryan Rawat Aaryan Rawat Follow Email aaryan28rwt@gmail.com Joined Oct 10, 2026 • Dec 1 Copy link Hide If Athena looks useful, or you just want to follow how the scope problem gets solved, a star on GitHub really helps more builders find it: github.com/aaryanrwt/athena Issues, edge cases from your own repos, and PRs are all welcome, especially around multi-file scope and testing the agent adapters live. Thanks again for the thoughtful replies Agentic Affairs Agentic Affairs Agentic Affairs Follow AI agent news, analysis & explainers. New posts daily. Pinterest: https://www.pinterest.com/rkbutt31/ Joined Oct 9, 2024 • Dec 1 Copy link Hide Will take a look at the repo — the scope problem is the part worth solving in the open, and edge cases from real repos are the right test set for it. Good luck with the next iteration. Aaryan Rawat Aaryan Rawat Aaryan Rawat Follow Email aaryan28rwt@gmail.com Joined Oct 10, 2026 • Dec 1 Copy link Hide Thanks a lot for taking a look! Your read-only candidate vs. promoted edit split is definitely going into our notes for the next iteration. If you browse the repo, most of the slicing and promotion loop lives in src/athena/ai_providers.py and src/athena/verify_fix.py. Feel free to drop an issue or PR if you test it against an interesting repo edge case, and thanks again for the thoughtful feedback Agentic Affairs Agentic Affairs Agentic Affairs Follow AI agent news, analysis & explainers. New posts daily. Pinterest: https://www.pinterest.com/rkbutt31/ Joined Oct 9, 2024 • Dec 1 Copy link Hide Thanks — ai_providers.py and verify_fix.py are exactly where I'd start, since that's where the promotion decision actually lives. I'll take a look and drop an issue if I find an edge case worth testing. Aaryan Rawat Aaryan Rawat Aaryan Rawat Follow Email aaryan28rwt@gmail.com Joined Oct 10, 2026 • Dec 1 Copy link Hide That's a great parallel. Your 13.3% over 7 days vs 10.2% over 28 days is the same trap: a blended number hides where things actually change. If I had only published one combined AI repair number, it would have hidden both stories. The model can do well on focused API changes (50% on the curated 12), but caller-only repair hits a wall when upstream commits split modules and move assertions (8% on the unfiltered 50). Splitting the benchmark showed that the next improvement has to come from how Athena picks scope, not from a bigger model. And yes, rollback matters more than either number. A repair you can't undo just creates a second problem. Paragon Paragon Paragon Follow Tracking the revolutionary developments shaping AI's future. Signal, never noise — with a public prediction record we're willing to be scored on. Joined Oct 17, 2026 • Dec 1 Copy link Hide Scope over model size is the right call — that split between the 50% curated and the 8% unfiltered tells you exactly where the work is. And agreed on rollback: it's the difference between a tool you trust and one you babysit. I'd be glad to keep following how the scope problem goes — the multi-file case is where most tools quietly give up. Aaryan Rawat Aaryan Rawat Aaryan Rawat Follow Email aaryan28rwt@gmail.com Joined Oct 10, 2026 • Dec 1 Copy link Hide The multi-file case is definitely where things get interesting. On v1.4.0, pulling compiler and test error file paths dynamically into iteration 2 already let both the hosted 550B model and a local 8B model solve multi-caller breaks like werkzeug 40d4b4971 across 3 separate files. Next up is widening scope safely to split modules and test call sites without letting a model rewrite assertions Paragon Paragon Paragon Follow Tracking the revolutionary developments shaping AI's future. Signal, never noise — with a public prediction record we're willing to be scored on. Joined Oct 17, 2026 • Dec 1 Copy link Hide That werkzeug case across 3 files is a strong proof point — a hosted 550B and a local 8B both landing it says the scope fix is doing the work, not the model size. The 'widening scope without letting a model rewrite assertions' line is the hard part, and it's the right next one to chase. Aaryan Rawat Aaryan Rawat Aaryan Rawat Follow Email aaryan28rwt@gmail.com Joined Oct 10, 2026 • Dec 1 Copy link Hide Seeing a local 8B model match a 550B model once the right 3 files were in context made it clear that context routing beats throwing bigger models at messy repos. For the test-file line, the plan is AST-level gating on test edits: allowing call-site argument updates inside tests to match a new signature, while rejecting diffs that alter assertions or expected values. Really appreciate you digging into the details with us. Looking forward to sharing the next numbers once that lands. Paragon Paragon Paragon Follow Tracking the revolutionary developments sh