Singh Labs ← all tools

bridle

what an agent may do

AGENTS.md tells agents what your project is. HARNESS.md tells them how every run must behave — linted by a tiny CLI, proven by a trace.

The problem

Without it

Overnight agent, eleven edited files, zero logs, something merged into main. The only record is a scrollback buffer that's already gone.

With bridle

GOOD  nightly-20260728T053205Z-349e54
      harness v1.2.0 (2c35307e6bac) · agent claude-sonnet-5
      5 events · 0 escalation(s)

Prompts became artifacts. Now runs do too.

When to reach for it

What you get · the four pillars

Install · adopt in 30 minutes

  1. Install it

    Node 18+. Install from GitHub — the bare name bridle on npm belongs to an unrelated package, so always go through the repo.

    npm install -g github:manpreet171/bridle

    Prefer not to install anything? Every command below also works as npx github:manpreet171/bridle <command>.

  2. Scaffold the harness

    bridle init
    your-project/
    ├── AGENTS.md      # project OS (skipped if you have one)
    ├── HARNESS.md     # ★ the Harness Script — fill in its sections
    ├── prompts/       # AI-written plans, human-approved
    ├── skills/        # tool know-how, tagged with cost/trust bands
    └── logs/          # append-only run traces (JSON Lines)
  3. Fill it in, then lint it

    The linter refuses a harness missing any pillar for your tier. Exit 1 — CI-friendly.

    bridle lint
  4. Run under it

    bridle run start nightly --agent claude-sonnet-5
    bridle run log tool_call --detail '{"tool":"oxylabs","status":"ok"}'
    bridle run log check_pass --phase evaluate
    bridle run end good
    bridle status
    Recent runs:
    
      GOOD  nightly-20260728T053205Z-349e54
            harness v1.2.0 (2c35307e6bac) · agent claude-sonnet-5 · 5 events · 0 escalation(s)

Written down, not locked down: Bridle never sits between your agent and its work. No server, no daemon, no API key — if you delete the CLI tomorrow, your HARNESS.md is still a useful document your agents read.

Source & docs

The manifesto, the pillar deep-dive, the 30-minute adoption guide, real example harnesses and the trace JSON schema live in the repository. MIT licensed.

github.com/manpreet171/bridle
zero dependencies node 18+ JSON Lines trace + schema MIT