godmode-host-sync
Skill6 starsChanged 3 months agoApache-2.0View on GitHub
Detect every installed AI CLI host, reconcile Godmode's interception manifests into each one's native format, and drift-repair the installed configuration with a shown diff before anything trusts interception. Use when installed manifests need reconciling or repairing after an install, an update, or reported drift. Not for explaining what an event or a mechanism does, and not for authorizing an unrelated protected operation.
In this repository22 other files it gives its agents.
- llms.txtllms.txt
- godmode-budgetSkill
- godmode-changelogSkill
- godmode-ciSkill
- godmode-codegraphSkill
- godmode-code-of-lawSkill
- godmode-continuitySkill
- godmode-evidenceSkill
- godmode-governanceSkill
- godmode-impact-gateSkill
- godmode-investigationSkill
- godmode-loop-wardenSkill
- godmode-memory-gardenerSkill
- godmode-repairSkill
- godmode-replicateSkill
- godmode-researchSkill
- godmode-second-lookSkill
- godmode-skill-evalSkill
- godmode-skill-forgeSkill
- godmodeSkill
- godmode-spec-lifecycleSkill
- godmode-triageSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 3 are distinctive, and 4 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.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
Every installed AI CLI host carries a live, correct hook manifest in its own native format, and any drift between what Godmode declares and …
- Very specific: line 69
Never wire or force-overwrite a host's hook file: preview it first with --dry-run and show that output before applying anything.
- Very specific: line 71
Never force past a file hooks wire reports as INVALID: fix or remove it by hand instead, since --force cannot get past that shape.
- Distinctive: line 73
Never treat a passing probe as proof of live wiring: only a genuine protected command inside that host's own session proves it.
- Distinctive: line 75
Never edit a host's config file to route around a linked-worktree refusal: switch to the primary checkout the refusal names instead.
- Very specific: line 77
Never invent a host name; only the hosts hooks status/hooks wire already declare are in scope for reconciliation.
- Distinctive: line 88
If an assertion cannot be proved, report the unmet assertion and the next safe action rather than the outcome it was meant to prove.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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.
Files
Godmode Host Sync
Outcome
Every installed AI CLI host carries a live, correct hook manifest in its own native format, and any drift between what Godmode declares and what a host actually has wired is shown as an explicit diff before it is repaired.
Use
- A host's wiring needs checking after an install, an update, or a reported miss.
- A newly detected host needs Godmode's manifests reconciled into its native hook format.
- A hook manifest looks stale, missing, or conflicting and the exact repair should be shown before it lands.
- A protected-operation probe needs to prove the hook mechanism still denies what it should.
Do Not Use
- Explaining what a single hook event does in isolation, with no wiring check involved.
- Previewing or authorizing an unrelated protected operation - that is
godmode-governance. - Diagnosing why a specific test fails - that is
godmode-investigation. - Proposing a brand-new skill because a workflow keeps recurring - that is
godmode-skill-forge.
Deterministic Execution Flow
- Read current wiring.
godmode hooks status- always exits 0; readwire_stateper host,host_registrationper host, andverdictfor the detected host. Add--matrixto report whether the host-capability tables have drifted from whatgodmode_reach/HOST_CAPABILITIESwould generate (exit 1 if so, exit 2 on the R-0 no-reference refusal) instead of one host's proof - pair it with--writeto actually regenerate the doc - or--gitto read the git-hook backstop instead of host wiring. - Preview reconciliation.
godmode hooks wire --all --dry-run, run from the primary checkout - it prints one[CREATE]/[UPDATE]/[OK]/[CONFLICT]/[INVALID]line per host and writes nothing.- Fallback: from a linked worktree,
--host codex(and--all, which wires codex too) refuses with"... refuses from a linked worktree; run it from the primary checkout"(exit 2) - switch to the primary checkout the refusal names, or wire a host without that restriction (for example--host opencode) to keep working from the worktree.
- Fallback: from a linked worktree,
- Apply only after reading the preview.
godmode hooks wire --all(drop--dry-run). A file that differs from what Godmode would write reportsCONFLICTand is left untouched unless--forceis given, and--forcestill refuses a malformed (INVALID) file rather than overwriting it - fix or remove that file by hand first. - Prove the mechanism, not just the file.
godmode hooks probe --host <host>sends a synthetic protected operation through the real hook and records whether it was denied. A probe that reportsstate: HARDproves this project's own hook script recognises and denies the operation end to end; it does not prove the host's own runtime calls that hook on a real tool call - only a genuine protected command inside that host's session, chronicled as a live refusal, proves wiring. - Roll up host health.
godmode doctor --host <host>for one host's presence, interpreter-on-PATH, archive-writable, and interception grade - fast and targeted. The un-scopedgodmode doctoralso runs but re-verifies the whole archive chain, so it is slower on a large one. - Stop on an unrecoverable shape. An
INVALIDfile, adoctor --hostissuesentry naming adocumented gap, areachfeature whosestatusisnoon the host that matters, or a probe whosestateis notHARDare each reported verbatim rather than forced past.
Must Not
- Never wire or force-overwrite a host's hook file: preview it first with
--dry-runand show that output before applying anything. - Never force past a file
hooks wirereports as INVALID: fix or remove it by hand instead, since--forcecannot get past that shape. - Never treat a passing probe as proof of live wiring: only a genuine protected command inside that host's own session proves it.
- Never edit a host's config file to route around a linked-worktree refusal: switch to the primary checkout the refusal names instead.
- Never invent a host name; only the hosts
hooks status/hooks wirealready declare are in scope for reconciliation.
Acceptance
hooks statusreports awire_statemap covering every declared host, and atierfor the host it is reading, so drift is visible before any repair is attempted.- A dry-run preview names exactly what an apply would create, update, or refuse - and writes nothing.
If an assertion cannot be proved, report the unmet assertion and the next safe action rather than the outcome it was meant to prove.
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
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.

