~ / rigs / Vernum-Projecten / cc-shift

Vernum-Projecten/cc-shift

Switches Claude Code between several Claude accounts on its own, before a usage limit is hit. Open windows follow without a restart. For macOS, Linux and Windows, written in Rust.

↗ GitHub ★ 0 Apache-2.0 updated 1mo ago project Claude Code
field: Developer tools workflow: Docs
stack: Rust
share on X
ARCHETYPE
Automator
Hooks on every lifecycle event: format, lint, notify, log.
CONTEXT TAX · EVERY TURN
~2.3k tokens
Moderate · median rig: 2.3k · breakdown
GUARDRAILS
3/5
Blocks destructive commands · Pre-tool screening hook · No YOLO mode · details
Quality 55/100 Guardrails v2

Copy this rig

# review before running: this installs third-party code
$ npx degit Vernum-Projecten/cc-shift/.claude ./rig-cc-shift  # inspect, then merge into .claude/

MCP servers are added to Claude Code at local scope; env vars are shown as YOUR_… placeholders — we never store values. Files are fetched with degit into a separate folder so you can review before merging.

$ npx degit Vernum-Projecten/cc-shift/.claude/skills/next-task .claude/skills/next-task
$ npx degit Vernum-Projecten/cc-shift/.claude/skills/phase-done .claude/skills/phase-done
$ npx degit Vernum-Projecten/cc-shift/.claude/skills/phase-status .claude/skills/phase-status
$ curl -fsSL --create-dirs -o .claude/agents/implementer.md https://raw.githubusercontent.com/Vernum-Projecten/cc-shift/main/.claude/agents/implementer.md

Merge into .claude/settings.json (project) or ~/.claude/settings.json (user). Hook commands reference scripts in the source repo — copy those too.

{
  "permissions": {
    "deny": [
      "Bash(sudo:*)",
      "Bash(gh pr merge *--admin*)",
      "Bash(gh pr merge *-R *)",
      "Bash(gh pr merge *--repo*)"
    ]
  },
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Bash",
        "hooks": [
          {
            "type": "command",
            "command": "\"$CLAUDE_PROJECT_DIR/.claude/hooks/no_attribution_guard.sh\""
          },
          {
            "type": "command",
            "command": "\"$CLAUDE_PROJECT_DIR/.claude/hooks/block_dangerous.sh\""
          }
        ]
      }
    ]
  }
}

Skills (3)

Subagents (1)

implementer
model: opus
>

Hooks (4)

eventmatcherruns
PreToolUseBash"$CLAUDE_PROJECT_DIR/.claude/hooks/no_attribution_guard.sh"
PreToolUseBash"$CLAUDE_PROJECT_DIR/.claude/hooks/block_dangerous.sh"
PostToolUseWrite|Edit"$CLAUDE_PROJECT_DIR/.claude/hooks/rust_fmt_clippy.sh"
SessionStart*"$CLAUDE_PROJECT_DIR/.claude/hooks/session_start_issues.sh"

Permissions

deny (4)
Bash(sudo:*)
Bash(gh pr merge *--admin*)
Bash(gh pr merge *-R *)
Bash(gh pr merge *--repo*)
ask (0)
—
allow (14)
Bash(cargo:*)
Bash(rustup:*)
Bash(rustc:*)
Bash(rustfmt:*)
Bash(shellcheck:*)
Bash(git status)
Bash(git diff:*)
Bash(git log:*)
Bash(git show:*)
Bash(git add:*)
Bash(git branch:*)
Bash(git checkout:*)
Bash(gh pr merge * --auto)
Bash(gh pr merge * --auto *)

Similar rigs

copied ✓