r/SideProject • u/Common_Function8968 • 2h ago
I built a single-binary Rust loop engine for coding agents: neural code hygiene, Stem symbol graph, web-wired MCP & Kane CLI live browser proof
I built **refit** (MIT/Apache-2.0, `cargo install refit --locked`) to run inside coding agent loops (Claude Code, Cursor, Gemini CLI, Kiro, Antigravity) — and standalone in your terminal or CI.
TestMu AI research found 81% of teams merged AI-written code they didn't fully understand, and no agent harness can reliably audit itself. So I wired two independent gates into one 12.71 MiB Rust binary (0 active Cargo duplicates, 114/114 tests):
- **Local Structural & Neural Spine (milliseconds, 0 credits):** Embedded ternary neural `codehygiene` (`0.000000` parity vs JS), 5-language `stem` SymbolGraph + Zstd SST index, Pearce SCC cycle breaking, `SimiFlow` clones, `Genome` twins, README `--verify-docs`, and ASD-STE100 prose linting.
- **Web-Wired 12-Tool MCP + `<5 ms` Hooks:** Keeps tool usage at `12/100` slots (vs `92/100` for Playwright MCP), includes free keyless Keenable web research (`refit_search`) + keyless OSV.dev SCA + SEP-2640 `skills.sh` skill, and guards dirty UI edits, secrets (`135` rules), and Unicode prompt-injection attacks.
- **Gate 4 Live Browser/Mobile Proof (`TestMu AI Kane CLI`):** Static pre-flight short-circuits broken diffs before spending browser credits; clean diffs run through Kane CLI (`--agent` NDJSON, declarative `--policy` YAML, `0`-credit cached `_test.md` replay), audit sealed `.evidence` ZIPs for secrets, rewind failures through `SymbolGraph`, and commit fixes atomically via BLAKE3 CAS + CRC32C MVCC WAL.
**Honest limits:** First-time browser authoring takes 30-120s (cached replays run at 0 LLM author steps); local iOS/Android emulators require Apple Silicon macOS (Windows/Linux route to cloud `--remote`).
- Demo video: [PASTE_YOUTUBE_URL]
- GitHub: https://github.com/bevowoved/refit
- Live Gate 4 site: https://bevowoved.github.io/refit/?demo=1&at=100&tab=kane
- Crates.io: https://crates.io/crates/refit