Agent Tracking (ClawdBot agents, metrics, firing) #40
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Overview
Add Agent and AgentSession models to track ClawdBot agents, their performance metrics, and support "firing" underperforming agents.
Background
Jarvis (ClawdBot) is the orchestration layer. It spawns subagents for parallel work. Agent quality varies ("Ph.D to middle-school lottery"), so we need:
Requirements
Prisma Schema
API Endpoints
GET /api/agents— List agentsGET /api/agents/:id— Agent details with metricsPOST /api/agents/:id/fire— Fire agent (terminate + log reason)GET /api/agents/:id/sessions— Agent session historyPOST /api/agents/:id/heartbeat— Update heartbeat (from ClawdBot)Firing Reasons
derailed— Agent went off trackobstinate— Refused to follow instructionsdumb— Low quality responsesunresponsive— Stopped respondingcorrupted— Context became corruptedUI
Acceptance Criteria
Superseded by Agent Orchestration Layer design.
See:
docs/design/agent-orchestration.mdThe orchestration layer includes: