Labsco
MCP SERVER

Compiles a focused context package before your editor sends anything to the model — and blocks secrets on the way.

Codebase Context Packing & Compression
Summary
You can read the prompt it built.

Context tooling usually asks you to trust that it picked well; this one writes the compiled prompt to `.aic/` in the project and exposes per-file selection scores through `aic_last`, so a bad answer can be traced to what the model was actually shown. The Context Guard running locally before anything leaves the machine is the other half — it filters bulk context, though it can't stop the editor's own tools from opening a file directly.

What it is

A local-first server that sits between Cursor or Claude Code and the model. On each message it classifies the task, selects the files that matter, strips noise, blocks sensitive content, and compresses the result to a token budget — so the model gets a bounded package rather than whatever the editor happened to sweep up. It does not replace the editor or call models itself.

What you get
  • `aic_compile` is the call the editor integration makes on each message; `aic_compile_spec` handles the spec path
  • `aic_last` returns the most recent compilation — files selected out of files total, tokens compiled, cache hit or miss, and optional per-file selection scores
  • `aic_status`, `aic_chat_summary`, `aic_projects` and `aic_quality_report` report at project, conversation, workspace and rolling-window level; `aic_inspect` and `aic_model_test` cover inspection and an agent capability probe
  • Context Guard removes common secrets and credentials, excluded paths such as `.env` and key files, and suspicious prompt-injection strings before content reaches the model
  • The compiled prompt is written to disk under `.aic/` in the project, so you can read exactly what was sent
  • Diagnostics are driven by plain phrases — `show aic status`, `show aic last`, `show aic chat summary`, `show aic projects`, `show aic quality` — typed at your editor's AI, not a terminal
Requirements

Node.js 22 or newer. In Cursor, install the MCP server from the Cursor Directory or the deeplink; it lands in `~/.cursor/mcp.json` and works in every workspace with no per-project setup. In Claude Code, `/plugin marketplace add Jatbas/agent-input-compiler` then `/plugin install aic@aic-tools`. On the first compile AIC writes `aic.config.json`, the `.aic/` directory, ignore-file entries and the editor rule; all projects share one database at `~/.aic/aic.sqlite`. Set `"enabled": false` in a project's `aic.config.json` to switch it off there. Cursor and Claude Code are the two editors with an integration layer. Telemetry is local by default and there is no account or API key.

Setup effort

One command — npx -y @jatbas/aic@latest