instrument-agent
FeaturedIntegrate DashClaw SDK into any agent using the 4-step governance loop
AI & Automation 301 stars
52 forks Updated today MIT
Install
Quality Score: 93/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
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
- 7 months ago
- Last Updated
- today
- Language
- TypeScript
- License
- MIT
Integrates with
Similar Skills
Semantically similar based on skill content — not just same category
AI & Automation Featured
register-on-dashclaw
Register any agent (including this one) as a governed agent on a DashClaw instance
301 Updated today
ucsandman AI & Automation Listed
dashclaw-governance
Apply DashClaw governance: guard decisions, approvals, action recording, and agent session lifecycle.
3 Updated 5 days ago
ucsandman