Give coding agents neural code hygiene, symbol-graph untangling, web-wired MCP for deps + pkgs + libs + crates, <5ms hooks, and TestMu AI Kane CLI browser & mobile proof.
refit works inside your coding agent loop (Claude Code, Cursor, Gemini CLI, Kiro, Antigravity) — and standalone in your terminal or CI. THE PROBLEM: TestMu AI found 81% of teams merged AI code they did not understand, and no harness can audit itself. Fast AI edits pile up cycles, clones, stale READMEs, and secret/Unicode leaks, or claim "Done" while the live UI is broken. WHAT WE BUILT (12.71 MiB Rust binary, 47 .rs files, 0 active Cargo duplicates, 114/114 tests, live on crates.io & skills.sh): - Neural Hygiene & Deslop: Embedded ternary codehygiene (0.000000 parity vs JS, median 0.845) + anti-gaming complexity rules. - Stem SymbolGraph & Untangle: 5-lang lexer (Py/Rs/TS/JS/Go), Zstd SST, Pearce SCC cycles, SimiFlow clones, Genome twins, README --verify-docs, STE100 lint, 1-hop rewind. - Web-Wired 12-Tool MCP & <5 ms Hooks: 12/100 Antigravity slots (vs 92/100 Playwright MCP), zero-key Keenable web search (refit_search), keyless OSV.dev SCA, SEP-2640 skill, and <5 ms push/secret/Unicode hooks. - Gate 4 Kane CLI & MVCC Repair: <10 ms static short-circuit (0 wasted credits) -> kane-cli --agent (NDJSON, result_code 100/740, --policy YAML, 0-credit _test.md replay, rawzip .evidence secret audit) -> SymbolGraph rewind -> atomic BLAKE3/CRC32C MVCC WAL repair.
HOW AGENT & KANE CLI TALK (4 SYNCHRONIZED CHANNELS) 1. CLI (`refit check . --verify-docs --kane <spec> --policy tests/kane/refit-policy.yaml`) 2. 12-tool MCP (`refit_check(kane=...)`, stdio + stateless HTTP, 18/100 total Antigravity slots when paired with TestMu Hosted MCP vs 92/100 for Playwright MCP) 3. <5 ms Event Hooks (`REFIT_KANE_GATE=1` marks UI/doc edits dirty on PostToolUse/AfterTool/afterFileEdit/fileEdited and blocks `git push` until `.refit/kane_last.json` matches `.git/HEAD`) 4. Agent Skill (`npx skills add bevowoved/refit --skill refit` + SEP-2640 `skill://refit/SKILL.md`) REAL LIVE KANE CLI PROOF (RED -> POLICY -> GREEN -> 0-CREDIT REPLAY) - Red Run (Exit 1): Caught an injected UI cycle-handler regression in real Chrome (failed PASSED -> BUG_740 transition + console TypeError while all 114 Rust tests stayed green): https://test-manager.lambdatest.com/projects/01M8CCK3HA4AXTYRJCKDBE2CXY/test-cases/01M8CEN7WZWRWEQ604GT7MJ6FW/dashboard/share/US_4KSHZBGFZ41JKBN8YR1L1H6FI8EREXRKJ9UZ597AW95EI2N7A0XUEOEF8ZGW1EB1?type=summary&agentView=true&fqdn=summary-page - Policy & .evidence ZIP Audit Loop (`policy_failed` + 13-file SymbolGraph rewind, 0 secret leaks in extracted `failure.yaml`): https://test-manager.lambdatest.com/projects/01M8CCK3HA4AXTYRJCKDBE2CXY/test-cases/01M8CEWA1F5DKEEY3QMXFCC6W3/dashboard/share/US_X7ZDGRM4VIFTRAFYL69VKO6DOHP811WOXG9FTXYJYDMUVVVMRVBMKQ4HNTILRNEO?type=summary&agentView=true&fqdn=summary-page - Green Run (Exit 0): Live site verified (`verdict: "passed"`, 0 static secrets in 7 ms), validated 1.95 MB fallback pack archived at `docs/evidence/refit-hud-verified.evidence`: https://test-manager.lambdatest.com/projects/01M8CCK3HA4AXTYRJCKDBE2CXY/test-cases/01M8CFGKD2V1KJECDJ20ZDVYZ8/dashboard/share/US_QSIMKC2608G5T2JKFG18SK3T3TG0H75A16056KSPCAFXTK2QA3UH7O6ZUQMVKLEX?type=summary&agentView=true&fqdn=summary-page - 0-Credit Cached Replay (Exit 0): `tests/kane/hud_mobile_viewport_test.md` with `--policy tests/kane/refit-policy.yaml --no-adaptive-heal` -> 1 replay / 0 author steps, `policy_verdict: pass` (`tests/kane/runs/green-replay-0cr.json`). <20s JUDGE REPRODUCIBILITY (ZERO API KEYS NEEDED) - Live Gate 4 Site: https://bevowoved.github.io/refit/?demo=1&at=100&tab=kane - Install: `cargo install refit --locked` (https://crates.io/crates/refit) + `npx skills add bevowoved/refit --skill refit` - Run offline-safe structural + README truth check: `refit audit . --markdown && refit check . --verify-docs --format human` - Keyless web research works out of the box via free Keenable Public MCP (`https://api.keenable.ai/mcp-public`) + keyless OSV.dev; optional failover via `KEENABLE_API_KEY`, `EXA_API_KEY`, `FIRECRAWL_API_KEY`, or `REFIT_OFFLINE=1`. CROSS-OS & HONEST LIMITS Verified across macOS Apple Silicon (NEON, APFS clonefile, local iOS Simulator / Android Emulator), Linux x64 (jemalloc 17.57 MiB MCP RSS, AVX2), and Windows x64 / WSL2 (Win32 Job Objects, AVX2). Static checks cannot see rendered DOM/CSS; first-time authoring takes 30-120s (cached replays run at 0 LLM author steps); local mobile emulators require Apple Silicon macOS (Windows/Linux dispatch to TestMu Cloud `--target android --remote`).
Built in two weeks for the KaneCLI Online Hackathon.
See the hackathon →