Repository navigation
Releases
v1.4.6 - Rich MCP Tool Schemas, Parameter Descriptions & ToolAnnotations (TDQS 5/5)
Full Changelog: v1.4.5...v1.4.6
v1.4.5 - OpenCode V2 Config Fix
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 asmcp.timeoutand existing servers likerea. - Global MCP commands use the active interpreter's absolute path, avoiding failures when the harness process cannot resolve
pythonorcode-airlock-mcpfrom PATH. - README and
llms.txtOpenCode snippets updated to the V2 shape. - Tests assert V2 shape, sibling-key preservation, and unchanged Claude/Cursor output.
Verify
opencode mcp listExpected: ✓ code-airlock connected.
Install
pip install -U code-airlock && python -m code_airlock installv1.4.4 - Global Multi-Harness Install
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.jsonand~/.config/opencode/AGENTS.md - Claude Code:
~/.claude.jsonand~/.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 installLimit 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
Smart harness auto-detection
python -m code_airlock install now detects the agent that invoked it and configures only that harness.
Detection order
- Explicit
--target opencode|claude|cursor|all - Agent environment variables (
OPENCODE*,CLAUDECODE/CLAUDE_CODE_ENTRYPOINT,CURSOR_TRACE_ID/VSCODE_PID) - Workspace and home footprints (
opencode.json,.opencode,~/.config/opencode,CLAUDE.md,.claude,.mcp.json,.cursor,.cursorrules)
Per-harness files
- OpenCode:
AGENTS.mdrules,~/.config/opencode/opencode.json(plus a projectopencode.jsonwhen it already exists) - Claude Code:
CLAUDE.mdrules, 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 installTests
23 passed, including OpenCode-only, Claude-only, and Cursor-only isolation checks.
v1.4.2 - One-Command Agent Install
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
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
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.