AI Policy RuntimeGenerate better AI code with task-aware policies for Codex and Claude Code. AI Policy Runtime gives your AI coding agent focused engineering rules for the current task. It can guide implementation, review, refactoring, API design, performance-sensitive work, Git, CMake, Python, and post-task refinement. Instead of relying on one generic instruction set, each workspace gets a clear policy configuration that your selected agents use automatically. Why Install It
C++ has the deepest policy coverage today. Python, CMake, Git, and general refinement packs are also included. Quick Start
For Codex, approve the generated workspace hooks when Codex asks you to trust them. Until the hooks are trusted, Codex will not run them, so AI Policy Runtime can look enabled while no rules are injected. After updating AI Policy Runtime, reload the VS Code window and run AI Policy Runtime: Validate Runtime. Validation refreshes workspace hook files if they still point at an older extension runtime. EmbeddingsEmbeddings are recommended for product-quality multilingual task matching. Choose one provider in the side bar:
The extension does not ship a local model by default. If you choose local embeddings, set Local model path to an existing sentence-transformers model directory. What It CreatesAI Policy Runtime keeps configuration in your workspace:
These files are plain text so you can inspect what was configured and what rules were generated. Review them before committing workspace-specific settings. Commands
PrivacyAI Policy Runtime is not an LLM. It prepares policy context for the AI agent you already use. Remote embedding requests are only made when you configure a remote embedding provider or credentials. Local embeddings use the model path you configure on your machine. |