Cortex

•

Verifies AI coding agent edits by sandboxing and checking them before they modify the file system.

Cortex is a pre-apply verification gate designed specifically for Rust workspaces, acting as a crucial safeguard for AI coding agents. It wraps LLM-driven editors (like Claude Code, Cursor, or raw API integrations) with a robust sandbox and a `cargo check` gate. This ensures that any proposed edits from an AI model are thoroughly checked for compilation errors in an isolated environment before they are ever written to your actual filesystem. Edits that fail to compile are rejected, with compiler output optionally fed back to the AI for up to six retry rounds, guaranteeing that only verified, compilable Rust diffs successfully land in your project. This prevents the common issue of hallucinated or non-functional code from AI agents impacting your codebase, closing a critical gap in AI-assisted development workflows.

주요 기능

01Pre-apply code verification using sandbox and `cargo check`
02Rust-only scope for focused and effective verification
03Automated retry loop, feeding compiler output back to AI agents
04CLI for direct interaction and a Unix-socket daemon for background operation
050 GitHub stars
06MCP server for seamless integration with other AI coding tools

사용 사례

01Integrating a verification gate into LLM-driven Rust development environments (e.g., Claude Code, Cursor)
02Automating the prevention of non-compiling or hallucinated code from AI coding agents in Rust workspaces
03Ensuring AI-generated Rust code compiles correctly before it's applied to a project