Context Layers
Overdeck distributes context (engineering rules, project guidance, machine quirks) to the coding-agent harnesses it drives through a layered system. You author small canonical markdown files; Overdeck renders them into Overdeck-owned artifacts that it delivers only when it launches a managed session. Overdeck never writes nativeCLAUDE.md, AGENTS.md, or equivalent files.
The dashboard’s Context view at /context is described in Dashboard views.
Canonical terminology
Use these names when adding or moving context; they are the vocabulary the agents themselves are taught:
The rendered outputs are managed-session launch artifacts under
~/.overdeck/context/. Never edit those directly.
Edit the source layer or rule. The next managed launch renders it;
pan sync refreshes the inspectable *-global.md renders and is still needed for oh-my-pi.
There is no “global context template”. A request phrased that way means either
a bundled rule (every machine) or the global layer (one machine).
The shorthand: “add a <scope> rule”
In practice you (and your agents) only need four phrases; the scope word
alone routes the content:
After any of them, the change reaches the next new session.
Bundled rules
Overdeck ships engineering rules inside the package undersync-sources/rules/. Each rule carries a scope: frontmatter key:
scope: universal: folded into every machine’s rendered global context;scope: dev: folded in only on a overdeck source checkout, for rules about developing Overdeck itself.
pan install, and each managed launch reads the package’s current copy.
Switching a bundled rule off
Every bundled rule is on by default. To switch one off on a machine, name it undercontext.rules in ~/.overdeck/config.yaml, with the rule’s file
basename as the key:
false omits the rule from every rendered launch artifact and the dashboard
Context-page preview. Any absent
key (or true) leaves the rule on. The map is read when a managed launch is
composed, so the new render reaches new sessions only.
What each harness actually reads
Each harness consumes context through its own native mechanism.pan sync
keeps inspectable global artifacts and spawn-time plumbing composes one
harness-correct launch artifact from global, project, and workspace layers:
In the
launch/ file names, <hash> is a short hash of the workspace path, and
the name ends in -mcp.md instead of -cli.md when the agent gets the
overdeck MCP server.
The claude-global.md, pi-global.md and codex-global.md files in
~/.overdeck/context/ are inspectable renders of the global layer that
pan sync writes. They are Overdeck-owned render artifacts and the
harnesses do not read them, with one exception: pi-global.md is read only by
the oh-my-pi extension at session start.
Every launch artifact ends with a tools block: “Overdeck tools” when the agent
gets the overdeck MCP server, else “Overdeck commands” with the pan
equivalents (details).
The persisted .overdeck/context/workspace.md is harness-neutral and does
not contain a pre-rendered project layer. At launch, Overdeck renders the
canonical project source for the active harness and combines it exactly once
with global rules and workspace-only content. User-authored native files remain
entirely user-owned and are still available through each harness’s normal
discovery behavior.
Project memory
Curated memory facts (short, human-reviewable truths distinct from the layers above) are injected right after the project layer and before the workspace section, as a## Project memory section followed (on this machine) by ## Operator memory and ## Machine memory sections. See
Project Memory for the fact format, the store paths, and the pan memory
commands.
Native files are a no-touch boundary
Normal install, sync, startup, workspace, and agent lifecycle paths do not create, edit, clean, back up, delete, or migrate native instruction Markdown. Historical managed regions remain until the user explicitly previews and appliespan context detach --dry-run / pan context detach --apply.
Keeping the synced setup current
pan sync records a digest for each sync input in ~/.overdeck/.sync-manifest.json.
When the dashboard compares, it ignores the directory pan sync ran from, so a
sync run from any workspace or project counts.
The dashboard runs the light pan sync itself. It checks the inputs when it
starts, so after every pan reload, and again every 60 seconds, and runs an
automatic sync no earlier than 60 seconds after startup. Peer dashboards never
run it. A merge that changes the main checkout’s sync-sources/ is synced
within about a minute. Each set of changes gets one attempt; a failed attempt
waits until the inputs change again.
A banner appears when auto-sync failed (Auto-sync failed), or when it ran but
could not apply the change or is turned off (Setup changed). It names what
changed, for example “3 skills and 1 rule changed”, and its tooltip lists the
changed files. Click Sync now (or Retry sync after a failure) to run the
sync by hand.
To turn auto-sync off, set this in ~/.overdeck/config.yaml. The banner then
shows for every needed sync:
Harness-specific blocks
A layer file targets a single harness with Mustache-style blocks; text outside any block renders for every harness:claude, pi, ohmypi, codex, acp, kimi-code, opencode, muse,
prime-agent and grok; pan context validate warns on any other marker.
CLI
pan sync runs the context render as part of its broader sync (skills,
agents, rules). The dashboard’s Context page edits the same files with
per-harness previews.