Skip to content

Releases

v1.4.6 - Rich MCP Tool Schemas, Parameter Descriptions & ToolAnnotations (TDQS 5/5)

Choose a tag to compare

@sarthexe sarthexe released this 13 Nov 07:23

Full Changelog: v1.4.5...v1.4.6

v1.4.5 - OpenCode V2 Config Fix

Choose a tag to compare

@sarthexe sarthexe released this 12 Nov 21:07

OpenCode V2 configuration fix

install now writes OpenCode servers under the V2 mcp.servers shape instead of the deprecated top-level mcp.<name> shape. This makes the server appear in /mcps and opencode mcp list on OpenCode V2.

Changes

  • OpenCode config now uses mcp.servers.code-airlock.
  • The config merger accepts dotted paths (mcp.servers) and preserves sibling keys such as mcp.timeout and existing servers like rea.
  • Global MCP commands use the active interpreter's absolute path, avoiding failures when the harness process cannot resolve python or code-airlock-mcp from PATH.
  • README and llms.txt OpenCode snippets updated to the V2 shape.
  • Tests assert V2 shape, sibling-key preservation, and unchanged Claude/Cursor output.

Verify

opencode mcp list

Expected: ✓ code-airlock connected.

Install

pip install -U code-airlock && python -m code_airlock install

v1.4.4 - Global Multi-Harness Install

Choose a tag to compare

@sarthexe sarthexe released this 12 Nov 21:00

Install once, work everywhere

python -m code_airlock install now configures every supported harness globally in the user's home directory, with zero repository clutter.

Global targets

  • OpenCode: ~/.config/opencode/opencode.json and ~/.config/opencode/AGENTS.md
  • Claude Code: ~/.claude.json and ~/.claude/CLAUDE.md
  • Cursor: ~/.cursor/mcp.json

All JSON merges preserve existing keys and MCP servers. Existing rule blocks are appended once and remain idempotent.

MCP protocol instructions

FastMCP now sends the airlock security rules in the MCP handshake, so Claude Code, Cursor, Windsurf, and OpenCode receive them on every project even with no rule file on disk.

Project rules stay explicit

python -m code_airlock init still writes only the local rule file for the detected or requested harness (AGENTS.md, CLAUDE.md, or .cursorrules). install no longer creates local rule files.

Install

pip install -U code-airlock && python -m code_airlock install

Limit the global install with --target opencode|claude|cursor.

Tests

24 passed, including global config merging for all three harnesses, server preservation, zero local pollution, targeted installs, and MCP handshake instructions.

v1.4.3 - Smart Harness Auto-Detection

Choose a tag to compare

@sarthexe sarthexe released this 12 Nov 20:55

Smart harness auto-detection

python -m code_airlock install now detects the agent that invoked it and configures only that harness.

Detection order

  1. Explicit --target opencode|claude|cursor|all
  2. Agent environment variables (OPENCODE*, CLAUDECODE / CLAUDE_CODE_ENTRYPOINT, CURSOR_TRACE_ID / VSCODE_PID)
  3. Workspace and home footprints (opencode.json, .opencode, ~/.config/opencode, CLAUDE.md, .claude, .mcp.json, .cursor, .cursorrules)

Per-harness files

  • OpenCode: AGENTS.md rules, ~/.config/opencode/opencode.json (plus a project opencode.json when it already exists)
  • Claude Code: CLAUDE.md rules, project .mcp.json
  • Cursor: .cursorrules, project .cursor/mcp.json

All config merges preserve existing keys and MCP servers. install still initializes .airlock.toml, installs the Git pre-commit hook inside a repository, and verifies the ONNX engine. code-airlock with no arguments still starts the MCP stdio server.

Install

pip install -U code-airlock && python -m code_airlock install

Tests

23 passed, including OpenCode-only, Claude-only, and Cursor-only isolation checks.

v1.4.2 - One-Command Agent Install

Choose a tag to compare

@sarthexe sarthexe released this 12 Nov 20:21

One-command install

```n
`code-airlock install` merges the MCP server into OpenCode, Cursor, Claude Code, and Windsurf configs without overwriting existing servers, then writes project guardrails, installs the Git pre-commit hook, and warms up the ONNX model.

### Changes
- New `install` subcommand with safe JSON merging
- `code-airlock` console script now routes to the full CLI; no-arg still starts MCP
- Added `llms.txt` and an agent-facing auto-install block in the README
- Version bump to 1.4.2

v1.4.1 — Pure ONNX Runtime Engine (Zero-Torch), Silent Offline-First Loading & Safe Subprocess Runner

Choose a tag to compare

@sarthexe sarthexe released this 12 Nov 18:01

Highlights

  • Silent, Cache-First ONNX Loading (onnx_ner.py): Resolves ONNX model weights and tokenizer from local cache first (local_files_only=True) with zero network calls after warmup and silenced HF Hub warnings for clean JSON-RPC stdio streams.
  • Pure ONNX Runtime Stage 2 Engine: Removed torch and gliner dependencies completely (~2GB -> ~60MB install) using onnxruntime + tokenizers against onnx-community/gliner_small-v2.1 with 100.0% benchmark parity across all 2,000 evaluation rows.
  • Safe Subprocess Runner (airlock_exec): Injects real .env secrets into child processes while scrubbing stdout/stderr before returning output to the LLM.
  • Custom Project Config (.airlock.toml): Define custom Stage 1 regex rules and Stage 2 allowlists per repository.
  • Git Pre-Commit Scanner (code-airlock scan --staged & init --pre-commit): Sub-millisecond (0.20ms p50) deterministic secret gate for staged Git commits.

v1.4.0 — Pure ONNX Runtime Engine (Zero-Torch), Offline-First & Safe Subprocess Runner

Choose a tag to compare

@sarthexe sarthexe released this 12 Nov 17:54

Highlights

  • Pure ONNX Runtime Stage 2 Engine (onnx_ner.py): Removed torch and gliner dependencies completely (~2GB -> ~60MB install) using onnxruntime + tokenizers against onnx-community/gliner_small-v2.1 with 100.0% benchmark parity across all 2,000 evaluation rows.
  • Cache-First & Air-Gapped Ready: Resolves ONNX model weights from local cache first (local_files_only=True) with zero network calls after initial warmup and silent JSON-RPC stdio streams.
  • Safe Subprocess Runner (airlock_exec): Injects real .env secrets into child processes while scrubbing stdout/stderr before returning output to the LLM.
  • Custom Project Config (.airlock.toml): Define custom Stage 1 regex rules and Stage 2 allowlists per repository.
  • Git Pre-Commit Scanner (code-airlock scan --staged & init --pre-commit): Sub-millisecond (0.20ms p50) deterministic secret gate for staged Git commits.
  • Hardened MCP Boundaries: Lazy model loading, workspace path jailing, 1MB/binary file caps, case-insensitive token rehydration, and hallucination-safe write verification.