Quickstart
The first path should be small, deterministic, and easy to review.
First-run setup
Section titled “First-run setup”Install mdkg first if needed:
npm install -g mdkgmdkg --versionThen initialize and validate the repo memory layer:
mdkg init --agentmdkg indexmdkg statusmdkg validateTypical outputs:
mdkg init --agentcreates.mdkg/and agent-facing startup files.mdkg indexrebuilds generated search and capability caches.mdkg statussummarizes git, graph, selected goal, cache, and DB health.mdkg validatereports graph errors and warning categories.
You do not need an existing goal for this first proof. A new repo can validate successfully while mdkg goal next returns no node.
Expected receipt shape:
mdkg status -> status: okmdkg validate -> ok: trueIf you want a deterministic example before modeling your own repo, run the demo graph first-success path.
Plan -> Work -> Evidence
Section titled “Plan -> Work -> Evidence”After setup, inspect or create work. Replace WORK_ID and GOAL_ID with concrete ids from your repo:
mdkg search "goal"mdkg goal nextmdkg goal next GOAL_IDmdkg show WORK_IDmdkg pack WORK_IDUse mdkg pack WORK_ID --pack-profile concise when you want a shorter transfer pack.
When a human or AI agent does work, record evidence before moving on:
mdkg task done TASK_ID --checkpoint "Done"mdkg validateFor a bounded transfer between sessions, agents, or humans:
mdkg handoff create WORK_IDRequired checks in a goal are not executed automatically. Treat them as the checklist a human or agent must run, then record the evidence in a checkpoint, task note, or handoff.
First principle
Section titled “First principle”Use mdkg to make work state explicit. Let the repository, not a chat transcript, carry the durable plan, context, evidence, and closeout.
If no work exists yet
Section titled “If no work exists yet”If mdkg goal next returns no node in a fresh repo, that is not a failed setup. It usually means there is no active goal or executable work yet. Create a small task, then inspect and pack it:
mdkg new task "Fix quickstart copy" --jsonmdkg show task-1mdkg pack task-1If your installed CLI produces a different id, use the id printed by the command receipt.
Expected result:
mdkg new task ... --jsonprints the created task id.mdkg show <created-id>returns that task.mdkg pack <created-id>creates bounded context for a human or agent.