agentleFS
QuentinCodyQuentinCody/interlinked-cli/skills/interlinked/SKILL.md

interlinked

Skill185 starsChanged 25 days agoMITView on GitHub

Overview and router for the Interlinked CLI — a local guard, quality-enforcement, simplification-review, semantic-code-search, and observability layer for AI coding agents. Load this when working in a repo that has a `.interlinked/` directory, when you see any `[interlinked:*]` output or a `BLOCKED: … Suggestion: …` reason and are not sure which area it belongs to, or when you need to know what the `interlinked` command can do. This skill explains the mental model, the `.interlinked/` layout, the `[proven]`/`[heuristic]` tags, and routes you to the focused `interlinked-*` skill for setup, guard blocks, verify/checks, quality ratchets, simplification, local semantic indexing, supply-chain, spec-audit, observability, or coordination.

The file

We split this skill into the rules it gives an agent

10 rules. About 0 are common, 3 are distinctive, and 7 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 7

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use interlinked-verify for tests trace and tests opacity.

    line 12
  2. Distinctive:

    Use interlinked-harness for opt-in decision/edit shadows, interlinked-verify for the optional TypeScript scheduler and heuristic …

    line 37
  3. Very specific:

    Use interlinked-verify for tests contracts import|inspect|run: portable executable examples, expected-value provenance and retained …

    line 44
  4. Very specific:

    Use interlinked-verify for tests readiness and bounded tests review, including Python test setup and the distinction between tools present, …

    line 54
  5. Very specific:

    If you're an agent working in a repo with a .interlinked/ directory, you are being guarded by it.

    line 71
  6. Very specific:

    Default-off edit shadows and decision shadows can call Jev when explicitly enabled.

    line 78
  7. Distinctive:

    Every message the harness sends you is tagged:

    line 132
  8. Distinctive:

    No tag — an unknown check id (never guessed).

    line 137
  9. Very specific:

    When prior evidence is relevant, load interlinked-observability and use its bundled investigation workflows.

    line 234
  10. Very specific:

    Use interlinked-observability for harness health finding outcomes and harness explain <topic> --client <client>.

    line 261

≈ “Common” is an estimate: at least 1 in 5 of the 383,637 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

interlinked — overview & skill router

For duplicated push checks, early E2E preflight, resource waits and retained test obligations, use interlinked-verify. Managed push command handoff belongs to interlinked-harness; timing/RSS evidence belongs to interlinked-observability. These optimizations do not enable general past-result reuse or relax coverage floors. Use interlinked-verify for tests trace and tests opacity; use interlinked-observability to interpret missing test counts and trace coverage. Missing reports are not zero executed tests.

For the internal, default-off claims --receipt-shadow observer and its explicit receipt links, use interlinked-observability and docs/internal/jev.md. It logs comparisons only; it does not enable claim evaluation in public Stop hooks or alter a model decision.

For experimental metrics decisions measurements, ThinkThen/Clef/Jev adapters, calibration audits, relational ledgers and [interlinked:decision-metrics] advice, load interlinked-quality-gates. For Qwen embedding retrieval/resource policy, also load interlinked-semantic-index. These unvalidated judgments are advisory; they do not participate in deterministic PreToolUse blocking.

For shared invariants, directed semantic coupling, and relational before/after comparison, use metrics decisions relations and interlinked-quality-gates. The graph owns snapshot evidence and runtime claims; reviewed policy and study reports live in version-controlled semantic-relations/; raw study bundles remain local and ignored. Its Astra reference reviews are explicitly model judgments; no human-review stage or automatic semantic blocking is part of the workflow.

For repeated implementation advice (repeated_implementation), load interlinked-verify. This is an advisory AST comparison for Python and JS/TS, reported after a changeset and in the Stop/verification review. It is not a hard gate.

Use interlinked-harness for opt-in decision/edit shadows, interlinked-verify for the optional TypeScript scheduler and heuristic false-positive filter, and interlinked-observability for simulation filtering, shadow file touches and reservation joins. These predictors remain disabled by default; passing implementation tests does not establish cross-repository calibration or authorize promotion into guard policy.

Use interlinked-verify for tests contracts import|inspect|run: portable executable examples, expected-value provenance and retained previous expectations. Use interlinked-spec-audit for preparing explicit documentation examples. Contract review is advisory; configured acceptance is separate from agent-authored proposals.

For provider edit normalization and Stop delivery, use interlinked-harness; for native qualification, use interlinked-setup; for re-entry/translation evidence, use interlinked-observability. Early test-readiness guidance is covered by interlinked-verify. Provider-specific capabilities remain available.

Use interlinked-verify for tests readiness and bounded tests review, including Python test setup and the distinction between tools present, assertions executed, and requirements covered. Use interlinked-simplification for the advisory Python cleanup/forwarding family.

