Add Agent Permission Policy schema (.agents/permissions.json)#5666
Conversation
|
Thanks for the PR! This section of the codebase is owned by @madskristensen and |
for more information, see https://pre-commit.ci
There was a problem hiding this comment.
Pull request overview
Adds a new SchemaStore catalog entry for the Agent Permission Policy format so editors/tools can associate .agents/permissions.json and .agents/permissions.local.json files with the upstream, self-hosted JSON Schema.
Changes:
- Registered “Agent Permission Policy” in the schema catalog with file patterns for shared and local override policy files.
- Pointed the catalog entry to the upstream hosted schema URL.
| { | ||
| "name": "Agent Permission Policy", | ||
| "description": "Cross-agent permission policy for AI coding agents", | ||
| "fileMatch": [ | ||
| "**/.agents/permissions.json", |
There was a problem hiding this comment.
The entry is placed directly before "AgentCore CLI" (line 9722), which is the correct alphabetical position — "Agent Permission Policy" < "AgentCore CLI". The catalog has hundreds of existing alphabetical violations throughout, and this placement is correct relative to its immediate neighbours.
Summary
Adds the Agent Permission Policy schema for
.agents/permissions.jsonand.agents/permissions.local.jsonfiles.This is a cross-agent permission policy format for AI coding agents (Claude Code, Pi, OpenCode, Codex, Cursor, etc.). The schema defines what tools agents may use, under what conditions, and how subagents are constrained.
File matches
**/.agents/permissions.json— team-shared policy (committed to git)**/.agents/permissions.local.json— personal overrides (gitignored)Schema highlights
Tool(pattern),prefix:*, wildcards)when.cwd/when.branchconditionsmcp__server,mcp__*__tool*)Validation
node cli.js checkpasses ✓