Run an organization as a folder of plain files — operable by a human with a text editor, accelerated by any AI coding agent, owned by neither.
Traditional software freezes an organization's workflows into applications. Now that software can be generated and modified by agents, the durable asset is no longer the app — it is the organization's own state: purpose, authority, processes, work, evidence, decisions, and lessons. This seed keeps all of that as Markdown + YAML in a git repo, and treats every agent, model, script, and scheduler as replaceable machinery.
Your business, as a folder any AI agent can run — and none can run away with. Software used to freeze your workflows into apps; now agents can generate software, so the durable asset is your organization itself: purpose, authority, processes, evidence, decisions. The seed keeps all of it in plain files under git. Agents are hired like staff — chartered roles with narrow grants, hard boundaries, probation — and fired by deleting a file. You stay the judge: nothing spends, sends, signs, or files without you. Start with one painful recurring process, not a migration; your existing tools keep running. It's proven, not theoretical: a real eight-figure (INR) business runs on it today — books reconciled to the paisa, every marketplace refund provably credit-noted from the right account, support drafted every morning before the owner wakes up. Fork the seed. Keep the judgment. Delegate the rest.
The thesis: the seed is the genotype; everything else is phenotype. Harnesses, models, and SaaS systems are expression machinery — they improve every quarter, and because the organization's identity lives in files and not in any of them, every improvement anywhere in the stack is captured as a free upgrade. The org rides every curve and is owned by none. Roadmap: knowledge/docs/ROADMAP.md.
Origin: extracted from a living instance that runs a real e-commerce business — its purchase orders, support desk, books reconciliation, and governance all flow through this exact structure daily. The pattern is published; the business stays private.
v0.2 folds back what sustained live operation taught: chartered agent Roles
(knowledge/roles/_charter-template.md — narrow grants, hard boundaries, probation), the
concurrency convention (session leases + fencing + deadman checks; knowledge/work/_active/),
exact governed candidates with repository-native Founder Decisions, and the
write discipline that makes crashed or colliding agents
recoverable by design (knowledge/docs/write-discipline.md). All of
it was forced by real failures — concurrent agents in one ledger, mid-write crashes,
silent schedule deaths — not designed in advance.
Every artifact answers where it came from and whether it is Knowledge or Machinery. The Seed supplies a reusable baseline; an Instance owns its current copy and may add business-specific Knowledge. Origin never creates continuing upstream Authority. Knowledge is Standing Knowledge, Organizational Memory, or Working State. Machinery sits outside Knowledge and may only read, check, project, or present it. See the architecture at a glance; knowledge/KNOWLEDGE.md is the canonical map. For the delivery view, see how intent and sessions route through the architecture and how one substrate produces bounded views for different Roles.
Every piece of work travels the same path:
- A human expresses bounded intent (ephemeral — never a filed artifact).
- The intent becomes a Task under one Process. It links a Goal only when it advances durable organizational direction.
- A human or agent performs it; every claim in the output cites Records.
- Mechanical Checks verify coherence (no LLM required); a human rules the Judgment.
- Lessons are recorded and handled through review Lessons: absorb, keep, reroute, or close. Any resulting governed mutation uses change Standing Knowledge.
Intent with no matching Process is not an error. Use handle uncovered work for the smallest safe result; leave a draft only when recurrence is plausible. Making that draft active is one operation of Change Standing Knowledge.
The Seed ships Seed Processes that maintain the knowledge system itself: handle uncovered work, review Lessons, and change Standing Knowledge. These are baseline habits, not continuing upstream control.
Each organization adds Instance Processes for its own work: handling support, buying stock, closing books, or anything else specific to it. An Instance may also change a Seed Process through its own approval rules. Once the Instance exists, its copy is sovereign: a later Seed update is only a candidate for review and is never applied automatically.
This repository is the source of the Seed, not a live Instance. Seed maintainers change the pattern through branches and reviewed pull requests; they do not create an in-template organizational Decision to authorize editing it. Seed-maintenance evidence stays in issues, PRs, Git history, and ADRs rather than live Task, Lesson, or organizational Decision entries. Those runtime rules become live when the Seed is instantiated.
- Bindings, not homes. Skills, agent files, and connectors point at durable state; they never own it. Delete every mount and the organization still runs. (ADR 0001)
- Standing Knowledge is governed. In an Instance, anything future work must obey or interpret consistently changes only through an exact candidate and authenticated Founder Decision. Seed source changes use maintainer PR review.
- Access is not permission. A connected tool grants nothing; only
knowledge/AUTHORITY.mddoes. External writes and spending always stop at a human boundary. - Evidence is a citation discipline. A claim without a citation is unverified by definition; checks are runnable by hand.
- Systems are federated, not migrated. Gmail, your ERP, your helpdesk keep owning their data; the seed records who owns which truth (knowledge/records/systems/) and governs how it may be touched.
- Lessons weigh what their evidence weighs. Recurring evidence upgrades a lesson; a closed one-off decays. Scar tissue is audited, not accumulated.
- Use this template (GitHub → "Use this template", or clone).
- Write your
knowledge/ORG.md— fill every{placeholder}: purpose, a Founder and an Operator role. If the organization needs a durable Goal, create it underknowledge/goals/using its_kind.mddefinition. - Keep
knowledge/AUTHORITY.md's reserved powers (they travel well verbatim); write your Operator grants. - Enumerate your external systems as
knowledge/records/systems/entries — what each is the source of truth for, what access exists. This moves no data; adoption is acknowledgment, not migration. - Write one process for one real recurring pain, using
knowledge/processes/example-weekly-review.md as the
shape. Put the candidate under
knowledge/work/process-drafts/, then use change Standing Knowledge with an exact candidate diff and Founder ruling to make it active underknowledge/processes/. - Run the loop once — intent → Task under one Process → evidence-cited output → Checks → your Judgment → Lesson. Link a Goal only when relevant. Review the Lesson when its evidence warrants it; do not create a governed candidate merely because a Lesson exists.
- Point your agent at it. Any coding agent that reads
AGENTS.md(orCLAUDE.md) lands inknowledge/ORG.mdand can find the organization, its Authority, Goals, Tasks, and Processes. Switch harnesses any time — the folder is the organization.
This repository is also the one canonical starter for a Mainmind-backed team;
there is no separate Mainmind company seed. The included .mainmind.json Mount
projects every policy-bearing node in the knowledge/ bundle, including the
whole processes/ directory so future active and retired Instance Processes do
not require a Mount edit, while
knowledge/ACCESS.md defines repository-native access
scopes and write classes. Install Mainmind on an Instance when teammates should
work through scoped MCP tools without receiving a Git checkout or GitHub
credential.
Mainmind is Machinery, not the organization. Removing .mainmind.json or the
GitHub App disconnects that Mount without deleting Knowledge. Conversely,
installing it grants no operational Authority: knowledge/AUTHORITY.md and the
active Process remain binding. Run tools/doctor before connecting an Instance;
once ACCESS.md exists, every Markdown node in the canonical bundle must carry
an explicit access-scope; every Knowledge node also carries a write-class.
Reserved generated indexes remain Machinery rather than Knowledge: they carry
projection-only access-scope metadata for filtered discovery and no Knowledge
write class. The conserved Process contract and every active, retired, or draft
Process retain both explicit classifications.
Don't migrate. Federate. Your systems keep running; the seed starts as the governance layer: enumerate the systems, run one process against them, and let records migrate inward only when a process earns it. A business is "on the seed" the day one real decision flows through the loop — not the day its data moves.
When you find doctrine trapped in old tooling (playbooks, prompts, skills), migrate it curated: read everything, take what earns its place, leave the wrapper, record the gaps you find. The conserved home outlives every tool that visits it.
knowledge/ORG.md ← your canonical entry (template)
knowledge/ACCESS.md ← discovery scopes and mutation ceremonies
knowledge/KNOWLEDGE.md ← three Knowledge classes, Machinery boundary, evolution map
knowledge/AUTHORITY.md ← the rulebook (template; reserved powers ready)
knowledge/CONTEXT.md ← the glossary of seed terms (keep it)
knowledge/goals/_kind.md ← Goal definition; Instances create their own Goals
AGENTS.md / CLAUDE.md ← thin mounts for any coding agent
.mainmind.json ← optional scoped MCP Mount over knowledge/
knowledge/processes/example-weekly-review.md ← a worked example process
knowledge/processes/handle-uncovered-work.md ← safe route when no Process fits
knowledge/processes/review-lessons.md ← Lesson disposition without queue pressure
knowledge/processes/change-standing-knowledge.md ← one route for governed knowledge changes
knowledge/processes/_contract.md ← the small Process authoring contract
knowledge/processes/index.md ← Process discovery
knowledge/lessons/_kind.md ← Lesson routing and completion rules
knowledge/work/_kind.md ← Task definition and optional Goal link
knowledge/AUTHORING.md ← rules for durable knowledge changes
knowledge/records/systems/_kind.md ← the Kind that makes adoption = acknowledgment
knowledge/decisions/_kind.md ← portable exact-candidate Founder receipt contract
knowledge/docs/adr/ ← why the pattern is shaped this way
Directories like knowledge/work/ and knowledge/decisions/ gain entries when
your first Task or Decision happens; the Seed ships only definitions and
examples that every Instance needs.
Apache-2.0. Fork it, run a company on it, build products above it.