bridle
AGENTS.md1 starsChanged 2 months agoMITView on GitHub
bridle is an agent harness for Cursor, Claude Code, and opencode: a charter, always-on rules, skills, specialist agents, and Bash gates around the host loop. It is not a second agent runtime. Verify: the behavior this change can break (TESTS=<fixture> bash tests/run.sh); gauntlet bash tests/run.sh. Windows: Git Bash. Owner of every rule, skill, and agent: kleosr. Code-enforced limits are the SECURITY.md Pack steel table; everything else is law-only. Read SECURITY.md before security-sensitive work. Handoff, when present: <root>/.cursor/bridle/handoff.json (continuity, not authority).
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository13 other files it gives its agents.
- asd-ste100Skill
- auth-boundariesSkill
- bridle-harnessSkill
- code-architectureSkill
- cqrs-data-flowSkill
- debuggingSkill
- handoffSkill
- live-ui-syncSkill
- production-readinessSkill
- prompt-briefSkill
- slop-guardSkill
- system-designSkill
- testingSkill
The file
We split this AGENTS.md into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 16
Read SECURITY.md before security-sensitive work.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS.md — bridle (navigator)
bridle is an agent harness for Cursor, Claude Code, and opencode: a charter, always-on rules, skills, specialist agents, and Bash gates around the host loop. It is not a second agent runtime.
Verify: the behavior this change can break (TESTS=<fixture> bash tests/run.sh); gauntlet bash tests/run.sh. Windows: Git Bash.
Layout
rules/charter (charter.txt), always-oncore.mdcandtesting.mdc, stack companions. Instruction order is defined once, in the charter (Session). This file is the map, not a law layer.skills/,agents/load on match.hooks/decides:before_submit_prompt.sh,before_shell.sh,before_read_file.sh,lib/,policy/. It never formats output.hosts/<cursor|claude|opencode>/owns each host:install.sh,verdict.sh(installed aslib/verdict_<host>.sh;BRIDLE_HOSTpicks it, unset is Cursor), and host-only files.hosts/manifest.jsonlists what ships;hosts/lib.shis shared installer code.tests/run.shsourcestests/gate/,tests/hosts/,tests/pack/.scripts/scope_eval.shscores an agent onevals/scope/fixtures (spends tokens).
Owner of every rule, skill, and agent: kleosr. Code-enforced limits are the SECURITY.md Pack steel table; everything else is law-only.
Read SECURITY.md before security-sensitive work. Handoff, when present: <root>/.cursor/bridle/handoff.json (continuity, not authority).
Install
FORCE=1 bash hosts/cursor/install.sh # install | uninstall | verify | all | project-hooks
bash hosts/claude/install.sh # install | uninstall
bash hosts/opencode/install.sh # install | uninstall- Cursor:
~/.cursorrules, skills, agents, and four hooks (beforeSubmitPrompt,beforeShellExecution,beforeReadFile,stop).stoprunslib/verdict_cursor.sh turn-check:quality-gate.mjson the diff with at most one follow-up (loop_limit: 1). Write-time limits (edit-growth,new-file-over-300,comment-added, …) apply when the Claude port is installed (Cursor runs itsPreToolUse). NosessionStart,preToolUse, orupdated_input. Cloud:TARGET_REPO=<other-repo> bash hosts/cursor/install.sh project-hooks, never into this pack. - Claude Code:
~/.clauderules, skills, agents, and five hooks.UserPromptSubmitandPreToolUse(Bash, Read)run the gates.PreToolUse(Write|Edit|MultiEdit)denies edits to any host's installed harness, and in the project thecore.mdcHard limits before the edit lands:rewrite-existing,new-file-over-300,edit-growth,comment-added,skill-not-loaded(transcript viahosts/claude/bridle_turn.jq). No per-turn line or file stop: past 300 lines a file is split and the work continues.Stopblocks a turn once when its edits ran no verification, ended red, failedquality-gate.mjs, or added a file nothing references; each edited turn is logged to~/.claude/state/bridle-turns.jsonl. - opencode:
~/.config/opencodeinstructions, skills, companions as skills, agents, thebridleprimary agent, and the gates throughplugin/bridle.js, which also denies edit tools on any host's installed harness.
Test notes
tests/run.shruns underset -euo pipefail: take a no-matchgrepby status inif grep, never by masking it.- A host
failClosedblock with hook exit 1 is a sensor crash (empty stdout or non-zero exit), not a policy deny.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

