jacks0n

Agentperm — Development skill for Claude Code

Development community

One permission policy for coding agents — Claude Code, Codex CLI, OpenCode, and Gemini CLI consult a single allow/ask/deny file before tools run.

How to install Agentperm

This entry records only its repository, not the path inside it, so there is no exact command to give. Open jacks0n/agentperm and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Agentperm does

One permission policy for coding agents — Claude Code, Codex CLI, OpenCode, and Gemini CLI consult a single allow/ask/deny file before tools run.

Alternatives in Development

  • Understand Anything — Graphs that teach graphs that impress 80.7k ★
  • Petdex — A public gallery of animated pets for Codex, Claude Code, DeepSeek Harness, Hermes, OpenCode, Gemini CLI, and 4k ★
  • Agent Of Empires — Manage multiple Claude Code, OpenCode agents from either TUI or Web for easy access on mobile 3.1k ★

README

agentperm

**One permission policy for every coding agent. Parsed like a shell, not matched like a string.**

agentperm is a pre-tool hook for [Claude Code](https://docs.anthropic.com/en/docs/claude-code), [Codex CLI](https://github.com/openai/codex), [OpenCode](https://opencode.ai), [Gemini CLI](https://github.com/google-gemini/gemini-cli), and [Kiro](https://kiro.dev). Before a command runs, it parses the whole shell program, judges every piece against one layered policy, and returns **allow / ask / deny**. You approve *intent* once; you stop re-approving `git status` because a flag moved, it entered a pipe, or a different agent asked.

[![PyPI](https://img.shields.io/pypi/v/agentperm)](https://pypi.org/project/agentperm/) [![Python](https://img.shields.io/pypi/pyversions/agentperm)](https://pypi.org/project/agentperm/) [![CI](https://github.com/jacks0n/agentperm/actions/workflows/ci.yml/badge.svg)](https://github.com/jacks0n/agentperm/actions/workflows/ci.yml) [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/jacks0n/agentperm/blob/main/LICENSE)

Everything it does, on one screen

// ~/.agent-permissions.jsonc
{
  "version": 1,
  "permissions": {
    "deny": [
      "Shell(git push --force)",
      {"Write(**/src/generated/**)": {"reason": "Generated — run `just generate`."}},
      {"SQL(no-file-io)": {"dialect": "postgres", "functions": {"any": ["pg_read_file"]}}}
    ],
    "ask": ["Shell(aws ec2 terminate-*)"],
    "allow": [
      "Shell(git values(-C) {status,diff,log} only(-C, --short, --stat))",
      "Shell(aws values(--profile) ec2 describe-* only(--profile))",
      "Shell(jq only(-r))",
      "Shell(echo *)",
      "Shell(psql values(-d) sqlvalues(, -c))",
      "Shell(psql values(-d) stdin())",
      {"SQL(ro)": {"dialect": "postgres", "effects": {"only": ["read"]}}},
      "Python(readonly)",
      "Python(query_db())",
      "Write(**/src/**)"
    ]
  }
}

Agent tries t