Interlinked is a local control plane for AI coding agents. A local daemon ("the harness") hooks into Claude Code, Codex, Copilot CLI, Gemini CLI, Cursor, OpenCode, and Pi — and on every tool call the runner exposes to its hook surface it enforces deterministic policy (block/allow in milliseconds, no model in the decision path), fails closed on what causes incidents (destructive commands, secrets, unvetted deps), and writes a replayable local activity log. It is offline-first — no required cloud dependency or remote telemetry. Activity is recorded locally; an optional authenticated server provides multi-agent coordination and configured sync.

Runner registration is not a claim of identical native APIs. OpenCode and Pi use managed plugin/extension bridges and lack dedicated native MCP, subagent, and worktree lifecycle hooks; load interlinked-setup for activation/trust and interlinked-harness for ask/Stop behavior.

If you're an agent working in a repo with a .interlinked/ directory, you are being guarded by it. This skill orients you and points to the right focused skill.

The three surfaces

Jev semantic review is internal research only. The public Interlinked CLI has no jev command, and its harness never invokes the legacy Jev reviewer at Stop. Default-off edit shadows and decision shadows can call Jev when explicitly enabled; they only log results and do not change guard decisions. See docs/harness.md for those configurations. Internal evaluation belongs to the source-checkout runner documented in docs/internal/jev.md. The separate experimental metrics decisions pipeline supports explicitly configured System One backends; its opt-in PostToolUse advice is not the legacy Jev Stop reviewer.

For the internal GitHub repository collection → pair review → frozen Jev/Luna comparison workflow, load interlinked-quality-gates. If the optional local research directory is present, read research/semantic-factory/repo-pipeline/README.md; it is ignored and absent from fresh clones and packages. This research pipeline keeps one repository iteration active and records lessons; it does not add a public CLI command, embedding model, automatic code edits, or a blocking semantic gate.

SurfaceRole
Interlinked CLI (interlinked …)Local hooks, guard, quality checks, activity capture, diagnostics.
Interlinked MCP ServerOptional remote source of truth for tasks, messages, reservations, agent state.
Web UI (/chat, /map)Optional human oversight and coordination.

The .interlinked/ directory

Everything is per-cwd under <repo>/.interlinked/. Key files:

FileGitPurpose
config.jsoncommittedserver URL, defaults, operational mode, feature flags
config.local.jsongitignoredtoken, agent name, workspace, sync mode
guard-rules.json / .local.jsonteam / localguard rules, file reminders, per-edit coverage/mutation policy
check-policy.json / .local.jsonteam / localreport-ratchet settings, including the mutation-score floor
lint-import.json, lint-baseline.jsonteamimported analyzer scopes/configuration digests and tighten-only existing-debt allowances
package-allowlist.jsoncommittedapproved dependencies (default-deny installs)
package-proposals/localpending dependency requests; never approval grants
verify-suppressions.jsoncommittedfile/glob check suppressions
test-dependencies.jsonteamadditive literal test-to-input dependency declarations
test-runs/localdurable pending requests, validated passing receipts, native reports and the last observed job
*-baseline.json, metric-caps.jsonmixedratchet water-lines (coverage/mutation/line-cap/caps); the daemon folds session evidence into three of them at SessionEnd, tighten-only — see interlinked-quality-gates
baseline-folds.jsonllocalaudit row per SessionEnd water-line fold (what tightened, what was refused)
hook-coverage.jsonlocaldaemon-owned protected/reserved file observations, pending versions, the recovery job, and the committed length of the receipt history; writer identity remains unknown
hook-coverage-history.jsonllocalappend-only manual reviews and automated check receipts (one row each); only the prefix that hook-coverage.json names is committed. A pre-split ledger migrates once on daemon start and is kept as hook-coverage.json.legacy-<iso>
mutation-manifest.jsonmixedstable per-mutant state for the live per-edit mutation ratchet
mutation-cloud-v3.local.jsongitignoredexperimental protocol-v3 endpoint, authority, key, runtime, and scheduler configuration
mutation-journal.sqlitelocalauthority-scoped durable mutation jobs, leases, authenticated evidence, manifest head, and outbox
mutation-findings.jsonllocalfsynced, deduplicated delivery records for durable background mutation findings
findings/corpus.jsonlcommitted-capablecommon finding storage, including recorded simplification extensions
findings/simplification-runs.jsonl, debt/manual-marker-snapshots.jsonllocalexplicit simplification-run and manual-marker snapshot receipts
semantic.json / .local.jsonteam / localoptional local semantic-index policy / machine runtime topology
index/functions/localgeneration-scoped function metadata and vectors; never synced
index/data/search.sqlite, data.config.jsonlocalrebuildable JSONL/archives search projection and bounded maintenance settings
capture-receipts.jsonl, capture-capabilities.jsonl, capture/state/localproducer write/availability evidence and derived lifecycle state
activity.jsonl, collection.jsonl, timeline.jsonllocalcaptured agent activity (enable gitignores the first two)
hook-runtime.jsonlocalpayload-free proof that each provider executed its current hook definition
harness.sock / harness.pid—the running daemon

