Your rules. Your agent.
Your call.

AI agents can send emails, make purchases, post on social media, and control your home. Agent Constitution lets you decide what they can and can't do — with approval from your iPhone for every restricted action.

You set the boundaries. Your agent respects them.

Define rules on your iPhone. When your AI agent attempts a restricted action, you get a push notification. Review the action, approve or deny, and the agent proceeds only with your permission.

📋

Define Rules

Set behavioral rules on your iPhone — what actions require your approval, across 6 categories.

🤖

Agent Acts

Your AI agent attempts an action — sending an email, making a purchase, deploying code.

🔔

Rule Triggered

The action matches a rule. A push notification is sent to your iPhone with full details.

You Decide

Review what the agent wants to do. Approve or deny. The agent proceeds only if you say yes.

📱 iPhone App

Rules · Approval · Audit Trail

📬 Relay

Stateless HTTP · HMAC Signed

🤖 AI Agent

Any agent · Any framework

Six categories. Total control.

Pre-built templates for the most common agent actions, plus custom rules for anything else. Define your boundaries in plain English.

📧

Communication

  • Send work emails
  • Post to Slack channels
  • Send LinkedIn messages
  • Send iMessages
💰

Financial

  • Make purchases
  • Share payment info
  • Authorize subscriptions
  • Transfer funds
📱

Social Media

  • Post to social media
  • Leave public comments
  • Like or share content
  • Follow accounts
🏠

Smart Home

  • Change thermostat
  • Lock or unlock doors
  • Control lighting
  • Arm/disarm security
💻

Development

  • Push to main branch
  • Deploy to production
  • Run destructive commands
  • Modify infrastructure
📁

Data

  • Share files externally
  • Delete files permanently
  • Export sensitive data
  • Modify access permissions

Your guardrails. Not the AI company's.

Agent Constitution puts you in control — define your own rules, get notified in real time, and keep a complete audit trail of every decision.

📋

User-Defined Rules

You define the behavioral boundaries — not the AI company. 15 prebuilt templates across 6 categories, plus custom rules in plain English.

🔔

Push Notifications

When a rule is triggered, you get an instant push notification on your iPhone. See exactly what the agent wants to do, then approve or deny.

📜

Full Audit Trail

Every rule check, every approval, every denial — logged on-device in the iOS Keychain. Complete history of what your agent did and didn't do.

AI Rule Suggestions Coming Soon

Describe your boundaries in natural language and get intelligent rule suggestions. "Don't let my agent post anything political" → rules generated.

Pure HTTP API

No SDKs, no vendor lock-in. Any AI agent framework can check rules with a single HTTP call. Works from Python, Node, bash, or any language.

🛡️

Open Source

The relay infrastructure is fully open source. Self-host, audit, fork. Your rules, your infrastructure, your control.

Every decision. Permanently recorded.

Agent Constitution keeps a complete, tamper-proof audit log of every rule check, approval, and denial — stored securely on your device.

📝

Action Logged

What the agent attempted — full action description, category, and timestamp

⚖️

Decision Recorded

Whether you approved or denied, and which rule was triggered

🔐

Keychain Secured

Audit logs stored in iOS Keychain — encrypted, on-device, not synced to cloud

📊

Browse & Search

Filter by category, date, or decision. See patterns in your agent's behavior

One API call. Before every action.

Your agent checks the constitution before performing restricted actions. If a rule applies, the user gets a push notification and the agent waits for approval. Standard HTTP — no SDK required.

📦 Install the agent skill: clawdhub install constitution


Read the Docs →
# Check the constitution before acting
curl -X POST \
  -H "Authorization: Bearer $SECRET" \
  -d '{
    "type": "constitution_check",
    "action": "send_email",
    "category": "communication",
    "description": "Send quarterly report to team@company.com",
    "details": {
      "to": "team@company.com",
      "subject": "Q4 Report"
    }
  }' \
  "$RELAY/channel/$CH/push?role=gateway"

# User gets push notification...
# They review and approve/deny...

# Pull the decision
curl -H "Authorization: Bearer $SECRET" \
  "$RELAY/channel/$CH/pull?role=gateway&wait=30"

# → {"decision": "approved", "rule": "work_emails"}

Set the rules. Control the AI.

Download Agent Constitution, define your boundaries, and take control
of what your AI agent can and can't do.