Add docket install: make docket ambient in a repo with one command#13
Merged
Merged
Conversation
Compiles the loops into every agent's context file (CLAUDE.md, AGENTS.md, GEMINI.md, Cursor rules), wires a Claude Code PreToolUse hook into .claude/settings.json, and drops a .mcp.json for native tools — so any agent that touches the repo is under the warrant, with zero setup for anyone who clones. - Pass-through hook by default (routes by content, silent on uncovered work); --loop pins one loop, --strict asks on anything no loop covers - Merge-safe: existing settings.json hooks and .mcp.json servers preserved; refuses to clobber a settings.json it can't parse - Idempotent: re-running after adding a loop refreshes context without duplicating the hook - --no-hook / --no-mcp for context-only, --targets to narrow the context files 9 install tests; 118 total green. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Uc3rGARtDBoXkqMFgppaP4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Answers "how do I install docket so it runs whenever an agent touches the repo?" — one command sets up both layers and commits them with the code.
Two layers, set up together:
.claude/settings.jsonand a.mcp.jsonfor native tools.Posture: pass-through by default (routes by content, silent on work no loop covers);
--looppins one loop,--strictasks on anything uncovered.Safe by construction:
settings.jsonhooks and.mcp.jsonservers are preserved; refuses to clobber asettings.jsonit can't parse.--no-hook/--no-mcpfor context-only;--targets claude,agentsto narrow.Docs: README "Make it run for every agent in a repo" + docs-site quickstart & CLI reference. 9 new install tests; 118 total green.
🤖 Generated with Claude Code
Generated by Claude Code