Skip to main content

Build governed developer-agent workflows with Contextus.

Connect an agent, prepare its context, define action policy, require approval when risk rises, and retain reviewable proof across supported developer workflows.

⌘K

Complete one governed developer-agent action

You will create an API key, connect a supported workflow, send a safe read request through policy, and inspect the resulting decision and proof trail.

Before you begin

  • 1. Create a Contextus account.
  • 2. Finish guided setup and save the API key shown once.
  • 3. Keep the dashboard open so you can inspect the resulting action.

Option A: Python SDK

1. InstallShell
pip install contextus
2. Set your API keyShell
export CONTEXTUS_API_KEY="your-contextus-key"
3. Compile your first contextPython
from contextus import ContextusClient

client = ContextusClient()

result = client.compile(
    messages=[
        {"role": "user", "content": "Summarize the deployment policy for this task."}
    ],
    limit=2000,
    policy="default",
)

print(result.compiled)
print(result.original_tokens)
print(result.compiled_tokens)
print(result.reduction_percent)

Option B: MCP for Cursor or Claude Desktop

Install the Contextus MCP adapter and Cursor/Claude will automatically compile context before every LLM call.

Install via npmShell
npm install -g @contextus/mcp-adapter

Option C: VS Code extension

Install the Contextus extension from the VS Code Marketplace. Governed compile flows appear inline while you code.

Open in VS Code Marketplace

Run a safe governed action

This read-only request passes through the same policy decision path used by connected agents. Your policy can allow it, request approval, redact sensitive input, or deny it.

Send a read-only action through policyShell
curl https://api.contextus.coreledger.ca/tool-approvals/requests \
  --request POST \
  --header "Authorization: Bearer $CONTEXTUS_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{
    "action_name": "repository.docs.read",
    "tool_name": "quickstart",
    "action_category": "read",
    "request_source": "api",
    "args": {"path": "README.md"},
    "session_id": "contextus-quickstart"
  }'

Documentation Assistant

Ask about compile, policy, approvals, or rollout

Hi! I'm your Contextus documentation assistant. I can help you find information about setup, configuration, API usage, and more. What would you like to know?

08:04 AM
Documentation-only answers powered by Contextus RAG