| type | primer | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| folder | ~/.koad-io/ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| parents | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| children |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| features |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| relates-to |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| entities |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| last-walked | 2026-05-10 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| as-of | a176654204bedb918d3342206b9ae5e226687616 |
The skeleton every kingdom inherits. Ships clean: runtime, commands, cascade, daemon, hooks, helpers. Nothing kingdom-specific.
~/.koad-io/ is the koad:io framework root. Clone it and you get structure, not someone else's business. Business — products, services, editorial voice, storefronts — lives in overlays: ~/.forge/ (business machinery) and ~/.<entity>/ (identity + scope).
~/.koad-io/ ← Framework: CLI tools, commands, skeletons, daemon, hooks
~/.<entity>/ ← Entity: identity, keys, memories, commands, trust bonds
~/.forge/ ← Business overlay: websites, services, forge packages
The framework provides runtime. The entity provides identity. The forge provides the kingdom's actual products.
Every command runs through the entity launcher (<entity> <cmd> [args]). The launcher fires the env cascade before command.sh executes:
~/.koad-io/.env ← Framework defaults
~/.<entity>/.env ← Entity overrides
./commands/.env ← Command-local overrides
By the time a command runs, every variable — ports, bind addresses, database URLs, domain names, settings paths, screen names — is already resolved. Running a tool directly (skipping the launcher) breaks this. The cascade is the contract.
| Path | Role | Walk status |
|---|---|---|
bin/ |
Launchers + CLI tools | not-yet-walked |
commands/ |
Framework command set | documented |
daemon/ |
Kingdom backbone (Meteor, dev-mode, never built) | documented |
harness/ |
Role primers + startup | documented |
helpers/ |
Sourced utilities (emit, discovery, ask, spinner) | documented |
hooks/ |
Framework lifecycle hooks | documented |
me/ |
Sovereign identity root | not-yet-walked |
modules/ |
Shared Node.js module (@koad-io/node) | documented |
packages/ |
Framework Meteor packages | documented |
plugins/ |
Harness extensions | documented |
primitives/ |
Trigger/tickler/worker/party primitives | not-yet-walked |
skeletons/ |
Starter templates | documented |
training/ |
Master training layer | documented |
kingdoms/ |
Cross-kingdom index | not-yet-walked |
onboarding/ |
Newcomer orientation | not-yet-walked |
documentation/ |
Kingdom model docs | not-yet-walked |
config/ |
Shared configuration (model prices, opencode) | not-yet-walked |
assets/ |
Brand assets (logo, icon, splash) | not-yet-walked |
desktop/ |
Desktop widget (Electron) | not-yet-walked |
archive/ |
Archived emissions + flights (JSONL) | not-yet-walked |
emissions/ |
Live emission bus | not-yet-walked |
messages/ |
Async message inbox per entity | not-yet-walked |
git-hooks/ |
Optional git post-commit hooks | not-yet-walked |
patches/ |
Upstream dependency patches | not-yet-walked |
passenger/ |
Per-entity passenger.json metadata | not-yet-walked |
| File | Purpose |
|---|---|
KOAD_IO.md |
Kingdom lighthouse — loaded first by every entity, every harness |
.env |
Framework defaults — base of the cascade |
CHANGELOG.md |
Framework changelog |
LICENSE / KINGDOM-LICENSE |
AGPL-3.0 + kingdom license |
philosophy.md |
The principles behind the framework design |
README.md |
Framework overview (public-facing) |
PRIMER.md |
This file — agent orientation |
commands/PRIMER.md— full command inventory,.gitignorewhitelist pattern, command shape contractdaemon/PRIMER.md— daemon architecture, guardrails, dev-mode lifecycle,MONGO_URL=falsehelpers/PRIMER.md— emit.sh/py, discovery.sh, ask.sh usage patternshooks/PRIMER.md— framework hook details: executed-without-arguments, entity-upstart, CWD PRIMER injection; three-tier cascade explained; drift note on orchestrator hooks living in juno not heretraining/PRIMER.md— graduation ladder for lessons; four documented subfolders (cascade, layout, pluggable-indexers, sovereign-services)
Framework (~/.koad-io/): Commands, hooks, and helpers that any kingdom needs from day one. Generic shapes — not specific to koad's products.
Forge (~/.forge/): Commands, hooks, packages, and services that are koad's business. Things that assume the forge is present, or that reference specific websites, services, or products.
Entity dir (~/.<entity>/): Things that belong to exactly one entity — identity, memories, trust bonds, entity-specific commands.
When in doubt: would a fresh operator cloning koad:io (not koad's kingdom) need this? If yes, it belongs here. If no, it lives in forge or an entity dir.
Livy walked this folder; top-level inventory updated 2026-05-10. modules/ now documented. Child folders still marked not-yet-walked await their own PRIMER flights.