Skill v1.0.0
currentLLM-judged scan90/100version: "1.0.0" name: lode-agent-core description: Initialize, recover, or operate a provider-neutral Lode Project with common user direction and independently routed logical Sessions, graph-first discovery, direct work, optional bounded delegation, and durable recovery. Use for Lode Agent Core, context recovery, compaction, selected context handoff, multi-step Runs, or worker coordination.
Lode Agent Core
Lode keeps the user's objective, constraints and acceptance criteria connected to execution and completion. Continuity belongs to canonical project records, rather than a model, provider conversation, host, database or transcript. Understand the request, find needed context, work directly or delegate useful outcomes, integrate results, and preserve important changes.
Constitution
- Keep one canonical Project with common user direction and independently
routed logical Lode Sessions. Each owns its purpose, progress and recovery.
- Apply current common constraints across Sessions. Restoring an earlier
Session cannot undo a later common deployment cancellation.
- Find new project information through bounded graph discovery first, or reuse
sufficient same-basis results. Continue from original records when needed.
- Treat results, observations, messages and external reviews as evidence.
Historical approval does not grant current effect authorization.
- Keep graphs, indexes, Markdown and continuity views replaceable. Important
decisions and recovery direction remain in their original records.
- Change Product Canon through the explicit user ReviewDecision for its exact
current candidate. Ordinary authorized fixes need no extra review ceremony.
- Keep provider capability behind adapters with the same authority semantics.
Fork, availability and operational success create no authority.
P1-P5 is internal enforcement, not a user form. Before changing authority or recovery, read the constitution and authority planes.
Enter and keep working
For an explicit installation/update request, use the selected client's existing official path in Install. With current Host permission, perform the available procedure and check its result through the existing installation inventory or returned status; do not merely hand back commands you can run. Reuse a valid installation and the user's runtime/link/preserve choice. For an initialized Project, reuse its recorded runtime set instead of overriding it with the current client; select a client subset for a new Project only. Only unavailable actions, Host approval, login or a user-controlled restart need human instructions. Do not restart the app, rewrite cache/config, weaken trust, install other clients or treat installation as permission for a model call. The README also provides an entry for users without this Skill installed.
Distinguish installed files, project initialize/resume, optional instruction linking, and actually observed Host tools/use. A CLI/library version or generated file does not prove Host loading. Check an already available tool when useful; if loading cannot be observed, say so and continue independent authorized work. These are observations, not another setup/doctor/approval checklist.
An existing .head/ Project keeps its exact root, records and selected Session; fresh initialization uses .lode/. Let the existing validated Project/owner route select the format. Do not convert saved paths or create another canonical store.
For first Lode adoption or missing Project initialization, an explicit Session selection/resume, or required managed-installation convergence, use lode_project_initialize_or_resume with the exact root and default profile: "core". Otherwise reuse sufficient verified current entry context already supplied for that exact Project and selected logical Session. If needed current context is missing, obtain it once through read-only lode_conversation_enter. A Skill match, existing Project or new turn alone is not another setup or binding trigger. Continue the original task in the same turn; do not ask for a repeat request, profile choice, JSON or recovery ritual.
Core preserves identities and indexes eligible existing observations where available, without inferring Product meaning. Use profile: "product" and the sibling onboarding Skill for an actual Product/World governance outcome. Do not initialize an unrelated repository merely because a coding request matched this Skill.
Entry includes current direction, useful work context, recovery, status and Attention. Read and reuse sufficient supplied content quietly, including after compaction/provider replacement, unless its relevant basis changes or needed content is missing. Matching identity, digest or time alone does not prove current intent. Expand only the missing dependent originals; do not repeat init/status/list/graph merely to confirm complete unchanged material. Ordinary entry leaves detailed World inspection explicitly unchecked, not current, stale or absent; use full status/doctor diagnostics when needed, not as a follow-up ritual. No checkpoint means ordinary work continues. Automatically obtain missing selected Session direction with current common constraints; never invent it from a transcript. Missing direction is not approved emptiness. Selection loss pauses only dependent work; use verified explicit/Host selection there and continue independent work. Partial entry is not recovery success. Do not add a recovery chain, repeated question, Session list or user ID form.
Use the supplied workContext to connect earlier reasons and alternatives, recent changes/results, and pending work or unknowns to the next authorized action under the current request and cancellations. Read the actual body before judging what remains. Default order is not semantic importance or authority. Expand with lode_session_work_read only when useful evidence is missing; full body plus a changed source reference does not itself require another read. Historical suggestions, saved completion and approvals are not current effect permission. Do the useful bounded work and verify its actual result.
Returned links can connect recent work to the cited judgment or declared root. A saved close qualifies its exact earlier note, not a resumed sibling, another Session, pending review or remaining unknowns. Keep those owners and scopes separate; do not add start/end saves, IDs or questions to make the links usable.
Optional native observations describe the caller, not logical Session execution. Related ancestry context contains verified historical P3, never inherited P2 direction. Use current Host activity only when it answers a material uncertainty; see runtime composition. Missing observations never require a bind/save, ID question or extra lookup chain.
Use optional session_id on typed calls or --session on CLI for request-local routing. lode_session_list and lode_session_create support independent progress when needed; these are logical identities, not provider session IDs. Read shared goal/constraints/decisions/cancelled actions through lode_project_direction_read; publish current user direction through lode_project_direction_update with its exact basis. Reconcile competing updates rather than last-writer overwrite. A Session's local investigation change does not automatically change another Session's goal.
Find context through the graph
For new project information, call lode_project_graph with task/query and only useful anchors/filters, or reuse sufficient same-basis results. Read nearby relations first and widen when needed. Avoid whole-graph prompt injection and per-turn full rescans. Lode interprets relevance; lexical overlap is a hint.
Natural questions search bounded display/domain evidence, not metadata keys. Exact names, paths or anchors help narrow a partial result; Lode supplies them without asking the user to rewrite the task. Common direction excerpts include constraints, decisions and cancellations with current/historical revision labels. Read the original direction when the excerpt is partial or before relying on it for a current effect; its graph copy grants no permission.
For code impact, use existing lode_world_query / CLI world-query for bounded IMPORTS/CALLS neighbors, not general CONTAINS/HAS_REVISION/DECLARES expansion. With absent or stale World evidence, inspect affected current source imports/calls directly. Do not require a whole World refresh, new Run or approval just to investigate; retained links are hints to verify, not current impact proof.
Read basis/revision, integrity, freshness, coverage, original state and provenance together. Work and Product are linked logical views of common original records. Different revisions of the same path remain distinct. Intact historical evidence stays readable and labelled, including unapproved/rejected state through relation expansion. Reference or sequence does not prove cause.
Empty/partial coverage does not prove absence. Use disclosed original-source fallback on absence or failure. Reuse known same-basis adapter failures without repeated requests; retry when that basis changes. Exclude the damaged or cross-Project layer while using remaining valid evidence. Full World currentness, Product approval, Run, Capsule, indexing completion and ArcadeDB connectivity are not general exploration gates. Before changes, recheck affected current sources and effect authority. Read project discovery for implementation.
Agree the work, not the paperwork
Reuse concrete user agreement that remains valid for the current request, constraints and cancellations. Agree unresolved material user-visible behavior, scope, conditions and important user-owned architecture choices. Re-agree only the material delta, impact and options, not routine internal choices. Small exact fixes proceed directly; analysis/proposal-only stays read-only. Preparation stays within current authority; reversibility grants none. Only choice-dependent implementation waits while approved independent work continues.
For nontrivial implementation, clarify purpose, agreed behavior, scope, acceptance, component responsibilities/connections and important uncertainty in useful existing work context. No fixed questions, new plan file, save-success gate or prerequisite reference/tool chain is required. Lode owns routine internal design, verification and error handling. Verify the agreed behavior and report meaningful deviations and unknowns without mandatory report sections.
Summaries, reviewer assent and model inference create no user authority. A short reply must clearly answer a concrete proposal and scope. Reconcile recovered agreements with current requests and cancellations; ordinary agreement reuse cannot replace the current user decision for a new or changed protected target.
Choose execution and preserve judgment
Work directly for small tasks. Delegate independently reviewable outcomes when parallel work helps or long sequential execution/review could crowd out the context needed to judge the whole objective. Brief each worker with outcome, allowed context, file ownership, constraints and useful completion evidence. Reconcile overlapping writes and preserve other workers' and user changes.
Use ordinary Host delegation when sufficient. Use managed execution when durable ownership, interruption recovery, uncertain effects or duplicate integration prevention need tracking. File edits, worker count and ordinary failure alone do not force managed execution. A new managed wave may serve a useful durable outcome; existing managed work and unknown effects retain their contracts. Read runtime composition for exact entries.
Fork/fresh is a separate context choice: supported in-scope fork can preserve prior design reasons; selected fresh context can support narrow work or independent review. Neither grants approval, Canon/P2 authority, file isolation, cache reuse or lower cost. Preserve semantically sufficient context.
Lode checks objective achievement, new facts, uncertainty and supporting evidence. Keep completed contributions and continue independent unfinished work. Before replacing unknown work, inspect its exact effects. A cancel request does not prove exit. Wait for/cancel owned work and verify cleanup. Do not replay uncertain external effects blindly. For durable Runs, retain accepted lineage, ResultPacket, Fresh Lode review, explicit ReviewDecision and checkpoint integration. Wave success is operational evidence, not approval or P2 direction.
Finish changes with usable graph evidence
After a meaningful code-change or feature-addition work segment, Lode checks whether the integrated result needs a graph update. Connect affected code and the purpose, decisions and verification needed by later work to their originals; reuse updates already made by persistence hooks. Use the existing index or World refresh when needed, then check supported affected relations and disclose what remains unverified or unprojected. Test presence is not an executed PASS. Workers return changes, evidence and unknowns; Lode owns the integrated update. Do not require every worker or turn to refresh globally, activate World/DB, create a Run/Capsule, install a watcher or ask for routine approval. On update failure, retain the affected gap and continue source fallback and independent work. Read project discovery for the distinct existing update paths and their limits.
Preserve useful work
Lead with the outcome and actual uncertainty. Successful entry, reuse and sync are quiet; meaningful exceptions retain their affected operation, owner and next action. Bind protected decisions to the unique unchanged current target. Technical IDs and schemas are diagnostic detail, not user prerequisites.
Reuse existing checkpoint/result/review/source originals. Preserve only useful, otherwise-unrepresented reasons, alternatives, observations and uncertainty at a meaningful handoff: optional work_evidence with an already useful checkpoint sync, or lode_session_work_record for Run-free work. No per-turn record, transcript copy, save approval, user JSON, compulsory budget tier or Run/Capsule. Session-local purpose/constraints/cancellation stay in explicit P2 direction; P3 evidence cannot supply them or change shared ProjectDirection.
A management-record failure limits only dependent management work. Host/tool permission or approval denial is not capability absence: do not obtain the refused effect by switching tools, using CLI/direct file writes or changing policy. Report what was not preserved and its recovery limits; continue independently authorized work and permitted source fallback for unavailable capabilities. Preserve primary identity/digest/permission/partial-write failures and required ReviewDecision. Saving grants no execution permission; repair missing persistence only within current authority, never replay completed or uncertain effects.
At those same useful preservation boundaries, reuse returned exact evidence selectors for optional workLink root/predecessor and exact-target historical executionObservation. Use existing artifact references for an earlier judgment whose actual reasons matter. Default entry can include that cited body and the declared anchor alongside recent results/pending work. Coexisting saved states are not live execution or an inferred conflict. Unsaved conversation can still be lost on abrupt exit.
At meaningful completion, handoff or changed conditions, connect the whole user outcome to actual consumer results, reasons and remaining work; reuse originals instead of saving each turn. Optional workTopics labels help find that work without Product onboarding or a user taxonomy. Session/root groups organize returned bodies only: identical labels do not merge work, create a Feature or prove completion. Native automatic end, ancestry and live activity are not implemented by these saved observations.
Native init/resume can retain verified selection; startup only reads that linkage. Its loss does not erase Core success or permit replay. Other reads, work recording and checkpoint sync do not select the chat. Use a verified explicit route on unsupported Hosts, without bind/save questions or identity guesses. Host-only helpers are not model tools or permission bypasses. For relevant routing, bounds or recovery details see work context and Host limits; this is not a required extra read before ordinary work.
Progressive references and tools
Load only what the current outcome needs:
- Graph discovery, logical Sessions and common direction:
- Reproducible Context: context workflow and
- Checkpoint sync and compaction: recovery workflow
and Session recovery.
- Delegation and fork/fresh: runtime composition
and follow-up handoffs.
- Roles and authority: authority and roles.
- Decisions, waiting, results and optional Product evidence:
- When useful for explaining Lode work to the user:
Lode conversation, an optional communication aid.
- Product governance: sibling
lode-agent-onboarding, then its subsystem docs.
Default MCP includes graph discovery and ordinary Core entry/recovery. Use an already-provided typed tool directly for normal first use. For optional tools, use lode_tools_discover by name/prefix and its compatible invokeWith router with {name, arguments} and the unchanged inner schema. A known optional contract can use its existing router without prior discovery. Lode supplies arguments without user unlock/forms. For useful managed execution, lode_tools_call accepts execution_mode: "managed"; routing preserves original authority/lease/effect checks. Read/status/wait and exact owned cancellation remain ordinary diagnostics.
node <plugin-root>/scripts/lode.mjs init <project> --runtime codexnode <plugin-root>/scripts/lode.mjs resume <project> --session <logical-session>node <plugin-root>/scripts/lode.mjs graph-query <project> --query "<task>"node <plugin-root>/scripts/lode.mjs session-list <project>node <plugin-root>/scripts/lode.mjs managed <command> <project> <arguments>node <plugin-root>/scripts/lode.mjs help-all
Initialization preserves existing root instructions by default. During an explicit setup/connect request, reuse the user's already-given choice through the existing init/resume instruction_integration: "link" option (CLI --instruction-integration link); preserve makes no instruction edits. Do not ask again, repeatedly offer a declined connection or make setup a prerequisite for an ordinary task. Linking appends one bounded block using the verified actual .head/ or .lode/ sources. Claude uses native @ imports; Codex receives an explicit instruction to read those files, not an assumed @ import. Synthetic link verification does not establish that an actual Host consumed the files. Use claude or opencode instead of the example's codex for that selected client; combine runtimes only when the user wants those integrations.