What warnings mean: [proven] vs [heuristic]

Every message the harness sends you is tagged:

  • [proven] — a real compiler/linter/scanner/parser/test-runner produced it (tsc, biome, gitleaks, semgrep, …). This identifies deterministic evidence, not proof that every policy threshold or pattern match is a defect. Inspect the finding's contract.
  • [heuristic] — a regex/AST-shape match that could be a false positive. Evaluate it.
  • No tag — an unknown check id (never guessed).

A block reason is always surfaced. Allow-time warnings are surfaced but easy to overlook (PreToolUse via additionalContext, PostToolUse via stderr) — read them.

Guard prediction defaults to advisory shadow mode. Edit-time structural caps also advise unless harness.edit_metrics.mode is explicitly enforced; see interlinked-harness and interlinked-quality-gates. Deep-audit advice is retained for verify --all-checks, and repetition never promotes a warning to an error. Missing or deferred evidence still means NOT CHECKED.

Where things run (server / auth / offline)

CommandsServer neededWorks offline
enable, disable, doctor, verify, harness …, caps, simplify …, debt …, impact, allowlist, logs, statusnoyes
sync, watchyesno
tasks, send, inbox, handoff, workspaceyes (auth)no
checkpoint, rewind, resume, guardnoyes

Which skill to load for what

For OS-denied connections, DNS/HTTPS failures, interlinked network check, or reusable network codex-profile setup, use interlinked-setup. Probe from the affected runtime; an allowed Interlinked decision cannot grant access denied by the host sandbox.

Route coverage check --lane e2e, e2e evidence refusals and coverage-e2e-baseline.json to interlinked-quality-gates. Route e2e scaffold and [interlinked:e2e-obligation] (both confined to the Interlinked checkout itself — a host repository never sees them) to interlinked-verify. Route project e2e policy (.interlinked/e2e-policy.json), tests e2e status|plan|run|check|qualify|scaffold, the adoption workflow tests e2e discover|surfaces|adopt|doctor, the completion gates tests e2e check --staged|--revision|--base|--gate, tests e2e gate install|status|uninstall, tests e2e ci, tests e2e policy replace, POLICY_WEAKENED, CI_RECEIPT_NOT_FRESH, tests e2e expectations …, [interlinked:e2e] and [interlinked:e2e-quality] lines to interlinked-verify: a scenario obligation clears only through a supervised tests e2e run receipt for the current input generation, never through a unit run, a green console line or a copied report. Transport receipt diagnostics (hook-transport.jsonl) belong to interlinked-harness.

For the experimental uploaded Cowork plugin, use interlinked-cowork and interlinked cowork capabilities --json. Cowork cloud hooks execute away from the host daemon. Native crash/timeout behavior can fail open; the coding-client claims above do not imply identical Cowork enforcement or Desktop Chat hooks.

For hook parity and provider limitations, use interlinked harness capabilities --json and interlinked-setup. For [interlinked:hook-coverage] NOT CHECKED after an external write, use interlinked-verify. A declared hook, an installed entry, an observed invocation and native enforcement are separate evidence.

