agent-behavior-constraints

agent-behavior-constraints is a skill for Claude Code from josix/agent-flow. It costs 41 tokens per session (1,932 once invoked), scanned A, original, MIT.

A set of rules for choosing agent models, granting tool access, applying safety limits, and selecting preferred tools for different tasks.

In plain words
What is it for?
Use it when selecting models, checking what an agent may access, spawning agents, or reviewing whether their behavior follows the rules.
Why use it?
It keeps agents within their intended permissions and assigns planning, coding, review, or verification work consistently.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: names the TodoWrite tool; mentions Codex.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the agent-flow plugin — 11 skills, 5 commands, 6 agents, 7 hooks shipped together

Good fit Use it when selecting models, checking what an agent may access, spawning agents, or reviewing whether their behavior follows the rules.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add josix/agent-flow
Claude Code
/plugin install agent-flow

Made for: Claude Code.

Or install agent-flow, the plugin that ships this one along with the rest of its 11 skills, 5 commands, 6 agents, 7 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for agent-behavior-constraints

README.md
[![agentmods](https://agentmods.dev/badge/skills/josix/agent-flow/agent-behavior-constraints/github.svg)](https://agentmods.dev/skills/josix/agent-flow/agent-behavior-constraints)
Your own site
<a href="https://agentmods.dev/skills/josix/agent-flow/agent-behavior-constraints"><img src="https://agentmods.dev/badge/skills/josix/agent-flow/agent-behavior-constraints/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for agent-behavior-constraints

Your own site · 80×15
<a href="https://agentmods.dev/skills/josix/agent-flow/agent-behavior-constraints"><img src="https://agentmods.dev/badge/skills/josix/agent-flow/agent-behavior-constraints.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,932 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00041 $0.01932
Opus 5.5 $0.00016 $0.00773
Sonnet 5.5 $0.00008 $0.00386
Haiku 4.5 $0.00004 $0.00193

Measured 11d ago against content hash c9af06388ec2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

agent-behavior-constraints scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/agent-behavior-constraints/SKILL.md · 169 lines

How it starts

The opening of the file, as written. The whole thing — 169 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Agent Behavior Constraints

Define behavioral rules governing model selection, tool access, and operational guardrails.

Overview

This skill consolidates four core constraint domains:

  1. Model Routing - Which AI model powers each agent
  2. Tool Access - What tools each agent can use
  3. Behavioral Guardrails - Non-negotiable rules for all agents
  4. MCP Tool Preferences - Domain-specific tool selection

Apply these constraints when spawning agents, checking permissions, or reviewing behavior.


Model Routing

Agent Model Rationale
Senku (Planner) Opus Strategic planning needs deep reasoning
Riko (Explorer) Sonnet (effort: medium) Exploration is breadth-first search; speed matters more than deep reasoning
Loid (Executor) Sonnet Balanced speed and capability for implementation
Lawliet (Reviewer) Sonnet Fast iteration for review feedback loops
Alphonse (Verifier) Sonnet Quick verification command execution
Speedwagon (Authoring) Sonnet Fast content authoring for explainer modules

Decision Rule:

  • Opus for strategic/planning tasks requiring deep reasoning (Senku, effort: high)
  • Sonnet for exploration, execution, and verification tasks requiring speed

See Model Selection Guide for detailed criteria.


Tool Access Matrix

Riko (Explorer):       [Read] [Grep] [Glob] [Bash]* [WebSearch] [WebFetch]
Senku (Planner):       [Read] [Grep] [Glob] [Write]§
Loid (Executor):       [Read] [Write] [Edit] [Bash] [Grep] [Glob]
Lawliet (Reviewer):    [Read] [Grep] [Glob] [Bash]
Alphonse (Verifier):   [Read] [Bash] [Grep]
Speedwagon (Authoring):[Read] [Grep] [Glob] [Write]† [Edit]† [Bash]‡

Key Restrictions:

  • Only Loid can modify files (Write, Edit) — except Speedwagon's scoped authoring exception, Senku's plan/report files§, and Riko/Lawliet/Alphonse writing their own long reports to .claude/agent-reports/ via Bash heredoc
  • Only Riko can access web (WebSearch, WebFetch)
  • Senku produces plans as numbered markdown checklists (TodoWrite no longer exists on current models)

Read the full file on GitHub · 169 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago Changed · +2 lines c9af06388ec2
  2. 1mo ago Changed 674ee2eda129
  3. 2mo ago Changed · +7 lines 50c0010a3181
  4. 3mo ago First seen · 160 lines · 41 tokens per session scan A 383b35d8d19a

Subscribe to this mod's changes

agent-behavior-constraints is a skill published in the GitHub repository josix/agent-flow (8 stars, last pushed 12d ago), licensed MIT. It adds 41 tokens to every session and 1,932 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

agent-behavior-constraints compared with skills from other repositories

agent-behavior-constraints next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agent-behavior-constraintsjosix/agent-flowSkill812d agoMITA41Claude Code
requesting-code-reviewgraniet/kheishSkill20923d agoApache-2.0A41Claude Code, Codex
webhook-subscriptionsgraniet/kheishSkill20923d agoApache-2.0A24Claude Code, Codex
google-workspacegraniet/kheishSkill20923d agoApache-2.0A40Claude Code, Codex
jupyter-live-kernelgraniet/kheishSkill20923d agoApache-2.0A70Claude Code, Codex
notiongraniet/kheishSkill20923d agoApache-2.0A33Claude Code, Codex
find-nearbygraniet/kheishSkill20923d agoApache-2.0A40Claude Code, Codex