instrument-agent

Solid

Integrate DashClaw SDK into any agent using the 4-step governance loop

AI & Automation 284 stars 50 forks Updated today MIT

Install

View on GitHub

Quality Score: 92/100

Stars 20%
82
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Instrument Your Agent with DashClaw Help developers add DashClaw governance to any AI agent. Walk through the 4-step governance loop with working code. ## The 4-Step Governance Loop Every governed decision follows this deterministic flow: ``` 1. Guard → "Can I do this?" (POST /api/guard) 2. Record → "I am doing this." (POST /api/actions) 3. Verify → "I believe this is true." (POST /api/assumptions) 4. Outcome → "This was the result." (PATCH /api/actions/:id) ``` ## Step 0: Install & Initialize ### Node.js ```bash npm install dashclaw ``` ```javascript import { DashClaw } from 'dashclaw'; const claw = new DashClaw({ baseUrl: process.env.DASHCLAW_BASE_URL, apiKey: process.env.DASHCLAW_API_KEY, agentId: 'my-agent' }); ``` ### Python ```bash pip install dashclaw ``` ```python from dashclaw import DashClaw claw = DashClaw( base_url=os.environ["DASHCLAW_BASE_URL"], api_key=os.environ["DASHCLAW_API_KEY"], agent_id="my-agent" ) ``` ## Step 0.5: Session Lifecycle (Optional but Recommended) Create a session to track the full lifecycle of your agent's work. Sessions enable monitoring, recovery, and continuity across restarts. ```javascript // Create a session at agent startup const session = await fetch(`${baseUrl}/api/sessions`, { method: 'POST', headers: { 'Authorization': `Bearer ${apiKey}`, 'Content-Type': 'application/json' }, body: JSON.stringify({ agent_id: 'my-agent', metadata: { task: 'deploy-pipeline' } }) }).then(...

Details

Author
ucsandman
Repository
ucsandman/DashClaw
Created
5 months ago
Last Updated
today
Language
TypeScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category