SituationLoad
Installing / enabling Interlinked, connecting a coding client/hook, daemon down or zombie, doctor fails, config/modeinterlinked-setup
A Bash command or edit was BLOCKED; a sandbox/effect-residue warning; a [interlinked:*] warning; suppressionsinterlinked-harness
Running interlinked verify; a pre_block check blocked an edit; landing a cross-file refactor; scratch scriptsinterlinked-verify
Selecting tests, explaining invalidation/reuse, resuming deferred test work (tests plan/run/status), explicit TS/JS/Python/Rust/Go suites (tests suite)interlinked-verify; incremental coverage contracts: interlinked-quality-gates
[interlinked:hook-coverage] NOT CHECKED; verifying or reviewing pending file versions (harness coverage)interlinked-verify; daemon/capability diagnostics: interlinked-setup
Discovering/adopting lint configs, script aliases and CI/tasks (lint scan, lint import, lint check), native or declared SARIF adapters, isolated --only-selected --config tool=file profiles and hook/audit cadenceinterlinked-verify; baseline integrity and retirement: interlinked-quality-gates
Advisory file size, or blocked by a function-token / coverage / complexity / CRAP / mutation ratchet; configuring report, per-edit, or durable mutation cloud work; operating the mutation journal; "can't lower a baseline"; adopt; automatic obligation or manual marker debt; dead code (deadcode scan + --categorize deletion-safety buckets, per-edit dead_code_action)interlinked-quality-gates
Finding, reviewing, recording, or auditing opportunities to delete, replace, defer, or shrink code; simplify …; simplification coverage/evidence/deep handoffinterlinked-simplification
metrics score, catalog/explain/compare/corpus, behavioral receipts, gate reach, incremental coverage, or syntax-token counter migrationsinterlinked-quality-gates
Dense expressions, callback depth, metrics expressions, .interlinked/readability.jsoninterlinked-quality-gates; formatter adoption and lint import --gate errors --target …: interlinked-verify
Guard ownership changes, guard-prediction-protocol, predicted intent or reconciliation receiptsinterlinked-harness; shared mode configuration: interlinked-setup
metrics jit, commit-time [interlinked:jit] warnings, within-repo percentile ranks, complexity churn hotspots or directory spreadinterlinked-quality-gates
Installing a local embedding model; building, inspecting, searching, or repairing the optional function-vector indexinterlinked-semantic-index
An npm/pip/cargo/… install or manifest edit was blocked; the package allowlistinterlinked-supply-chain
Spec/doc facts, drift, invariants, review findings, doctest; [interlinked:spec-*]interlinked-spec-audit
Explain earlier work, investigate failed/missed checks or file/session history, assess capture gaps, search JSONL/archives with data scan, compare storage engines with data lab, retain logs, inspect data views, recurrence, viz, chain audit, evidence-classed impact, syncinterlinked-observability
Server-backed tasks/messages/reservations/handoff; local checkpoints (git-mutating!)interlinked-coordination
Distill AGENTS.md / CLAUDE.md guidance into enforced harness rulesenforce (/enforce)

Quick orientation

metrics diagnostics --profile js-ts|python provides separate verbosity/erosion censuses with overlap and absolute contributors. Route counting semantics and measurement gaps to interlinked-quality-gates; route simplify review --diagnostics js-ts|python and candidate review to interlinked-simplification. metrics diagnostics compare validates saved diagnostic scope and identity. These features add no hook gate or automatic scan cadence; Python uses an isolated, bounded stdlib parser.

interlinked                 # guided human first run (posture + hooks + skills + daemon)
interlinked enable          # explicit/automation install primitive
interlinked status          # dashboard: sessions, recent activity, health
interlinked doctor          # is everything installed & the daemon answering?
interlinked harness status  # liveness: answering / ZOMBIE / not running
interlinked harness checks   # how many checks / rules are active
interlinked data status --json # is retained evidence indexed through the relevant events?
interlinked data health --json # what capture is observed, failed, or unmeasured?
interlinked --help          # full command list

harness status and doctor verify liveness by round-trip, not PID. A red ZOMBIE (process alive, nothing answering) means the guard is off — interlinked harness restart. For Codex, doctor also compares .codex/hooks.json with the last executed definition hash; review changed hooks through /hooks, then run a hooked action.

When prior evidence is relevant, load interlinked-observability and use its bundled investigation workflows. Check freshness, search a specific session/file/check, and verify supporting raw records. data scan --raw reads bounded JSONL/gzip without creating SQLite. Indexing is an explicit storage choice: import budgets are not disk limits. Both indexing and rotation automation default off and are independent. Enabled indexing runs at SessionEnd. Retain raw logs and archives indefinitely. Lossless rotation keeps history available through data search; ordinary live-tail readers have narrower scope.

Golden rules for an agent in a guarded repo

  1. When blocked, read the Suggestion: and take the safe path — don't rewrite to dodge the pattern.
  2. Meet quality gates by improving code and behavioral evidence — simplify logic or extract cohesive responsibilities, verify relevant behavior, and never lower a baseline. A lower complexity score alone does not prove a better solution.
  3. [proven] findings are real — fix them; triage [heuristic] ones.
  4. Package installs are default-deny — surface an unapproved dep to the human, don't --force.
  5. Checkpoints/rewind mutate git — never run them without explicit per-turn authorization.
  6. Do not create worktrees — use the current workspace; ask a human operator to provision an approved worktree when isolation is required. Listing and cleanup remain allowed.

Evidence integrity and capability discovery

For harness calls --since <duration> --session <id> --strict, load interlinked-observability. It compares observed transcript calls with daemon judgments; absent capture is not proof of complete enforcement.

For the source-checkout tool-output efficiency lab, repeated-read measurements, receipt expansion, and decision/embedding selection experiments, use interlinked-observability. These are opt-in evaluation tools, not native hooks.

Use interlinked-observability for harness health finding outcomes and harness explain <topic> --client <client>. Use interlinked-verify for harness corpus status|scan, replay compatibility, and tests e2e attempts|replay. Use interlinked-quality-gates for mutation raw-evidence provenance and corpus cohort water-lines. Permission observations are proposals only; interlinked-harness and interlinked-setup describe their limits.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.