Agents overview¶
This page is for users, contributors, and AI coding assistants (Claude, Cursor, Copilot, custom harnesses) that use or extend PAI's agent ecosystem.
It summarizes how PAI organises agent-facing instructions and points into the authoritative root files. It does not duplicate them — when in doubt, the root files win.
Agent vs skill¶
- An agent is a role persona: a set of instructions describing who the caller is acting as (generalist contributor, docs writer, test engineer). Agents define voice, scope, hard rules, and acceptance checks for a class of work.
- A skill is a packaged capability: a small, declarative recipe in
/skills/<name>/SKILL.mdthat tells an agent how to perform a specific task (e.g. flash a USB, generate release notes). Skills declare triggers, inputs, outputs, and guardrails.
An agent is; a skill does.
The three layers¶
PAI's agent-facing guidance is layered. Each layer narrows scope and overrides the one above it.
- Project-wide rules —
/AGENTS.mdand/CLAUDE.md. Apply to every agent and every contributor, human or otherwise. Brand, security, commit hygiene. - Role personas —
/agents/*-agent.md. Inherit fromAGENTS.mdand specialise for one role (docs, tests, etc.). Add scope boundaries and role-specific acceptance checks. - Skills —
/skills/<name>/SKILL.md. Invoked by an agent to carry out a concrete task. The narrowest and most reviewable layer.
Typical session start¶
An agent session in PAI usually starts like this:
- Read
/AGENTS.mdfor project-wide rules. - Load the matching persona from
/agents/— default isagent.md, specialise todocs-agent.mdortest-agent.mdwhen the task fits. - Scan the skill catalog to see if any packaged skill matches the request.
- Do the work, honouring the strictest layer that applies.
Security model¶
Agents run with user privileges. They do not get elevated access, secret keys, or bypass paths. An agent editing the PAI repo is bound by the same constraints as a human contributor:
- No committing secrets.
- No force-push on shared branches.
- No skipping hooks or commit signing (
--no-verify,--no-gpg-sign). - No telemetry, analytics, or phone-home code.
If a task would require elevated access, the agent must stop and ask.
See the "Hard rules" section in
/agents/agent.md for the full list.
Related reading¶
/AGENTS.md— project-wide rules./agents/agent.md— base persona./SKILLS.md— skills concept and root catalog./TOOLS.md— lower-level tools skills build on.- Agent registry — every persona that exists.
- Skill catalog — every skill that exists.