ultragoal
AGENTS.md16 starsChanged 4 months agoMITView on GitHub
This repo is the ultragoal Claude Code plugin (goal loops: rubric-gated autonomy, fresh-context verification, growing memory) plus its npx installer. The repo doubles as its own plugin marketplace. Rigor tiers (rigor config knob, default vanilla). The gate understands only verify: off|on|panel; the goal skill reads rigor and expands it — vanilla = lean single-grader loop (today's behavior), standard = + interim checks/double-runs/scouts/monitor, max = verify: panel (3 mutually-blind lenses, all PASS) + every-claim + multi-modal sweeps + deep interview. Keep…
- Commits and pushes
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 35,266 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 repositoryOne other file it gives its agents.
- CLAUDE.mdCLAUDE.md
The file
We split this AGENTS.md into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 42
Commit and push to main.
- Distinctive: line 51
Commit messages: imperative, no AI-tooling mentions or trailers.
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 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
ultragoal — maintainer guide
This repo is the ultragoal Claude Code plugin (goal loops: rubric-gated autonomy, fresh-context verification, growing memory) plus its npx installer. The repo doubles as its own plugin marketplace.
Layout
.claude-plugin/ Claude plugin.json (manifest) + marketplace.json (self-hosting marketplace)
.agents/plugins/ Codex marketplace.json for the Codex-native bridge plugin
plugins/ultragoal-codex/ Codex plugin: skill + bundled hooks + Codex gate scripts
skills/ the skills: goal, status, stop, remember, compact, setup, verify
goal/ flagship; supporting files: rubric-guide, experiment-guide, goal-template, rubrics/ (the rubric library)
agents/ verifier.md — the fresh-context verifier subagent (also the 3-lens panel at rigor=max)
hooks/hooks.json Stop → goal-gate.sh; SessionStart → session-context.sh; PreToolUse(AskUserQuestion) → arm-guard.sh
monitors/monitors.json on-skill-invoke:goal → goal-log-monitor.sh (standard/max rigor; self-disables in vanilla)
scripts/ goal-gate.sh (the loop engine) + session-context.sh + arm-guard.sh + goal-log-monitor.sh — POSIX shell, fail-open/fail-quiet
installer/cli.mjs the npx installer (clack TUI); the ONLY file shipped to npm
tests/gate-test.sh the engine regression suite (run in CI)Rigor tiers (rigor config knob, default vanilla). The gate understands only verify: off|on|panel; the goal skill reads rigor and expands it — vanilla = lean single-grader loop (today's behavior), standard = + interim checks/double-runs/scouts/monitor, max = verify: panel (3 mutually-blind lenses, all PASS) + every-claim + multi-modal sweeps + deep interview. Keep that separation: rigor never enters the gate.
State the plugin writes into a user's repo (.ultragoal/, CLAUDE.md block) is documented in README.md and DESIGN.md.
Develop & test
- Engine tests:
bash tests/gate-test.sh— must endfailed: 0. The gate and its tests change together, always. - Rubric audit + Codex plugin tests:
npm test— coversscripts/rubric-audit.mjs, the pre-arm rubric linter for weak specs, and the Codex plugin metadata/hooks/runner docs. - Manifest valid:
claude plugin validate . - Smoke-test loading: from another directory,
claude --plugin-dir <repo> -p "list ultragoal skills" --allowedTools ""— expect 7 skills + the verifier. - Installer:
node --check installer/cli.mjs; full flownode installer/cli.mjs --yes --setupin a throwaway git repo. - The live gate runs from the installed plugin cache, not the repo working copy — repo edits to
scripts/take effect only afterclaude plugin marketplace update ultragoal && claude plugin update ultragoal@ultragoal(or a--plugin-dirrun).
Release & publish
Publishing is automated. Do NOT run npm publish by hand — a manual publish hits the account's 2FA passkey wall; CI publishes with an Automation token (the NPM_TOKEN repo secret) and a provenance attestation.
To cut a release:
- Bump the version in all shipped manifests:
package.json,.claude-plugin/plugin.json, andplugins/ultragoal-codex/.codex-plugin/plugin.json(keep them identical). bash tests/gate-test.sh && claude plugin validate .— green.- Commit and push to
main. gh release create vX.Y.Z --title "ultragoal vX.Y.Z" --latest --notes "<changes>".
Creating the release triggers .github/workflows/publish.yml, which: checks the release tag equals package.json version (fails fast if they drift), re-runs the gate suite, and runs npm publish --provenance --access public. The plugin marketplace (GitHub) updates from the pushed commit automatically; the npm package updates from the release. Verify with npm view ultragoal version.
CI also runs tests/gate-test.sh, the installer syntax check, and npm pack --dry-run on every push and PR (.github/workflows/ci.yml).
Conventions
- Commit messages: imperative, no AI-tooling mentions or trailers.
- Skills state outcomes and protocols, not step-by-step scripts (over-prescriptive skills degrade Fable 5 output).
scripts/stays POSIX shell and fail-open — the gate must never be able to trap a session; every new gate behavior gets atests/gate-test.shcase.- Files the Codex plugin ships as standalone copies (
rubric-audit.mjs,rubric-guide.md,qa-capability-map.md) are guarded byte-identical bytests/codex-sync.test.mjs: edit the canonical file (reposcripts/orskills/goal/), then copy it over theplugins/ultragoal-codex/twin. The Codex runner's JS rubric hash must match the gate's shell hash byte-for-byte —tests/codex-runner.test.mjscomputes the fixture hash with the gate's own pipeline, so a divergence fails tests. - Dated thresholds in the rubric library (Play API levels, OWASP/WCAG versions, CWV numbers) carry a re-verify note; refresh them when they age.
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.

