Have an AI agent? Let it configure ContextShim for you.

Connect your agent
What your agent reads

Read https://contextshim.com/llms.txt and https://contextshim.com/.well-known/agent-card.json, then inspect https://contextshim.com/.well-known/mcp.json. Show me how to point OPENAI_BASE_URL, ANTHROPIC_BASE_URL, or OLLAMA_HOST at ContextShim and list the active wire rules before making any changes.

CAS-Fenced D1 Rule Registry

Deterministic Wire Interception Rules

Every rule in contextshim_rules is ordered by priority and protected by optimistic compare-and-swap (expected_version) so concurrent agent or operator edits never clobber production policy.

Rule ID & Name Mode Priority Predicates CAS Version Status Action
rule-sec-secret-redaction
Outbound Credential & Secret Egress Blocker
respond_directly100regex: /(AKIA[0-9A-Z]{16}|-----BEGIN (RS.../ · keywords: [BEGIN PRIVATE KEY, AWS_SECRET_ACCESS_KEY, BEGIN OPENSSH PRIVATE KEY] · scope: anyCAS v1Enabled
rule-ping-health
Deterministic Wire Readiness Responder
respond_directly95regex: /^\s*(contextshim:ping|ping:wire|.../ · scope: userCAS v1Enabled
rule-faq-pricing-shortcircuit
Verified SaaS Plan & Quota Cache Responder
respond_directly85keywords: [contextshim pricing, contextshim plans, contextshim tiers] · scope: userCAS v1Enabled
rule-sql-readonly-guard
Read-Only Parameterized SQL Guardrail Injector
inject_context75keywords: [select , sql, postgres] · scope: userCAS v1Enabled
rule-coding-standards
Repository Engineering Standards Injector
inject_context70keywords: [write code, implement, typescript] · scope: userCAS v1Enabled
rule-json-contract-enforcer
Strict RFC 8259 JSON Schema Enforcer
inject_context65keywords: [return json, json schema, valid json only] · scope: userCAS v1Enabled

Create or Update Wire Rule

Set expected_version = 0 when creating a new rule, or click Load in Editor above to populate a live rule's CAS version.

New Rule (CAS expected_version = 0)