Skip to content

Releases

v0.2.3 — derive the test runner from the target repo's own npm test

Choose a tag to compare

@shekharnair96 shekharnair96 released this 08 Sep 03:59

cg:verify now runs the suite your npm test runs, derived at install time and probed once for real. Also: a test suite that fails to LOAD is no longer scored as a PASS.

v0.2.1 — fixes an indexer hang (recommended over v0.2.0)

Choose a tag to compare

@shekharnair96 shekharnair96 released this 07 Sep 15:59

Patch release. Recommended over v0.2.0 for anyone indexing a real codebase — v0.2.0 can hang during install.

Fixed

  • The indexer could hang forever while building the body index (build-body-index.cjs). Its string-literal scanner used a backreference alternation that backtracks catastrophically. The trigger is small and specific: a single ~450-byte span containing a dense regex literal — backslash escapes plus all three quote characters (' " `) inside character classes, as in a typical RFC-5322 email pattern. One such span was enough to stall the run indefinitely, at step 3 of 4 of install.sh, with no error output. Replaced with linear per-quote patterns; a repo that previously never finished now indexes in under a second.
  • Regression coverage for the above: the offending literal is pinned as a test fixture, and the body-index step now runs under a hard timeout so a recurrence fails the suite instead of hanging it.

Added

  • Second public A/B demo on react-hook-form (v7.87.0, 1302 tests, ~6k graph nodes) — see demo/. Four more headless runs, all ending with the full suite green. The size effect the small demo could not show: the KG-only agent works from ~65k input tokens per task where the plain agent needs 217–354k, at roughly half the cost.

Note

The commit message on the original fix (4145787) misattributed the cause to large JSX test files. That was wrong — repo size is irrelevant; a single dense regex literal does it. Corrected in ef53bea and in the demo write-up.

Full changelog: v0.2.0...v0.2.1

v0.2.0 — standalone indexer + multi-host installer

Choose a tag to compare

@shekharnair96 shekharnair96 released this 07 Sep 14:30

Warning

Superseded by v0.2.1. This version can hang indefinitely while building the body index (step 3 of 4 of install.sh), with no error output, on any repo containing a dense regex literal. Use v0.2.1.

First standalone release: the kit now installs into any TS/JS repo with no external harness.

Highlights

  • Clean-room TS/JS indexer (codegraph-ext/engine/): plain Node + two npm deps, indexes source into a SQLite knowledge graph (.codegraph/codegraph.db).
  • Multi-host installer (install.sh): auto-detects and wires Claude Code, Cursor, Codex, OpenCode, and Code Puppy; idempotent per repo.
  • 10-tool MCP server over stdio: locate / trace / plan / impact / read / apply / apply_literal / apply_edit_at_site / verify / test_one, with per-run budgets and a PASS latch.
  • KG-only agents (kg-sonnet, kg-opus): navigate and edit exclusively through graph tools — no file search, no shell.
  • Real-repo A/B demo on react-hot-toast (demo/): KG vs baseline agents on two tasks, all runs verified 13/13 green.

Fixes

  • MCP server no longer truncates queued stdout replies on stdin close (Node 20).
  • sqlite3 is resolved at runtime with an FTS5 capability probe (CODEGRAPH_SQLITE3 → PATH → Homebrew) — stock macOS sqlite3 without FTS5 now fails with an actionable message instead of a cryptic error.
  • Overlay augment now covers indexed files outside src/ (test coverage edges).
  • npm test works on Node 18/20 (explicit test file list instead of Node 21+ glob expansion).

CI

  • GitHub Actions matrix: ubuntu-latest + macos-latest, Node 20, green on both.