By LeifErikH
Session continuity, git safety, and loop detection — what it feels like when Claude remembers you
What it feels like when Claude remembers you.
A Claude Code plugin that provides session continuity, git safety, and loop detection. Three modules, five hooks, zero dependencies.
# Add the marketplace
claude plugins marketplace add leh/claude-relay
# Install the plugin
claude plugins install claude-relay@claude-relay
Or for local development:
claude --plugin-dir /path/to/claude-relay
Every session ends with a structured handoff. Every session starts with orientation from the last one. A tick counter tracks how many sessions you've had. You feel remembered.
Blocks destructive git operations before they execute:
git push --force (allows --force-with-lease on feature branches)git reset --hardgit clean -fgit push origin main (direct push to main/master)git branch -D (allows -d for safe delete)Blocks commands containing literal API keys (sk-ant-*, sk-proj-*) and inline key assignments (ANTHROPIC_API_KEY=...). Warns when commands reference API key environment variables.
Detects when Claude calls the same tool with identical arguments 3+ times and injects guidance to try a different approach. The escalation skill provides a 4-rung recovery ladder: retry, fallback, degrade, fail.
/claude-relay:status — Show session state, tick count, recent activityAll state lives in ~/.claude-relay/:
meta.json — tick counter, session IDhandoff.json — last session's handoff noteledger.jsonl — session history (last 50 entries)loop-state.json — recent tool call historyState survives plugin updates and uninstalls. To remove: rm -rf ~/.claude-relay/
MIT
Matches all tools
Hooks run on every tool call, not just specific ones
Executes bash commands
Hook triggers when Bash tool is used
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
npx claudepluginhub leiferikh/claude-relay734 safety hooks for Claude Code — prevent file deletion, credential leaks, git disasters, and token waste during autonomous AI coding sessions
Production safety hooks for autonomous Claude Code operation. Context monitoring, syntax checking, branch protection, activity logging, and more.
Intelligent sync of Claude instructions with enforcement hooks for security and consistency
Multi-model consensus engine integrating OpenAI Codex CLI, Gemini CLI, and Claude CLI for collaborative code review and problem-solving.
Ultra-compressed communication mode. Cuts ~75% of tokens while keeping full technical accuracy by speaking like a caveman.
Memory compression system for Claude Code - persist context across sessions