~ / rigs / TheElephantCoder / agent-harness

TheElephantCoder/agent-harness

Performance layer for coding agents — skills, instincts, memory, security and research-first for Claude Code, Codex, Opencode, Cursor, Kiro CLI, Kiro, Cline, Aider.

share on X
ARCHETYPE
Fort Knox
Deny lists, pre-tool hooks, sandboxing. Nothing touches prod without a signature.
CONTEXT TAX · EVERY TURN
~744 tokens
Featherweight · median rig: 2.3k · breakdown
GUARDRAILS
5/5
Blocks destructive commands · Protects secrets · Pre-tool screening hook · No YOLO mode · Sandbox or ask-first rules · details
Quality 41/100 Guardrails v2

Copy this rig

# review before running: this installs third-party code
$ npx degit TheElephantCoder/agent-harness/.claude ./rig-agent-harness  # 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 TheElephantCoder/agent-harness/skills/memory-sync .claude/skills/memory-sync
$ npx degit TheElephantCoder/agent-harness/skills/performance .claude/skills/performance
$ npx degit TheElephantCoder/agent-harness/skills/research-first .claude/skills/research-first
$ npx degit TheElephantCoder/agent-harness/skills/security-guard .claude/skills/security-guard

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(rm -rf /*)",
      "Read(~/.ssh/*)",
      "Read(~/.aws/*)"
    ],
    "ask": [
      "Bash(curl *)",
      "Bash(sudo *)",
      "Write(/etc/*)"
    ]
  },
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Bash|Edit|Write",
        "hooks": [
          {
            "type": "command",
            "command": "./instincts/pre-tool/guard.sh"
          }
        ]
      }
    ]
  }
}

Skills (4)

Hooks (4)

eventmatcherruns
SessionStart*./instincts/session-start/hydrate.sh
PreToolUseBash|Edit|Write./instincts/pre-tool/guard.sh
PostToolUseEdit|Write./instincts/post-edit/check.sh
PreCommit*./security/audit.sh --staged

Cursor rules (1)

harness · always

Permissions

deny (3)
Bash(rm -rf /*)
Read(~/.ssh/*)
Read(~/.aws/*)
ask (3)
Bash(curl *)
Bash(sudo *)
Write(/etc/*)
allow (9)
Read
Grep
Glob
Bash(git *)
Bash(npm *)
Bash(harness *)
Bash(python3 *)
Bash(pytest *)
Bash(cargo *)

Similar rigs

copied ✓