~ / rigs / arnegiacomo / dotfiles-mac

arnegiacomo/dotfiles-mac

My personal macOS setup

↗ GitHub ★ 0 no license updated 4d ago personal setup Claude CodeCodex
stack: Lua
share on X
ARCHETYPE
Automator
Hooks on every lifecycle event: format, lint, notify, log.
CONTEXT TAX · EVERY TURN
~1.0k tokens
Featherweight · median rig: 2.3k · breakdown
GUARDRAILS
3/5
Blocks destructive commands · Pre-tool screening hook · No YOLO mode · details
Quality 18/100 Guardrails v2

Copy this rig

# review before running: this installs third-party code
$ npx degit arnegiacomo/dotfiles-mac/agents/.claude ./rig-dotfiles-mac  # 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 arnegiacomo/dotfiles-mac/agents/.agents/skills/hunk-intent-review .claude/skills/hunk-intent-review

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

{
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "*",
        "hooks": [
          {
            "type": "command",
            "command": "sh -c 'p=$(cat); if [ -n \"$TUIOS_SOCKET\" ] && [ -n \"$p\" ]; then case $p in (*PermissionRequest*) w=330;; (*) w=2;; esac; o=$({ printf \"{\\\"id\\\":1,\\\"verb\\\":\\\"agent-hook-event\\\",\\\"params\\\":{\\\"harness\\\":\\\"%s\\\",\\\"forwarder\\\":true,\\\"env\\\":{\" clau"
          }
        ]
      }
    ]
  }
}

Skills (1)

Hooks (15)

eventmatcherruns
SessionStart^(startup|resume|clear|compact|fork)$bash '~/.claude/hooks/herdr-agent-state.sh' session
SessionStart*sh -c 'p=$(cat); if [ -n "$TUIOS_SOCKET" ] && [ -n "$p" ]; then case $p in (*PermissionRequest*) w=330;; (*) w=2;; esac; o=$({ printf "{\"id\":1,\"verb\":\"agent-hook-event\",\"params\":{\"harness\":\"%s\",\"forwarder\":true,\"env\":{" clau
UserPromptSubmit*sh -c 'p=$(cat); if [ -n "$TUIOS_SOCKET" ] && [ -n "$p" ]; then case $p in (*PermissionRequest*) w=330;; (*) w=2;; esac; o=$({ printf "{\"id\":1,\"verb\":\"agent-hook-event\",\"params\":{\"harness\":\"%s\",\"forwarder\":true,\"env\":{" clau
PreToolUse*sh -c 'p=$(cat); if [ -n "$TUIOS_SOCKET" ] && [ -n "$p" ]; then case $p in (*PermissionRequest*) w=330;; (*) w=2;; esac; o=$({ printf "{\"id\":1,\"verb\":\"agent-hook-event\",\"params\":{\"harness\":\"%s\",\"forwarder\":true,\"env\":{" clau
PermissionRequest*sh -c 'p=$(cat); if [ -n "$TUIOS_SOCKET" ] && [ -n "$p" ]; then case $p in (*PermissionRequest*) w=330;; (*) w=2;; esac; o=$({ printf "{\"id\":1,\"verb\":\"agent-hook-event\",\"params\":{\"harness\":\"%s\",\"forwarder\":true,\"env\":{" clau
PostToolUse*sh -c 'p=$(cat); if [ -n "$TUIOS_SOCKET" ] && [ -n "$p" ]; then case $p in (*PermissionRequest*) w=330;; (*) w=2;; esac; o=$({ printf "{\"id\":1,\"verb\":\"agent-hook-event\",\"params\":{\"harness\":\"%s\",\"forwarder\":true,\"env\":{" clau
PostToolUseFailure*sh -c 'p=$(cat); if [ -n "$TUIOS_SOCKET" ] && [ -n "$p" ]; then case $p in (*PermissionRequest*) w=330;; (*) w=2;; esac; o=$({ printf "{\"id\":1,\"verb\":\"agent-hook-event\",\"params\":{\"harness\":\"%s\",\"forwarder\":true,\"env\":{" clau
PermissionDenied*sh -c 'p=$(cat); if [ -n "$TUIOS_SOCKET" ] && [ -n "$p" ]; then case $p in (*PermissionRequest*) w=330;; (*) w=2;; esac; o=$({ printf "{\"id\":1,\"verb\":\"agent-hook-event\",\"params\":{\"harness\":\"%s\",\"forwarder\":true,\"env\":{" clau
ElicitationResult*sh -c 'p=$(cat); if [ -n "$TUIOS_SOCKET" ] && [ -n "$p" ]; then case $p in (*PermissionRequest*) w=330;; (*) w=2;; esac; o=$({ printf "{\"id\":1,\"verb\":\"agent-hook-event\",\"params\":{\"harness\":\"%s\",\"forwarder\":true,\"env\":{" clau
Notification*sh -c 'p=$(cat); if [ -n "$TUIOS_SOCKET" ] && [ -n "$p" ]; then case $p in (*PermissionRequest*) w=330;; (*) w=2;; esac; o=$({ printf "{\"id\":1,\"verb\":\"agent-hook-event\",\"params\":{\"harness\":\"%s\",\"forwarder\":true,\"env\":{" clau
Stop*sh -c 'p=$(cat); if [ -n "$TUIOS_SOCKET" ] && [ -n "$p" ]; then case $p in (*PermissionRequest*) w=330;; (*) w=2;; esac; o=$({ printf "{\"id\":1,\"verb\":\"agent-hook-event\",\"params\":{\"harness\":\"%s\",\"forwarder\":true,\"env\":{" clau
StopFailure*sh -c 'p=$(cat); if [ -n "$TUIOS_SOCKET" ] && [ -n "$p" ]; then case $p in (*PermissionRequest*) w=330;; (*) w=2;; esac; o=$({ printf "{\"id\":1,\"verb\":\"agent-hook-event\",\"params\":{\"harness\":\"%s\",\"forwarder\":true,\"env\":{" clau
SessionEnd*sh -c 'p=$(cat); if [ -n "$TUIOS_SOCKET" ] && [ -n "$p" ]; then case $p in (*PermissionRequest*) w=330;; (*) w=2;; esac; o=$({ printf "{\"id\":1,\"verb\":\"agent-hook-event\",\"params\":{\"harness\":\"%s\",\"forwarder\":true,\"env\":{" clau
SubagentStart*sh -c 'p=$(cat); if [ -n "$TUIOS_SOCKET" ] && [ -n "$p" ]; then case $p in (*PermissionRequest*) w=330;; (*) w=2;; esac; o=$({ printf "{\"id\":1,\"verb\":\"agent-hook-event\",\"params\":{\"harness\":\"%s\",\"forwarder\":true,\"env\":{" clau
SubagentStop*sh -c 'p=$(cat); if [ -n "$TUIOS_SOCKET" ] && [ -n "$p" ]; then case $p in (*PermissionRequest*) w=330;; (*) w=2;; esac; o=$({ printf "{\"id\":1,\"verb\":\"agent-hook-event\",\"params\":{\"harness\":\"%s\",\"forwarder\":true,\"env\":{" clau

Plugins (2)

mattpocock-skills@claude-plugins-officialrust-analyzer-lsp@claude-plugins-official

Similar rigs

copied ✓