Skip to content

Reshape Carto

Choose a tag to compare

@theanshsonkar theanshsonkar released this 04 Jun 22:30
· 12 commits to main since this release

What's new

validate_diff — your AI can ask "is this patch safe?"

A new MCP tool that takes a unified diff and returns a risk level
(SAFE / LOW / MEDIUM / HIGH), per-file blast radius, and cross-domain
violations. The agent calls this before showing a patch to the
user, so a bad refactor never makes it to the screen. p99 0.5ms on
a 7K-file repo.

Episodic memory across AI sessions

Every validate_diff call writes to a local SQLite session log.
A session that runs five hours later can ask
did_we_discuss_this("snake_case naming") and get back the prior
decision. Four new tools surface this — your AI stops re-deciding
settled questions. MCP tool count: 17 → 22.

Bitmap query engine in production

Five MCP tools now answer from a Uint32Array bitmap sidecar
materialised from SQLite, plus the new simulate_change_impact
tool that's only feasible with bitmap OR-aggregation. Median
10.8× faster than SQLite on vscode. Sub-millisecond on every
benchmarked repo.

Sharper import graph

A post-pass resolution step brings transitive edge resolution to
92-100% across the corpus — vscode 99.4%, express 100%,
supabase 97.5%. Blast radius and cross-domain queries now read
a fully-connected graph on every measured repo.

More languages in the import graph

C/C++ #include and C# using directives now feed the graph
(Java and Ruby were already wired). C++ resolves project headers
via tree-sitter; C# resolves namespaces through a per-project
namespace map.

Fresh-by-default index — no daemon

carto init installs four git hooks (pre-commit, post-checkout,
post-merge, post-rewrite) and the MCP server lazily re-parses
stale files at query time. carto watch is now optional.

Wider IDE auto-wiring (4 → 7)

Added Codex (~/.codex/config.toml), Windsurf, and VS Code Copilot.
Cursor, Claude Code, Kiro, and Claude Desktop already worked.

carto inspect

Read-only diagnostic command: paths, sizes, freshness, bitmap
shape, top-impact files. --json mode pipes into jq. Never
triggers a rebuild.


Install

npm install -g carto-md@2.0.8
cd your-project
carto init