Skip to main content
Use an AI coding agent to implement, test, and prepare policy releases with pcl. Review its output against the agreed requirements. Phylax provides reusable workflows in the agent-skills repository.

Prerequisites

  • pcl installed
  • An agent that supports the Agent Skills format, such as Codex or Claude Code
  • A local protocol repository the agent can inspect and edit
  • For custom integration work, defined policy requirements and assigned review responsibilities
Creating and testing a local assertion project requires no platform login or signing credentials. For the deployment workflow, also identify the target chain, RPC endpoint, and authorized Protocol Manager. Follow Deploy Policies with an AI Agent to authenticate before starting that workflow. The L2 workflow is in L2 Platform Notes.
An agent can edit code, create platform resources, and broadcast on-chain transactions. Review its plan and local changes before authorizing remote mutations. Require a successful dry run and explicit approval before any production deployment.

Install the Phylax agent skills

Install the two PCL workflow skills from GitHub:
Both commands pin the skill version. The agent-skills repository also includes focused skills for invariant discovery and design, assertion implementation, testing, trigger optimization, and troubleshooting. The mapping-invariants skill name is retained; supply the full policy requirements, including failure scenarios and legitimate exceptions, to the workflow.
Restart your agent after installation if it does not discover the new skills in the current session.

Choose the workflow

Use the skill name in your request so the intended workflow is unambiguous.

Start with a high-level prompt

Give the agent the approved policies, target contracts, and test requirements. Require review of unresolved requirements and proposed policy changes. For example:

Orient the agent with the installed CLI

Current versions of pcl expose machine-readable guidance for agents. Include this instruction in your prompt:
This gives the agent guidance for the installed CLI version.

Keep a human in the approval loop

Authenticate before starting the deployment agent. Allow local inspection, edits, builds, and tests. Approve the environment, platform changes, and signer use before deployment. Do not paste a private key into the conversation or commit it to the repository. Prefer a Foundry keystore and provide its password through a file outside the project.

Create a Project with an Agent

Bootstrap and validate an assertion project locally

Deploy Policies with an AI Agent

Review and authorize a release, then verify its activation