principles
CLAUDE.md34 starsChanged 5 months agoMITView on GitHub
Agent-generation framework: compiles a goal into typed, adversarially-vetted truths → truth-citing subtasks → an ontology.json + generic runtime package. No codegen. Plans that built this: docs/superpowers/plans/. ANTHROPIC_API_KEY in .env, or a local claude login (the SDK resolves it automatically). Missing key is a warning, not an error — keep it that way.
- Reads credentials
In this repositoryOne other file it gives its agents.
- live-verificationSkill
The file
Files
Principles Framework — Project Instructions
Agent-generation framework: compiles a goal into typed, adversarially-vetted truths → truth-citing subtasks → an ontology.json + generic runtime package. No codegen. Plans that built this: docs/superpowers/plans/.
Invariants (violating any of these breaks tests or production)
- Single LLM gateway. Every model call goes through the
Llmfunction type insrc/llm/gateway.ts, implemented only bymakeClaudeAgentSdkLlm(src/llm/claudeGateway.ts, Claude Agent SDK, modelclaude-opus-4-8). Never import@anthropic-ai/claude-agent-sdkanywhere else; never add a raw-API client (@anthropic-ai/sdk,openai). Gateway calls are tool-less except per-call web tools (WebSearch/WebFetch only) granted viaLlmRequest.webTools— set only by runtime evaluator agents whose subtask's web request survived judging, plus the benchmark harness's bare-model baseline arm (src/bench/, deliberately unmachined; its--exec-modelflag may also run the principles arm's execution phase on a smaller Claude model — generation always stays on the default model) andsrc/core/survey.ts(surveyLandscape, the one sanctioned generation-side web call — it surveys the world, not the objective); the rest of the generation pipeline (truths, skeptic, decomposition, judging, specs, rubrics) never sets it. - schemaName strings are load-bearing.
typed_truths,truth_attack,decomposition,rubric_verdicts,rubric_guidance,rubric_revision,agent_spec,triage_plan,agent_output,synthesis,direct_answer— the test suite's scripted fakes dispatch on these exact strings. Renaming one silently breaks pipeline tests. - Emitted packages copy source verbatim.
src/core/emit.tscopiessrc/shared/,src/llm/,src/runtime/into every generated package. Those three directories must stay self-contained: no imports fromsrc/core/orsrc/scripts/, and any new dependency they use must be added to the mirrored-deps list inemit.ts. - Schemas must be structured-output-safe. Closed objects (
additionalProperties: falseviazodToJsonSchematargetopenAi), no recursion, no numeric/string constraints — and never let a$schemameta-key through (the Agent SDK CLI silently skips structured output when present; the gateway strips it, keep it that way). - Mechanisms stay falsifiable. Judges must require evidence (enforced in code in
src/shared/judge.ts); refine loops must feed critiques back and escalate on repeats (src/shared/refine.ts); non-converged agent output must surface inRunResult.unverified, never be silently blessed. Web access must be proposed with a justification at decomposition and is enforced bycov-web-justified(mechanical) andd-web(judged).
Commands
yarn build— tsc (must stay green)yarn test— vitest (unit tests are network-free; all LLM callers take an injectedLlm, tests pass fakes)yarn generate-agents "<goal>"— full live pipeline (many Opus calls, costs money; see thelive-verificationskill first)yarn compile-rubric "<goal>"— compile a gradeable rubric only (foundations, no agent specs; see thelive-verificationskill for run guidance)yarn judge-diff— grade a diff against.github/review-rubric.json(advisory; CI posts it on PRs). Regenerate the rubric withyarn compile-rubricand copyrubric.jsonover.github/review-rubric.jsonwhen invariants change.yarn research-pilot— benchmark harness (fetch/run/status): bare model vs compiled teams on ResearchRubrics; results + protocol inbenchmarks/research-pilot/.
Auth
ANTHROPIC_API_KEY in .env, or a local claude login (the SDK resolves it automatically). Missing key is a warning, not an error — keep it that way.
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.

