Skip to content
websentry-aiPublic

About

No description, website, or topics provided.

Resources

Stars

10 stars

Watchers

0 watching

Forks

Repository files navigation

paws

Skills that actually fire.

You install a skill (humanizer, a TDD skill, your team's AWS rules) and your coding agent decides on every turn whether it's relevant enough to load. Often it decides no: the PR body goes out with the AI tells, the tests get skipped, the bucket gets created without tags. Installed is not applied.

paws is a small local hook for your coding agent that fixes that one thing. When a bound action is about to run (a commit, a PR, a Slack send, an S3 bucket), paws checks the session transcript for the skill. If it isn't loaded, the call is denied once with a message naming the skill; the agent loads it and retries, and the retry goes through. Husky, for agents.

paws guarantees the skill was loaded; the skill governs the behaviour. The hook never rewrites tool input or reads tool output, and the gate that decides each tool call never calls the network.

Apache-2.0 · no account · Claude Code and Codex CLI.

Ten minutes

curl -fsSL https://paws.getunbound.ai/install.sh | bash   # installs ~/.local/bin/unbound-paws
unbound-paws init                                         # asks which agents (Claude Code, Codex) and where
unbound-paws add writing                                  # humanizer before PR bodies, commits and MCP sends

(Or npm i -g unbound-paws: the same unbound-paws command.)

Now ask Claude Code for a commit or a PR. You'll see:

agent runs `git commit ...`  → paws denies once:
  paws (rule humanizer-commit): this needs the "humanizer" skill. Load or read it
  (~/.claude/skills/humanizer/SKILL.md), then run the command again.
agent invokes humanizer, retries → the commit goes through, humanized

Dry-run any action without a session:

unbound-paws explain 'gh pr create --fill'

Codex CLI

unbound-paws init --agent codex --global   # ~/.codex/hooks.json: Codex asks you to trust it once
unbound-paws init --agent codex            # this repo's .codex/hooks.json: trusted in each repo
unbound-paws init --agent claude,codex     # both, without the questions

Codex runs a new hook only after you trust it: start Codex, run /hooks and trust the paws hook. The same rules apply. Codex has no Skill tool, so a deny names the skill's SKILL.md and Codex reads it; that read is the load. apply_patch counts as a Write (new file) or Edit of each file it touches. Skills paws installs (add, the portal, paws skill) are copied into .agents/skills too once the Codex hook is in place. paws scan reads Claude Code sessions only.

Packs

unbound-paws search aws            # search the catalog (or browse paws.getunbound.ai/catalog)
unbound-paws add writing           # install for you (~/.paws, ~/.claude/skills)
unbound-paws add --project writing # install into this repo, to commit for the team
unbound-paws list                  # what's installed, how often each binding fired
unbound-paws ui                    # all of that as a local page
unbound-paws remove writing

unbound-paws add installs the bindings and the skills they require. The catalog lives on the paws server, so add and search need the network: each skill is downloaded from it and refused unless its files hash to the pinned content hash. A copy paws installed and you edited stays as you left it, and its rules still apply. If you already have your own skill by the same name in a folder an agent loads, paws installs neither that skill nor the rules that need it, and says so. Rename or remove yours, then run add (or sync) again. The portal works the same way. See docs/catalog.md.

Your own rules

A rule is a markdown file in .paws/ (repo) or ~/.paws/ (you). It takes effect on the next tool call.

---
name: humanizer-pr
event: pre-tool
matcher:
  tool: Bash
  command_regex: (^|[;&|\n])\s*gh\s+pr\s+(create|edit)\b
action:
  type: require-skill
  skill: humanizer
---
PR titles and bodies read like a person wrote them.

Or ask Claude Code: "always load humanizer before I open a PR". Run unbound-paws skill (or unbound-paws skill --global) once to install the paws skill: it knows the format and checks its work with unbound-paws explain. Re-run it after an upgrade to get the current version.

events pre-tool, pre-commit, pre-push, session-start
matcher tool (names, mcp__server__*), command_regex, file_glob, mcp_action (send, create, update, delete)
when dependency:PKG, repo-marker:PATH, new-file, no-edit-matching:GLOB, agent-count>N
action require-skill, with on_miss: digest to send the skill's rules in the deny

MCP calls match by server and by what the call does, so one rule covers every Slack tool that sends:

matcher:
  tool: mcp__slack__*
  mcp_action: send      # send, create, update or delete

The full reference: docs/rules.md.

What paws does and doesn't do

  • Local only. The hook reads rule files and the session transcript and writes ~/.paws/audit.log. Nothing leaves the machine unless you run unbound-paws login (docs/telemetry.md).
  • Fails open. A rule that doesn't parse is skipped with a one-line notice; an internal error allows the call. A hook that wedges your terminal gets uninstalled within the hour.
  • Per context window. A skill counts as loaded when it was invoked in the last 20 turns. A turn is one message you send and everything Claude does to answer it, however many tool calls that takes. After a compaction its text is gone, so the next gated call denies once more.
  • Not a sandbox. Regex rules match command text, not shell semantics. A gate makes an agent that follows instructions load the skill; it doesn't stop an adversary. The hook runs unbound-paws gate from your PATH, so a repo whose .claude/settings.json sets env.PATH could swap it out in that repo; review .claude/settings.json like you review .paws/.

Portal (optional)

Nothing leaves the machine until you run unbound-paws login.

unbound-paws login              # confirm a code in the browser; saves ~/.paws/credentials.json
unbound-paws login --key pk_... # a machine with no browser: a one-time key made in the portal
unbound-paws login --key -      # the same, reading the key from stdin
unbound-paws sync --dry-run     # print exactly what the next upload holds, send nothing
unbound-paws sync               # upload and pull settings now
unbound-paws scan --dry-run     # count past Claude Code sessions' tool calls against the catalog; print, send nothing
unbound-paws login --scan       # log in, then send those counts so the portal picks skills on day one
unbound-paws logout             # forget the token and remove the portal's rules

What leaves the machine once you are logged in:

  • counts: each time a rule fired, its skill and verdict, and whether the skill was already loaded;
  • the commands Claude ran, with secrets redacted (passwords, tokens, API keys, auth headers, JWTs; the list) and cut to 500 characters;
  • MCP calls: server, tool and action class (send, create, update, delete);
  • tool actions as a short key, such as git commit, gh pr create, edit migrations/** or DELETE;
  • file paths relative to the repo root (a path outside the repo is left out);
  • the names of your installed skills and the paws rules in scope.

Never prompts, replies, file contents, tool output, absolute paths or session ids. Field by field: docs/telemetry.md.

unbound-paws scan sends counts only: how many past tool calls each catalog skill's triggers matched, never the calls (docs/telemetry.md).

When: from the async hooks that run when you send Claude a message and when Claude finishes a turn, at most every 5 minutes (PAWS_SYNC_INTERVAL); in the background when a session starts, at most once a minute; on unbound-paws sync; and once at unbound-paws login. No paws process runs between hooks, so a laptop where nobody is using Claude sends nothing.

Settings come down from the portal: the skills you turn on in the browser and the actions each one runs before. Each upload checks for a change, and between uploads the same hooks ask for the settings' hash alone at most every 30 seconds (PAWS_CHECK_INTERVAL). A skill you turn on in the browser reaches the laptop the next time you send Claude a message, or at once with unbound-paws sync. paws then writes them as rule files under ~/.paws/portal/. Each skill installs into ~/.claude/skills from the paws server, pinned to a github.com repo at a commit and refused unless its files hash to the config's content hash. A skill's rules are written only once the skill is installed; a skill directory you wrote or edited is never replaced. The gate itself stays offline: it reads those files like any other rule, and a tool call is never held up by the network. unbound-paws logout, or a login revoked in the portal, removes those rules.

PAWS_PORTAL_API sets the portal address (default https://paws-api.getunbound.ai). It must be https; plain http is accepted only for localhost, 127.0.0.1 or ::1, with a warning.

Install details

curl -fsSL https://paws.getunbound.ai/install.sh | bash   # install or upgrade
unbound-paws init                 # on a terminal: pick the agents and this repo or every repo
unbound-paws init --project       # Claude Code, this repo (or this folder, outside a repo): the default without a terminal
unbound-paws init --global        # every repo for this user (~/.claude/settings.json)
unbound-paws uninstall            # removes everything paws added, after listing it and asking
unbound-paws uninstall --hook-only [--global]   # removes only the hook
rm ~/.local/bin/unbound-paws      # then the binary itself (npm rm -g unbound-paws, or brew uninstall --cask unbound-paws)

On a terminal, init asks which agents to set up (the ones found on this machine are ticked) and where, and uninstall asks the same. Any flag skips the questions: --agent claude|codex (repeat it or use a comma list), --project, --global or --settings <path>. Without a terminal, as for an agent or CI, nothing is asked.

uninstall takes --project or --global to limit the scope, --keep-skills to leave the skills paws installed, and --yes to skip the question. It removes the hook, the packs and skills paws installed (a skill you wrote or edited stays), and credentials.json after logging out of the portal. Rule files you wrote in .paws/ outside packs/ stay, and so do the audit history and the binary copy in ~/.paws, which other repos' hooks may still run.

install.sh downloads the release archive for your OS and CPU from GitHub, checks it against the release's checksums.txt, installs it as ~/.local/bin/unbound-paws (where Claude Code's own installer puts claude) and, if that folder isn't on your PATH, adds it in your shell's rc file. It doesn't touch Claude Code's settings. bash -s 0.3.1 installs a given version.

npm i -g unbound-paws gives the same command: the package downloads and checks the same binary, and on macOS and Linux puts it in place of its Node launcher. Upgrade with npm i -g unbound-paws@latest.

Each hook runs unbound-paws gate: the native binary, a few milliseconds per tool call, no npm or network. A project and a --global registration are the same line, so Claude Code runs it once. When init runs from somewhere that won't last (npx, a source build), it copies the binary to ~/.paws/bin/paws and registers "$HOME/.paws/bin/paws" gate instead. From source: go build -o paws ./cmd/paws && ./paws init.

On macOS and Linux the registered unbound-paws gate starts with a check for the binary, so a teammate who opens a committed repo without paws gets "paws is not installed; install it with npm i -g unbound-paws (or see https://paws.getunbound.ai)" instead of a vague hook error. For PreToolUse the call is blocked (exit 2); the other events only show the message. The copied "$HOME/.paws/bin/paws" gate and Windows keep the plain command: the install hint would not create that file, and the check needs sh.

Upgrading from 0.3.0: install with the line above, then run unbound-paws init (and init --global if you used it) once; it replaces the old PAWS_MANAGED=1 … hook entry. init no longer installs the paws skill: run unbound-paws skill if you want it. From 0.1 or 0.2: also run unbound-paws add <pack> for each installed pack.

$PAWS_HOME, when set to an absolute path, replaces ~/.paws. Claude Code passes a settings file's env to hooks, so a repo's .claude/settings.json can set it; review .claude/settings.json like you review .paws/.

FAQ

An LLM following instructions isn't enforcement. Right. paws deterministically guarantees the skill was loaded before the action, not that the agent followed it. That's why we say "activated", never "used".

Isn't this just a rules file? Claude Code's path-scoped rules load text when the agent touches matching files. paws fires on commits, PRs, MCP sends, session start and repo conditions, before the first write, and installs and pins the skill itself.

Open-core bait? The hook, the rule format and the catalog are Apache-2.0, and stay that way. A hosted portal for synced, opt-in telemetry will be the paid part; the hook never needs it.

A catalog of injected instructions is an attack surface. Every catalog skill is pinned to a commit and a content hash; laptops install only files that hash to it, and a newer version reaches a laptop only after someone approves it in the portal. Only skills whose repos grant a licence are in the catalog.

Develop

go test ./...
go run ./cmd/paws validate <dir>                 # a catalog on disk: bindings and packs
go run ./cmd/paws pin <dir>                      # pin upstream skill hashes
python3 .github/release/smoke.py                 # build every archive, test the npm install

Releases run manually through the CI and release workflow on main. The workflow requires a newer version in npm/package.json, runs checks, then releases binaries and publishes to npm. Pushes and pull requests run checks only. See Release paws for the first release, npm publishing setup, and installation checks.

cmd/paws          CLI entrypoint
internal/hook     Claude Code adapter (hook I/O, settings entries)
internal/rule     rule format: parse, match, when-conditions (pure)
internal/gate     decision engine: load, resolve, transcript scan, audit log
internal/catalog  catalog bindings, pack manifests and trigger cases
internal/pack     unbound-paws add/remove: bindings, skill install, state
internal/cli      the commands
skills/paws       the skill `unbound-paws skill` installs
web               the unbound-paws ui React app; web/dist is the committed build
npm               the unbound-paws npm wrapper
docs              rules, catalog, telemetry references
examples          sample .paws rules

About

No description, website, or topics provided.

Resources

Stars

10 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages