monke-tools manages workspace Sessions across a Root repo and its Dependency repos, and distributes shared and personal agent guidance across Consumer repos. This file and the references below form one glossary, split by domain area.
- Session lifecycle: preparation, materialization, removal, and navigation.
- Resources: checkout ownership, values, and allocations.
- Installation: installs, releases, activation, and provenance.
- Agent guidance: skills, import sources, registries, invocation overrides, projections, model roles, and reviews.
Historical decisions live in docs/adr.
Checkout: One local working copy of a repo: a Source checkout, Session worktree, or Ordinary worktree.
Session: A named local workspace for one Root repo and its Dependency repos. Its name is the branch it expects in each participating worktree. Avoid: Branch, environment, sandbox
Source checkout: The original working copy in a Git clone, shared as the source for its linked worktrees. Avoid: Main worktree, root worktree
Session worktree: A linked Git worktree owned by one Session for one participating repo.
Ordinary worktree: A linked Git worktree that is not owned by a Session. Avoid: Non-Monke worktree, external worktree, unmanaged Session
Root repo: The source repo from which a Session was requested and whose dependency graph defines the Session scope. Avoid: Main repo, parent repo
Dependency repo: A repo reachable through the Root repo's declared dependencies, directly or through another dependency. It participates in the same Session. Avoid: External repo, child repo
Session state: The persisted record of a Session's members, worktree paths, port assignments, and lifecycle progress. Avoid: Cache, registry entry
Consumer repo: A repo whose developer or agent uses monke-tools as a local workflow tool.
Monke home: The machine-local directory where monke-tools keeps state, preferences, and owned Session worktrees shared across Consumer repos.
App: A named directory in a repo's configuration that can receive port mappings in its env file.
Managed env file: The env file inside an app whose mapped variables monke-tools rewrites.
Seed path: A configured repo-relative file or directory used to fill missing content during Worktree preparation.
Seed material: Files from the Source checkout used to fill missing content in a Session worktree during Worktree preparation.
Bootstrap command: A repo-scoped shell command run after env syncing during Repo materialization to prepare a Session worktree.
Path env: A root-level env variable that points from one repo to a dependency repo's path.
Port key: The canonical name for a repo-owned local port slot, always expressed as an env-style *_PORT identifier. Avoid: Env var, actual port
Local mapping: A rule that binds one app env variable to one repo-owned port key.
External mapping: A rule that binds one app env variable to a port key owned by a dependency repo.
Assigned port: The concrete numeric port chosen for a port key within one Session. Avoid: Port key, reserved port
Port reservation: The persisted block of port numbers from which a repo allocates Assigned ports to Sessions. Avoid: Port range, sticky ports
Baseline port: A port read from a Local mapping's env variable in a repo's Source checkout. New assignments for that repo avoid these ports.
Spawn: The operation that creates or completes a Session and its participating worktrees.
Materialize: The operation that schedules Worktree preparation and Repo materialization across the Session dependency graph. Avoid: Refresh, rebuild
Setup: Reconciliation of a checkout's project skill links and, where configured, its dependency paths and deterministic resource values. Avoid: Materialize, bootstrap
Chop: The explicit operation that removes one Chop target while preserving local branches. A Session target performs Session removal. An Ordinary-worktree target removes only that worktree. Avoid: Cleanup, delete branch, prune
Cleanup: The operation that inspects retained Sessions across all Root repos and removes Cleanup-eligible Sessions through Session removal. Avoid: Delete session, prune repos
Swing: The operation that selects a checkout of the invoking checkout's repo and requests shell navigation to it. An explicit PR target can create its Session worktree after the PR head is validated.
Diff: The operation that presents a requested Git comparison for one checkout through its selected Diff adapter.
- Each participating repo contributes one Session worktree and one entry in Session state. The same repo can participate in different Sessions.
- An App belongs to one repo and may have multiple Local mappings. A Port key has one owner across the session graph. Local mappings consume that repo's keys. External mappings consume dependency-owned keys.
- Each Assigned port belongs to one Port key in a Session. A repo's Port reservation survives Session removal for future allocations.
- Consumer repo describes tool usage. Root repo and Dependency repo describe membership in a particular Session.