~ / rigs / itslab42 / agentctl

itslab42/agentctl

Define AI coding-agent permissions once, enforce them everywhere. One .ai/ source of truth compiles to native configs for Claude Code, Codex, OpenCode, Cursor & Kiro

↗ GitHub ★ 4 Apache-2.0 updated 2mo ago project CodexKiro
share on X
ARCHETYPE
Minimalist
Lean instructions, few tools, tiny context tax. Lets the model think.
CONTEXT TAX · EVERY TURN
~1.3k tokens
Featherweight · median rig: 2.3k · breakdown
GUARDRAILS
1/5
Pre-tool screening hook · details
Quality 0/100 Guardrails v2

Copy this rig

$ git clone --depth 1 https://github.com/itslab42/agentctl

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 itslab42/agentctl/.kiro/skills/graphify .claude/skills/graphify

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": "web_fetch",
        "hooks": [
          {
            "type": "command",
            "command": "INPUT=$(cat); URL=$(echo \"$INPUT\" | grep -o '\"url\":\"[^\"]*\"' | head -1 | sed 's/\"url\":\"//;s/\"//'); if echo \"$URL\" | grep -qE 'github\\.com/.+/(issues|pull)/[0-9]+'; then echo '{\"hookSpecificOutput\":{\"permissionDecision\":\"ask\",\"permissionDecis"
          }
        ]
      }
    ]
  }
}

Skills (1)

Hooks (1)

eventmatcherruns
PreToolUseweb_fetchINPUT=$(cat); URL=$(echo "$INPUT" | grep -o '"url":"[^"]*"' | head -1 | sed 's/"url":"//;s/"//'); if echo "$URL" | grep -qE 'github\.com/.+/(issues|pull)/[0-9]+'; then echo '{"hookSpecificOutput":{"permissionDecision":"ask","permissionDecis

Kiro (1 steering · 1 hook files)

How Kiro files are scored: methodology.

Similar rigs

copied ✓