Origence Codex — VS Code Extension
Connects AI agents (Claude Code, Cursor, Copilot) to the Origence Codex for live policy enforcement and platform knowledge — in every repo, without cloning the Codex.
What It Does
- Installs the Codex MCP server (
pip install from the Codex repo)
- Configures all AI tools (Claude Code, Cursor, VS Code Copilot) to use it
- Shows status in the VS Code status bar
Once installed, your AI agent has access to:
- 44 coding policies (security, quality, architecture)
- 14 platform knowledge docs (architecture, domain model, multi-tenancy, etc.)
- Current technology choices (library-manifest.yaml)
- Threat model summary
The agent cites policy IDs in a structured codex_meta JSON block at the end of every response.
Install
From the VS Code marketplace, search "Origence Codex" and click Install.
Or from a .vsix file:
code --install-extension origence-codex-1.0.0.vsix
What Happens on Activation
If origenceCodex.autoSetup is enabled (default), the extension:
- Checks if the MCP server package is installed
- If not, prompts you to install it (runs
pip install from the Codex Git repo)
- Registers the MCP server in
~/.claude/.mcp.json, ~/.cursor/mcp.json, and ~/.vscode/mcp.json
- Shows a shield icon in the status bar when ready
Commands
| Command |
Description |
Origence Codex: Setup MCP Server |
Install and configure the MCP server |
Origence Codex: Refresh Cache |
Force-pull the latest Codex from remote |
Origence Codex: Show Status |
Show installation and configuration status |
Settings
| Setting |
Default |
Description |
origenceCodex.repoUrl |
Azure DevOps Codex repo |
Git URL of the Codex repository |
origenceCodex.pythonPath |
python |
Path to Python 3.12+ interpreter |
origenceCodex.refreshIntervalSeconds |
3600 |
Cache refresh interval |
origenceCodex.autoSetup |
true |
Auto-install on activation |
Requirements
- Python 3.12+
- Git
- Network access to
dev.azure.com (for cloning the Codex)
AZURE_TOKEN environment variable (for authenticated Git clone)
Build from Source
cd vscode-extension
npm install
npm run build
npx vsce package
This produces origence-codex-1.0.0.vsix for distribution.