Meta_Kim
AGENTS.md274 starsChanged 56 days agoApache-2.0View on GitHub
This file is the Codex entrypoint for maintaining Meta_Kim. Read it as the resident operating guide for this repository, not as a marketing overview. If you only keep five rules in mind: Do not read Meta_Kim as a folder full of unrelated prompt files. a cross-runtime architecture pack for intent amplification, governed through small replaceable meta units and projected into multiple AI runtimes. In this repo, meta means the smallest governable unit that supports intent amplification. A valid meta unit:
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.
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
26 rules. About 0 are common, 19 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈19
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 7
If you only keep five rules in mind:
- Distinctive: line 19
Do not paste full diffs or patches into chat after GitHub submit.
- Distinctive: line 20
After GitHub submit, report only the branch name, commit hash, PR URL when present, and a short summary.
- Very specific: line 24
Do not read Meta_Kim as a folder full of unrelated prompt files.
- Distinctive: line 36
does not silently absorb unrelated responsibilities
- Distinctive: line 49
Treat these as generated mirrors or runtime adapters unless the task explicitly targets runtime wiring:
- Distinctive: line 70
After changing canonical sources, sync projections instead of hand-forking runtime copies.
- Distinctive: line 76
Keep two independent scope decisions separate:
- Very specific: line 94
Do not impose arbitrary source line-count gates.
- Distinctive: line 98
When this repository is opened in Codex:
- Distinctive: line 166
Do not require humans to know or type command words.
- Distinctive: line 170
Use the entry classifier behavior as the user-facing rule:
- Distinctive: line 241
Not every task needs every lane.
- Distinctive: line 263
Do not show host-generated personal names as the primary agent name.
- Distinctive: line 264
Prefer short role names over long task descriptions.
- Very specific: line 265
Do not put concrete work items into roleDisplayName.
- Very specific: line 266
If the same owner runs multiple parallel instances, keep the same coarse roleDisplayName and separate instances with roleInstanceId.
- Distinctive: line 308
Do not claim a run is public-ready unless verification passed, summary closure exists, a single primary deliverable was maintained, and the …
- Very specific: line 312
When the task is not a pure query, use Meta_Kim's first-party planning-continuity runtime at Stage 3 to create or resume persistent …
- Distinctive: line 371
Do not run a startup freshness gate merely because a graph exists.
- Distinctive: line 372
Treat Graphify as a project map, not the final source of truth.
- Very specific: line 374
If graphify-out/wiki/index.md exists, use it for broad navigation instead of raw source browsing.
- Very specific: line 377
After modifying code files, run npm run meta:graphify:rebuild to keep the graph current across Windows, macOS, and Linux.
- Distinctive: line 381
After changing canonical behavior, contracts, hooks, or runtime-facing docs:
- Distinctive: line 389
Use these supporting commands as needed:
- Distinctive: line 427
all declared runtime install/update targets.
≈ “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
Meta_Kim for Codex
This file is the Codex entrypoint for maintaining Meta_Kim. Read it as the resident operating guide for this repository, not as a marketing overview.
Fast Read
If you only keep five rules in mind:
- Meta_Kim is one cross-runtime governance system. Claude Code, Codex, OpenClaw, and Cursor are projections of the same canonical layer.
- Its core is general agent governance: understand the current user goal, compare evidenced feasible routes, discover capabilities, orchestrate execution and verify outcomes across domains. Industry packages are optional capability sources; framework acceptance must never replace the user's outcome.
meta-wardenis the normal public front door. Other meta agents are backstage specialists.- Dispatch is capability-first: describe the capability, search agents / skills / tools / capability indexes, then choose the best owner.
- Long-term behavior lives in
canonical/,config/contracts/, andconfig/capability-index/. Runtime trees (.claude/,.codex/,.cursor/,openclaw/) are gitignored projections — runnpm run meta:syncafter clone to generate them locally. - User-visible run-scoped worker labels may be coarse English role-family names such as
frontend,backend, ortest, but Meta_Kim does not project those execution labels as durable agents. Durable governance files stay with the ninemeta-*owners.
Codex Output Rules
- On Windows, do not output raw Windows paths in normal Markdown text. Wrap paths in backticks and prefer forward slashes, for example
D:/path/to/project. - Do not paste full diffs or patches into chat after GitHub submit.
- After GitHub submit, report only the branch name, commit hash, PR URL when present, and a short summary.
What This Repository Is
Do not read Meta_Kim as a folder full of unrelated prompt files.
Read it as:
a cross-runtime architecture pack for intent amplification, governed through small replaceable meta units and projected into multiple AI runtimes.
In this repo, meta means the smallest governable unit that supports intent amplification. A valid meta unit:
- owns one clear responsibility class
- states what it refuses, not only what it does
- can be reviewed on its own
- can be replaced or rolled back
- does not silently absorb unrelated responsibilities
Source Of Truth
Edit these for durable behavior:
canonical/agents/*.mdcanonical/skills/meta-theory/SKILL.mdcanonical/skills/meta-theory/references/*.mdcanonical/runtime-assets/*config/contracts/config/capability-index/
Treat these as generated mirrors or runtime adapters unless the task explicitly targets runtime wiring:
.claude/agents/*.md.claude/skills/meta-theory/.claude/hooks/.claude/settings.json.mcp.json.claude/capability-index/.codex/agents/*.toml.agents/skills/.codex/skills/legacy compatibility mirrors, when present for cleanup.codex/capability-index/.cursor/agents/*.md.cursor/skills/meta-theory/.cursor/mcp.json.cursor/capability-index/openclaw/skills/openclaw/workspaces/*openclaw/capability-index/openclaw/openclaw.template.json
After changing canonical sources, sync projections instead of hand-forking runtime copies.
Open-source boundary: runtime projection directories are generated local outputs, not GitHub source. .claude/, .codex/, .agents/, .cursor/, openclaw/, .mcp.json, and codex/ must stay gitignored and excluded from package files. The nine governance agents are sourced from canonical/agents/. Codex .toml projection is limited to those governance mirrors; execution-layer labels such as worker, explorer, frontend, backend, test, review, analysis, verify, or docs are not Meta_Kim projection targets.
Install Scope And Runtime Sedimentation
Keep two independent scope decisions separate:
setup.mjsinstall/update offers an interactiveglobalorprojectchoice and accepts the same choice explicitly through--scope global|projectfor non-interactive use.global_onlydescribes install-generated projection scope: it keeps only the dependency-closed Claude/Codex/Cursor project Hook package needed to enter governance and does not install durable project agents, skills, commands, capability indexes, MCP entries, Codex config examples, or OpenClaw project projections.- Distribution scope and existing project topology are independent. A normal
globalinstall/update still refreshes every current, explicit, or saved directory that already has a valid Meta_Kim project-bootstrap manifest, using the configured bootstrap merge/delta policy. With no existing managed project, it creates no project projection and asks no extra question. Normal install/update never turns this refresh into cleanup; project cleanup remains an explicit cleanup command. - Under
project_bootstrap_merge_delta, files recorded by the project-bootstrap manifest remain Meta_Kim-managed: generated projections are transaction-backed-up and replaced with the current package version, while shared JSON and managed text blocks are merged. This replacement rule does not apply to unknown user files orruntime_sedimented_project_copycapabilities; both remain preserved. - Governed runtime sedimentation is a different lifecycle. When a run proves that an Agent, Skill, or Command must be created or iterated for the current project, write or copy it into that runtime's native project directory and record it as
runtime_sedimented_project_copy. Global dependency install/update andglobal_onlycleanup must never overwrite or remove that independent project copy. - Global discovery does not imply project copying. If a discovered global Agent, Skill, or Command already fits and no iteration is requested, bind it with
use_global_directlyand leave the project untouched. Copy only when the capability needs project-specific iteration (copy_to_project_for_modification) or must be newly created for the project (create_project_local_capability).
Global execution-package stability is a separate lifecycle from project scope. Any install/update path that will persist Claude Code or Codex Commands, Hook registrations, or merged settings/config must first materialize the exact packed package into the shared immutable store at ~/.meta-kim/runtime/projection-packages/<package>/<version>/<packed-sha256>/, then render all persistent execution references from that stable root. npx remains supported; its disposable cache is an origin, never long-term authority. Help, status, and doctor do not materialize this store merely by being invoked, while check stays read-only and validates the current version's manifest-bound authority. This store does not change global_only, project-bootstrap merge/delta, or runtime_sedimented_project_copy ownership. Uninstall may remove only an exact manifest-owned, closure-matching bundle; unknown, drifted, and user-owned content must be preserved.
The install manifest records install_projection ownership, retains records for runtime targets not selected by the current update, and stores exact hash plus size for managed files. The independent .meta-kim/state/default/project-capabilities.json manifest records runtime_sedimented_project_copy / preserve_project_copy ownership for project Agent, Skill, and Command paths. Bootstrap planning, actual writes, stale cleanup, and explicit redundancy cleanup must all consult that manifest and preserve those paths. Unknown files and runtime-sedimented project copies are preserved; drift inside bootstrap-manifest-owned generated projections follows the configured merge/delta replacement-and-backup policy. A manifest recording or flush failure makes install/update partial or failed; it must not be reported as success.
Configuration files have four ownership classes: canonical source, install projection, runtime-sedimented project copy, and local/user state. Merged user configuration is never treated as whole-file Meta_Kim ownership; cleanup removes only the exact Meta_Kim fragment or an exact manifest-owned generated file.
The shared immutable projection-package lifecycle does not include live-MCP replacement, active Node/npm CLI resolution, historical manifest repair, project-state/dependency weight reduction, Cursor live acceptance, Docker-based user acceptance, or the cancelled Claude context-reduction A/B. Keep those concerns in their own work items instead of expanding an install-root repair.
Release verification for install/update must exercise the real packed CLI: create the npm package, install that package in an isolated location, and run its install and update entrypoints. Running repository source directly is useful development evidence but is not packed-product truth.
Do not impose arbitrary source line-count gates. Architecture tests should enforce entrypoint responsibility, dependency direction, source/projection boundaries, and observable behavior. setup.mjs is a CLI façade; new domain logic belongs in focused modules with their own tests.
Codex Runtime Map
When this repository is opened in Codex:
AGENTS.mdis this resident project guide..codex/agents/*.tomlcontains Codex custom-agent mirrors for the nine Meta_Kim governance agents only. Codex is the only target here that uses agent TOML. Execution-layer labels such asworker,explorer,frontend,backend,test,review,analysis,verify, ordocsremain run-scoped packet labels and must not be generated by Meta_Kim sync..agents/skills/meta-theory/SKILL.mdis the Codex project skill mirror. Project-local.codex/skills/meta-theory/was a legacy compatibility mirror and should be removed by sync when present. The canonical source iscanonical/skills/meta-theory/SKILL.md..codex/hooks.jsonand.codex/hooks/carry Codex-compatible project hook wiring.activate-meta-theory-spine.mjsimports the sharedproject-root.mjsresolver. Project sync, global Hook sync,setup.mjs --project-bootstrap, package manifests, and managed-file cleanup must always project and retire those files as one dependency set; a copied activator without its resolver is an invalid runtime projection.codex/config.toml.exampleis generated fromcanonical/runtime-assets/codex/config.toml.example.
Cursor parity is maintained through .cursor/agents/*.md, .cursor/skills/meta-theory/, .cursor/hooks.json, .cursor/hooks/, .cursor/mcp.json, and .cursor/capability-index/.
Project-root selection is a cross-runtime safety contract. The shared resolver uses this order: a valid trusted explicit declaration (currently Claude's CLAUDE_PROJECT_DIR, or the activator's explicit --project-root handoff to post-copy), then the nearest .git or project-bootstrap marker found from the current cwd, then an absolute marker-backed runtime payload candidate. A valid cwd project wins over payload fallback, relative payload paths are rejected, and no resolved project root means spine and post-copy projection must no-op instead of writing into an arbitrary directory.
Cross-runtime format boundary:
- Claude Code agents:
.claude/agents/*.mdwith YAML frontmatter. - Codex agents:
.codex/agents/*.tomlwithname,description,developer_instructions, and optional ASCIInickname_candidates. Do not copy Codex TOML fields into Claude Code, Cursor, or OpenClaw. - Cursor agents:
.cursor/agents/*.mdwith YAML frontmatter plus.cursor/rules/*.mdcandAGENTS.mdcontext. - OpenClaw agents:
openclaw/workspaces/<agent>/identity/workspace files plusopenclaw/openclaw.template.json.
Capability-First Dispatch
Meta_Kim does not start with "call agent X". It starts with "what capability is needed?"
For every non-query governed task, run capability search before execution. If the task touches runtime behavior, inspect config/runtime-capability-matrix.json. If it touches macOS, Windows, or WSL2, inspect config/os-compatibility-matrix.json. If it touches external reusable capability, inspect config/capability-index/dependency-project-registry.json. Reference-only projects are not dependencies; distill useful ideas into Meta_Kim stage data such as config/governance/decision-pattern-catalog.json.
Use this order:
Need capability
-> Search repo canonical capability index
-> Search runtime mirror indexes
-> Search local runtime inventory
-> Search available skills and tools
-> Choose the best owner by boundary fit
-> Dispatch with explicit scope, deliverable, review owner, and verification ownerCapability-index fetch order:
config/capability-index/
-> .claude/.codex/.cursor/openclaw capability-index mirrors
-> .meta-kim/state/{profile}/capability-index/
-> explicit compatibility degradation or capabilityGapPacketHardcoding a specific agent name before discovery is a shortcut, not the canonical method.
Provider claim truth is also capability-first. In config/capability-index/provider-registry.json, providers[*].support is the single durable authority and runtimeAdapters is only its validated projection. Keep selection run-scoped, distinguish availability from native support, and require fresh verification evidence for live claims. A runtime-specific provider must remain blocked and have no activation event outside its declared target runtime; a generated projection never makes a Claude provider native to Codex, Cursor, or OpenClaw, or vice versa.
For a real execution demand, the default path must prove the whole provider chain before mutation: capability discovery, execution-agent search and selection, execution-agent creation capability search, skill search and selection, skill creation capability search, MCP provider search, command/runtime tool selection, and verification owner/path selection. This must happen as the natural Fetch -> Thinking route, not as a validator or hook rescue after the route is already weak.
Mechanical Enforcement (Cross-Runtime)
Capability-first has a mechanical hook path on Claude Code, Codex, and Cursor, but the default mode is progressive. During the grace window it warns unless META_KIM_CAPABILITY_GATE=block is set; do not describe the default as immediate hard-deny. Hooks are last-resort fuses for key behavior only. They should block missing intent, missing Fetch evidence, missing capability discovery, missing owner/loadout, known-unsupported runtime/OS, missing memory strategy, or unsafe meta-agent mutation. They should not block merely because optional packet parameters are absent; detailed completeness belongs to validators, Review, and public-ready gates.
- Claude Code: enforced via the PreToolUse hook
enforce-agent-dispatch.mjs(deny payload{hookSpecificOutput.permissionDecision: "deny"}when the effective mode isblock). The gate coversAgentdispatches in stagesexecution,review,meta_review,verification,evolutionunlessfetchRecord.capabilitySearchPerformed === true. Discovery stagescritical,fetch,thinkingare exempt except for execution-intent dispatch before design-time readiness. - Codex CLI: enforced via PreToolUse hook (same
enforce-agent-dispatch.mjsscript projected to.codex/hooks/). Matcher includes"Bash|apply_patch|Edit|Write|MultiEdit|NotebookEdit|Agent|spawn_agent|followup_task|collaboration\\.spawn_agent|collaboration\\.followup_task", but Codex hook coverage is runtime-version dependent; do not treat it as an all-tool policy engine. It is generated bybuildCodexHooksJsoninscripts/runtime-hook-mapping.mjs; do not document a line-number contract. - Cursor: mechanically enforced via the official
preToolUsehook surface withfailClosed: true(crash defaults to deny). Uses exit code 2 + stderr deny reason or stdout JSON{"permission":"deny",...}. Registered atscripts/runtime-hook-mapping.mjs:269-280. - OpenClaw: current Meta_Kim tool-blocking enforcement is declarative-only — hard refusal prose in workspace
HEARTBEAT.mdandSOUL.md(executionBlock=true). OpenClaw internal hooks cover command/lifecycle automation, and typed plugin hooks are the official blocking/canceling policy surface, but Meta_Kim has not installed a typed plugin enforcement adapter yet. Seecanonical/runtime-assets/openclaw/DECLARED_GAP.mdfor the full boundary declaration.
Override knob (all hook-equipped runtimes): META_KIM_CAPABILITY_GATE=progressive|block|warn|off (default progressive; set block env for immediate hard deny). Set warn to emit stderr warnings without denying, or off to disable the gate entirely. Runtime-payload schema selector: META_KIM_HOOK_RUNTIME=claude|codex|cursor.
Canonical hook source: canonical/runtime-assets/claude/hooks/enforce-agent-dispatch.mjs. The current runtime matrix and limits are documented in this Mechanical Enforcement section; do not add a separate source-of-truth document for the same rule.
Meta-Theory Activation
Do not require humans to know or type command words. Treat ordinary natural-language executable requests as the primary entry path when they imply durable planning, execution, review, verification, prioritization, repair suggestions, or a validation checklist. Examples include "帮我整理成优先级、修复建议和验证清单", "这个页面不好看,帮我弄高级一点", "帮我规划并开始处理", or "review this and fix what matters".
Explicit triggers such as /meta-theory, meta-theory, meta theory, run meta theory, execute meta theory, 元理论, or a meta-theory skill mention are maintainer shortcuts, not required user behavior.
Use the entry classifier behavior as the user-facing rule:
- plain durable work in natural language enters governed
standard_path - subjective or taste-dependent work enters Critical clarification before Fetch
- pure read-only questions stay on
fast_path - explicit meta-theory requests enter
regulated_path
Codex must first run:
Critical -> Fetch -> ThinkingThat means:
- Critical locks the real outcome, pain/value, audience, success standard, non-goals, and only asks questions that change execution
- Fetch gathers evidence and capability facts that change the route, risk, owner, scope, or acceptance criteria
- Thinking selects expert lenses, compares viable paths, rejects weak paths, resolves owners/capabilities, and writes worker work orders before Execution
- Review checks whether Critical, Fetch, and Thinking were good enough before judging final output polish
- Execution work is dispatched to agents, skills, commands, MCP capabilities, runtime tools, or workers selected by Thinking instead of collapsing into the main thread
For Codex, meta-theory / governed Meta_Kim activation is user-visible authorization for safe native fan-out when Thinking proves multiple independent worker lanes and DAG/collision/workspace/external-write safety. Direct subagent/delegation/parallel-agent wording and structured governance-chain requests such as Critical Thinking -> Fetch -> Deep Thinking -> Review are strong activation examples, not exclusive gates. The main thread scopes, delegates, reviews, and synthesizes; it does not become the all-purpose executor for complex work. Native choice remains required only when route, scope, risk, or acceptance materially branches. Live delegation still requires the current Codex host to expose the top-level native spawn_agent surface; if it is absent, block or declare degraded mode instead of falling back to a legacy namespaced spawn API or silently serializing.
Codex owner binding is schema-adaptive and truth-preserving. Use the single field ownerBindingMode: native_custom_agent is allowed only when the active spawn_agent schema exposes agent_type and the selected owner is a validated Codex TOML custom-agent definition; pass its declared name as nativeAgentType/agent_type, and wait for a successful host result before calling it invoked or completed. Otherwise use run_scoped_owner_contract with no nativeAgentType. Markdown owners, task_name, nicknames, badges, and runtimeInstanceAlias never prove native owner loading.
Production Correctness Before Execution
Meta-theory work must be correct before production starts, not rescued by Review or Verification after the fact.
Before editing files, inspect the current worktree and source files that will be changed: git status --short, git diff --stat, targeted diffs, targeted source reads, and repo-scoped search. This read-before-edit step belongs to Critical/Fetch. A hook that blocks read-only inspection is a governance defect to route to Sentinel/Conductor, not a reason to work blind.
Required internal stage records:
- Critical:
realIntent,successCriteria,nonGoals,blockingUnknowns,noQuotaClarification - Fetch:
evidence,decisionImpactMap,capabilityDiscovery,capabilityGap,contradictionLog - Thinking:
designFrame,workType,expertLens,consideredLanes,omittedLanesWithReason,workerTaskPackets,dependencyPolicy - Review: checks upstream Critical/Fetch/Thinking quality before result polish
Normal chat output for these stages must be localized, compact, and human-readable. Packet field names such as realIntent, decisionImpactMap, or workerTaskPackets may appear when useful, but they must be paired with human labels instead of being dumped as unexplained English keys.
Governance-quality fallback is forbidden. Missing intent, evidence, design, owner, capability, dependency readiness, or worker work order means block, return_to_stage, or capabilityGapPacket. Runtime compatibility fallback may remain for host limitations such as a chat card instead of a popup, but it does not count as governance readiness.
Business Flow Before Execution
For executable work, plan the business flow before writing code or changing files. This is a dynamic workflow step, not a fixed checklist: classify the user's natural-language intent, choose lanes from evidence and dependency signals, and record omitted lanes with reasons. A web app, for example, may need separate lanes for:
- product direction
- UX flow
- UI system
- frontend
- backend
- database
- auth / security
- motion / interaction polish
- tests / QA
- release / install path
- feedback and evolution
Hard rules before Execution:
- Fuzzy goals require intent amplification and an acceptance record.
- Multi-path work requires best-path selection.
- Multi-lens judgment uses dynamic lens discovery; user-mentioned books, people, or theories are seeds/fallbacks, not a fixed list.
- Execution requires owner + weapon + verification owner.
- Dependency projects require input/output contracts before use.
- Codex native subagents require governed Meta_Kim activation or another user-visible authorization source, separable safe lanes proven by Thinking, and the current host's top-level
spawn_agentsurface. Ameta-theorytrigger or structured governance-chain request may authorize safe fan-out; native choice is reserved for branch-changing decisions. Legacy namespaced spawn APIs are not a fallback. Hooks require trust review. - OpenClaw skills require third-party risk and sandbox review.
- Cursor capabilities remain unknown/partial until verified; do not mark them native from projection files alone.
- Public-ready requires verification plus intent acceptance; workflow completion alone is not user-goal completion.
- Evolution must write back or record none-with-reason.
Not every task needs every lane. Do not force every wish-style request through the same lane set; omitted lanes should be intentional. The business-flow blueprint should explain:
- what user pain/value and success standard the run serves
- what capability is needed
- which existing agent / skill / tool was found
- whether an owner is reused, upgraded, or newly created
- which expert lenses are relevant and which are explicitly not applicable
- which lanes can run in parallel
- who merges the outputs
- how the result will be reviewed and verified
Agent Display Names
Separate these three names:
ownerAgent: the real governance or execution owner, for examplemeta-conductororfrontend-developerroleDisplayName: the short user-visible English business role family, for examplefrontend,backend, ortestruntimeInstanceAlias: the host runtime's incidental nickname, if any
Rules:
roleDisplayNameis a run-scoped label inside task packets, not a durable agent identity and not a projection file.- Do not show host-generated personal names as the primary agent name.
- Prefer short role names over long task descriptions.
- Do not put concrete work items into
roleDisplayName; put shard or task scope inroleInstanceId,shardScope,parallelGroup,dependsOn,mergeOwner, and collision boundaries. - If the same owner runs multiple parallel instances, keep the same coarse
roleDisplayNameand separate instances withroleInstanceId. - Normal chat and run panels must show
ownerAgentseparately fromruntimeInstanceAliasand retain the Agent, Skill, Command, MCP, runtime-tool, and Hook selected-versus-actual ledger with each next action.
Eight-Stage Spine
Meta_Kim's execution backbone is:
Critical -> Fetch -> Thinking -> Execution -> Review -> Meta-Review -> Verification -> EvolutionThe 11-phase business workflow is separate:
direction -> planning -> execution -> review -> meta_review -> revision -> verify -> summary -> feedback -> evolve -> mirrorThe relationship is simple:
- the 8-stage spine governs execution logic
- the business workflow governs run packaging and deliverable closure
- business phases do not rename or replace the spine
Machine-readable source: config/contracts/core-loop-contract.json defines each stage's required input/output, skip condition, gate condition, blocking vs progressive behavior, Verification fuse policy, Evolution writeback policy, and public-ready claim rule. The default runnable entry is npm run meta:theory:run, which emits a coreLoop summary in the governed execution artifact.
Hidden Governance Packets
A governed run should leave enough structure to audit what happened. Important packets include:
coreLooptaskClassificationcardPlanPacketbusinessFlowBlueprintPacketagentBlueprintPacketdispatchEnvelopePacketworkerTaskPacketreviewPacketrevisionResponsesverificationResultssummaryPacketevolutionWritebackPacket
Do not claim a run is public-ready unless verification passed, summary closure exists, a single primary deliverable was maintained, and the deliverable chain is closed.
Planning Files
When the task is not a pure query, use Meta_Kim's first-party planning-continuity runtime at Stage 3 to create or resume persistent planning state:
task_plan.mdfindings.mdprogress.md
The external OthmanAdi/planning-with-files dependency has been absorbed and retired. It remains only as historical provenance in the dependency registry; it must not appear in config/skills.json, install routes, runtime homes, Hook registrations, or execution selection. Meta_Kim's first-party planning-continuity runtime is the sole planning authority.
The first-party runtime binds planning state to a trusted project root, runtime, and run digest; preserves existing files; requires explicit owner review before attesting pre-existing content; refuses automatic recovery on hash drift or unsafe control-instruction patterns; never auto-injects findings.md; and bounds completion blocking to two attempts before allowing an incomplete stop without a completion claim. Use npm run meta:planning:validate for its local contract and absence acceptance.
These files supplement protocol packets. They do not replace businessFlowBlueprintPacket, dispatchEnvelopePacket, or verification evidence. The Conductor or the main thread acting as Conductor is the sole writer.
For a release-backed local work queue, do not publish these files or the private PRD and do not invent a public backlog mirror. After the exact Release audit and the final Claude Code/Codex global check have passed, run meta-kim release close --issue <P-NNN> --prd <repo-relative-private-prd>. The command verifies the current tag/audit/global state, then appends one idempotent release-fact block to each existing planning file. The PRD remains the only queue authority; planning blocks are recoverable local projections only.
The Nine Meta Agents
meta-warden: coordination, arbitration, final synthesis, Warden gatemeta-conductor: workflow, stage sequencing, business-flow blueprint, rhythm controlmeta-genesis:SOUL.md, identity, persona, prompt architecturemeta-artisan: skill / MCP / tool fit, capability loadoutmeta-sentinel: safety boundaries, permissions, hooks, rollbackmeta-librarian: memory, continuity, context policymeta-prism: quality review, drift detection, anti-slop reviewmeta-scout: external capability discovery and evaluationmeta-chrysalis: evolution signal aggregation and writeback coordination through Warden's gate
Meta agents govern. They do not become generic implementation workers when a better execution specialist exists.
Correct Execution Shape
Anti-pattern:
User: build a notification system
Assistant: immediately edits ten files as one undifferentiated workerCorrect pattern:
User: build a notification system
Assistant:
1. Critical: clarify material ambiguity
2. Fetch: discover existing capabilities
3. Thinking: map lanes, owners, dependencies, and merge plan
4. Execution: dispatch bounded work to the right agents / skills
5. Review: inspect outputs against quality and boundaries
6. Meta-Review: verify the review standard when risk is high
7. Verification: run fresh checks
8. Evolution: record reusable patterns or decide no writebackGraphify
This repository has a knowledge graph under graphify-out/.
Rules:
- For broad architecture or codebase questions, use existing
graphify-out/GRAPH_REPORT.mdandgraphify-out/graph.jsonas navigation indexes when present. - Do not run a startup freshness gate merely because a graph exists. At the start of a run, check only whether graph artifacts are present and useful enough for navigation.
- Treat Graphify as a project map, not the final source of truth. Use graph queries or subgraph extraction to find relevant modules, concepts, and file anchors, then verify route-changing claims against the target source files.
- Agent and worker context should receive only graph slices, short hints, and file anchors relevant to that worker. Do not inject the full
graph.json, fullGRAPH_REPORT.md, or broad graph dumps into every worker. - If
graphify-out/wiki/index.mdexists, use it for broad navigation instead of raw source browsing. - Dirty
graphify-out/files can be expected after hooks or incremental updates; dirty graph files are not a reason to skip graph context. npm run meta:graphify:checkandnpm run meta:validatecompare the graph's built commit with currentgit rev-parse HEADand fail whenGRAPH_REPORT.mdis stale. Use this as a verification/release/public-ready gate, not as a routine run-start cost.- After modifying code files, run
npm run meta:graphify:rebuildto keep the graph current across Windows, macOS, and Linux.
Maintenance Loop
After changing canonical behavior, contracts, hooks, or runtime-facing docs:
npm run discover:globalnpm run meta:syncnpm run meta:checknpm run meta:check:globalnpm run meta:release:smokebefore routine low-risk patch/minor releases; usenpm run meta:verify:allfor the standard full release gate on larger, risky, runtime, install, hook, dependency, package, or security changes; addnpm run meta:verify:live-certifiedonly when the optional highest-assurance external live certification is requested
Use these supporting commands as needed:
npm run meta:validatenpm run meta:check:runtimesnpm run meta:check:sync-coveragenpm run meta:doctor:governancenpm run meta:eval:agentsnpm run meta:eval:agents:livenpm run meta:validate:run -- <artifact.json>npm run meta:index:runs -- <artifact-dir-or-file>npm run meta:query:runs -- --owner <agent>npm run migrate:meta-kim -- <source-dir> --applynpm run meta:graphify:checknpm run meta:graphify:rebuildnpm run meta:deps:installnpm run meta:deps:install:all-runtimesnpm run meta:deps:updatenpm run meta:deps:update:all-runtimesnpm run meta:sync:globalnpm run prompt:next-iteration
npm run meta:release:smoke is the default maintainer release check for low-risk prompt/doc/governance iterations. It runs projection sync, default capability-discovery smoke, and meta-theory tests. npm run meta:verify:all is the standard full release suite: runtime sync checks, project validation, graphify health, global sync checks, smoke-level runtime acceptance, setup tests, and meta-theory tests. A complete passing run may be used to commit, tag, push, publish, and describe the release as standard release-verified. npm run meta:verify:live-certified runs that same standard suite and then appends the separate external-signature exact-binding clean-room gate.
Release Modes
Routine patch/minor releases should stay fast. If the change is prompt text, docs, changelog, version metadata, or narrow governance wording with no runtime wiring change, the default release path is:
npm run meta:syncnpm run meta:capabilities:smokenpm run meta:test:meta-theorygit diff --check
This can be run directly as npm run meta:release:smoke, followed by git diff --check.
Upgrade from smoke to the standard full release gate, npm run meta:verify:all, when the task changes install/update behavior, global sync, hooks, runtime matrix, provider registry, dependency compatibility, runtime probes, package contents, security-sensitive behavior, or when the user explicitly asks for full release verification.
Standard full-release work is stricter than a local green check. Before commit, push, tag, changelog/release-note update, or publication, the run must have current evidence for:
- all declared runtime install/update targets; if machine-local defaults select only one runtime, use explicit all-runtime target selection
- project sync, global sync, and global hooks when hooks are in scope
- runtime matrix, provider registry, dependency compatibility, and runtime probe
- a real execution-demand route that naturally selects owner, creation providers, skill, MCP provider, command/runtime tool, and verification owner/path
- runtime evaluation/probe results for the targets declared by the standard release
After a standard full release is published, upload the exact npm tgz and run meta-kim release audit --tag <tag> --verification-report <report> --package-file <tgz> --require-exact. Attach the successful published_bound audit record to the GitHub Release. The audit must bind the clean report to the annotated tag object, peeled commit/tree, Release URL, GitHub asset digest, and the byte-exact npm tgz candidate that the clean full gate actually installed and tested; package name, version, or package.json alone are insufficient. Attempts are append-only; a dirty or unavailable historical report remains explicitly unbound and cannot be promoted.
If the run uses local planning files and a local-private PRD, finish the stable Claude Code/Codex global update and read-only global check, then run meta-kim release close --issue <P-NNN> --prd <repo-relative-private-prd>. This explicit final step refuses a dirty tracked tree, a public/mismatched PRD, a non-exact audit, or stale global projections. It repairs only missing local planning projections after interruption and never creates a public queue.
The optional highest-assurance mode is npm run meta:verify:live-certified. It appends a private-attested external observer gate that must join successful host request/result events to every exact Thinking-selected binding in a clean-room run. Missing or failed external attestation means only liveCertified=false: do not claim live-certified, exact-binding live coverage, or externally signed runtime proof. It does not invalidate a separately complete meta:verify:all run and does not block an ordinary standard release.
Do not treat structural smoke, systemMessage/UI warning output, auth-present checks, skipped/needsAuth states, or config-only proof as live pass evidence. Those are valid diagnostics, not live completion. Validators and gates protect against empty or dangerous routes; they are not the primary mechanism that makes the default path correct.
Install And Packaging Notes
- Node must satisfy the
package.jsonengine requirement. package.jsonuses afileswhitelist so GitHub / npm tarballs include the fullcanonical/tree.node setup.mjsinstalls selected platform projections and graphify wiring idempotently.- Runtime target selection has two layers: repo defaults in
config/sync.json, machine-active targets in.meta-kim/local.overrides.json. - MCP Memory Service uses port
8000. stop-memory-save.mjsis a canonical/global MCP memory lifecycle asset installed byscripts/install-mcp-memory-hooks.mjs; it is not registered in the project.claude/settings.jsonprojection.
Reading Order
For maintainers:
README.mdorREADME.zh-CN.mdAGENTS.mdCLAUDE.mdwhen touching Claude Code behavior- This
AGENTS.mdMechanical Enforcement section when changing cross-runtime trigger, hook, review, verification, stop, or writeback behavior canonical/skills/meta-theory/references/dev-governance.mdfor the long-form governed execution contract
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.

