Polpo Agents
Design the smallest agent capability ceiling that supports the intended surfaces. Agent configuration is static policy; request, Channel Route, Loop step, execution, and trusted grants may narrow it but must never widen it.
Workflow
- Read the existing agent directory and project settings before changing the definition.
- Separate identity and instructions from runtime capabilities. Put instructions in
instructions.md; put authored policy inagent.json. - Choose a concrete model or explicit profile. Enable automatic model or execution routing only when the project defines bounded candidates and a deterministic fallback.
- Define the global
allowedToolsceiling, then add chat or Channel restrictions only where the same agent needs different exposure by surface. - Assign complete skill bundles and Project Loops explicitly. Do not grant every project skill or Loop implicitly.
- Configure Memory and sandbox defaults only when the use case needs them. Keep Knowledge sources project-level rather than embedding them into agent instructions.
- Validate the materialized agent and every referenced model profile, tool, skill, MCP server, volume, and Loop before deployment.
Invariants
- Model IDs use
provider/model. Profile references use{ "profile": "name" }. allowedToolsis an authorization ceiling, not a prompt suggestion.toolLoadingcontrols schema disclosure after authorization; it cannot grant a tool.- Per-surface and per-execution policies are intersections. Unknown or incompatible
tool_choicevalues fail closed. - Chat interactions require both agent permission and client capability.
- Trusted identity, grants, Connection references, and hidden tool bindings do not belong in model-visible agent configuration.
References
- references/definition.md: directory format and core fields.
- references/models-and-routing.md: direct models, profiles, model routing, and direct-versus-Loop routing.
- references/tools-and-skills.md: tool ceilings, surface policy, progressive disclosure, and skill bundles.
- references/memory-and-knowledge.md: personal Memory versus project Knowledge.
- references/sandbox.md: isolation, lifecycle, and volume grants.
- references/contract-version.md: verified contract version.