Skip to content

agent-harness-sdk

A base SDK for production agents that read, analyse, decide and act, with OpenTelemetry built in. Works on its own or inside LangChain, LangGraph, CrewAI, LlamaIndex, the OpenAI Agents SDK or any MCP client.

Repository ci security

What every agent gets

Stage What the harness does
READ Only read-only tools; output redacted and scanned for prompt injection; step, tool, token and time budgets
ANALYSE The answer is validated against your Pydantic schema, with one self-correction round
DECIDE Exactly one action with arguments, confidence and risk
Policy Plain code: minimum confidence, deny list, dry-run, action cap, block mutation if injection was seen
Approval Auto, deny, callback, or pending approvals for a web API or Slack button
ACT Runs with a timeout, then your verify hook; every outcome recorded

Models: DeepSeek by default; Claude, any OpenAI-compatible API, Ollama, or any LangChain chat model.

Run it

git clone https://github.com/debanjan0212/agent-harness-sdk.git && cd agent-harness-sdk
python3 -m venv .venv && source .venv/bin/activate && pip install -e ".[all,dev]"
agent-harness doctor
cd examples && python -m incident_commander demo --scenario bad-deploy --approve ask

make up starts Incident Commander with Grafana's all-in-one LGTM image on http://localhost:3000. A Helm chart for any cluster is in deploy/helm/incident-commander.

Connects to

Repository How
Themis Spans flow to Themis with two environment variables; ThemisGate / ThemisPolicy / ThemisApprover enforce its decisions
Portfolio site The guardrail demo is a line-for-line TypeScript port of guardrails.py, pinned by a test