Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By lkimukv0.1.5Apache-2.0In 1 marketplace
Applies task-specific coding rules to C++, Python and CMake work before Claude responds. Hooks run on every prompt and after every response; it says they can also review and refine the output.
Trending plugins
7-day copy clicks
Run automatically on Claude Code events. Claude doesn't decide.
Executables (bin/) — files in this plugin's bin/ directory are added to the Bash tool's PATH while the plugin is enabled.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.

Generate better AI code with task-aware policies for Codex, Claude Code, and OpenCode.
AI Policy Runtime gives your AI coding agent focused engineering rules for the task at hand. It can guide implementation, review, refactoring, API design, performance-sensitive work, Git workflows, CMake, Python, and post-task refinement without making you rewrite prompts for every request.
The result is more consistent agent behavior across a workspace.
AI Policy Runtime sits between the user's task and the coding agent. It reads the current request, workspace signals, selected packs, and Skill DSL assets, then compiles the relevant policy into a small task-specific rule set.
The agent does not receive the full Skill library. It receives the generated Effective Rules for the current task, rendered as prompt text and structured JSON. Those same rules can also be used after the agent acts for review, refinement, and repair.
User Task
↓
Task Analyzer
↓
Structured Context
↓
Policy Compilation
- activate Skills and selected Packs
- apply dependencies and when / unless filters
- resolve conflicts
- reduce rules
↓
Effective Rules
- effective-prompt.md
- effective-rules.json
↓
Agent
↓
Post refinement
- review output
- apply refinement packs
- verify / repair when needed
↓
Agent
↓
Work done
C++ currently has the deepest coverage, including ownership, lifetime, bounds safety, API design, modern C++, and low-latency work. Python, CMake, Git, and general refinement packs are also included.
Install the AI Policy Runtime extension, then open its side bar in your workspace.
Use it with the Codex, Claude Code, or OpenCode extension you already use. Enable the runtime, select the agent, choose policy packs, and configure embeddings if you want semantic task matching.
For Codex, trust the generated workspace hooks when Codex asks. Until the hooks are trusted, Codex will not run them, so AI Policy Runtime will appear enabled but no rules will be injected.
After updating the VS Code extension, reload the window and run AI Policy Runtime: Validate Runtime. Validation refreshes workspace hook files when they still point at an older extension runtime.
npm install -g ai-policy-runtime
ai-policy doctor
Configure a project for Codex:
ai-policy configure codex --root D:\work\project
Configure a project for Claude Code:
ai-policy configure claude --root D:\work\project
Configure a project for OpenCode:
ai-policy configure opencode --root D:\work\project
In the VS Code extension, select OpenCode under Agents to generate the same
project-local OpenCode configuration from the bundled runtime.
After updating the npm package, rerun ai-policy configure codex or
ai-policy configure claude or ai-policy configure opencode for each
workspace that should use the new runtime. The command refreshes
.policy/config.json and agent hook/plugin paths to the current installed
package.
AI Policy Runtime uses embeddings for product-quality multilingual task matching. You choose the provider:
/v1/embeddings service.The package does not include or download a local model by default.
If you want the CLI to use a remote embedding model immediately, configure an OpenAI-compatible endpoint through environment variables:
$env:AI_POLICY_EMBEDDING_PROVIDER = "openai-compatible"
$env:AI_POLICY_EMBEDDING_BASE_URL = "https://openrouter.ai/api/v1"
$env:AI_POLICY_EMBEDDING_API_KEY = "<your-api-key>"
$env:AI_POLICY_EMBEDDING_MODEL = "<embedding-model>"
Configure a local model from the CLI:
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub lkimuk/ai-policy-runtime --plugin ai-policy-runtimePlugins from other owners that cover similar ground