Skip to content

Add branch-guard snippet + global-packages doc + remote-notify friction note#6

Merged
lsr-explore merged 1 commit into
mainfrom
07-10-update-docs-tools
Jul 10, 2026
Merged

Add branch-guard snippet + global-packages doc + remote-notify friction note#6
lsr-explore merged 1 commit into
mainfrom
07-10-update-docs-tools

Conversation

@lsr-explore

Copy link
Copy Markdown
Owner

Three additions to the library, all on the docs/tooling theme of this branch.

scripts/branch-guard/ (new snippet)

Local pre-commit + pre-push hooks that refuse commits/pushes to main. When a remote ruleset grants the repo owner a bypass, a push made with the owner's credentials (including an AI session acting as them) sails through server-side — so a local hook is the real guard. README covers Husky and plain core.hooksPath install, and the --no-verify deny-list pairing that turns the speed-bump into a hard lock for an assistant while leaving the owner bypass intact. Pairs with the existing secret-guard.

docs/global-packages.md (new doc)

Global npm CLIs kept around as occasional sanity checks: ccusage, devlove, devrage. Includes why /usage can't aggregate token usage across git worktrees — it's computed from local session history for the current directory, and each worktree is its own ~/.claude/projects/<path>/ (and wt … -c launches a fresh claude per worktree) — whereas ccusage sums across every project directory.

docs/ai-collaboration.md (friction entry)

New Open entry: over remote-control//loop, a question buried in a prose summary doesn't fire a notification, because pings are triggered by action-required events (permission prompts / AskUserQuestion), not free text. Handles noted: a Stop hook that pings on every turn-end, and instructing Claude to ask structurally.

Maps

README.md layout and docs/INDEX.md updated to register the new snippet and doc.

🤖 Generated with Claude Code

…tion note

- scripts/branch-guard: local pre-commit + pre-push hooks that refuse
  commits/pushes to main — the real guard when a remote ruleset lets the
  repo owner (and thus an AI session on their credentials) bypass it.
  README documents Husky and plain core.hooksPath install plus the
  deny-list pairing that makes it a hard lock for an assistant.
- docs/global-packages.md: global npm CLIs used as occasional sanity
  checks (ccusage, devlove, devrage), with a note on why /usage can't
  aggregate token usage across git worktrees and ccusage can.
- docs/ai-collaboration.md: friction entry for questions buried in a
  summary not firing a notification over remote-control/loop, with a
  Stop-hook and AskUserQuestion handle.
- README.md + docs/INDEX.md: register the new snippet and doc.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SKEr4FwR8c3qz2WRDqgLHu
@lsr-explore
lsr-explore merged commit 6e00ce3 into main Jul 10, 2026
2 checks passed
@lsr-explore
lsr-explore deleted the 07-10-update-docs-tools branch July 10, 2026 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant