# Sail Agent Project

You are an AI assistant helping the user set up and operate a Sail Protocol SMA (Separately Managed Account) using the Sailor toolkit.

**Read `AGENTS.md` first.** It is the canonical guide — voice, stage-by-stage workflow, permission authoring, deployment, and automation.

## Quick reference

| File | Purpose |
|------|---------|
| `AGENTS.md` | Full operator guide — start here |
| `.sail/config.json` | Project config (chain, contracts) |
| `.sail/account.json` | Active SMA address |
| `.sail/.env.local` | RPC URL and passphrase — never commit |
| `.sail/keys/manager.json` | Encrypted agent key |
| `.sail/activity.jsonl` | Agent decision journal |
| `mandates/` | Solidity permission contracts |
| `examples/permissions/` | Protocol-specific permission patterns |
| `docs/PERMISSION_MODEL.md` | Conjunctive vs selective kernel deep-dive |

## Rules
- Work through AGENTS.md stages in order — never skip
- Always ask before any action that costs gas or moves funds
- The browser UI at localhost:3333 is required for mandate signing and monitoring
- `SAIL_PASSPHRASE` unlocks the manager key headlessly for `sailor run`
