Writing a good task for an agent
An agent can inspect its crew workspace, use assigned skills, and recall permitted agent or crew memory. It does not automatically know your unstated definition of done, a credential you did not assign, or a file that exists only on your laptop.What the agent already has—and what it does not
The exact context depends on the crew and adapter, but a task normally starts with:- the repository and files mounted into the crew workspace;
- the agent’s assigned skills and their
SKILL.mdinstructions; - memory the agent is allowed to recall, plus crew-shared memory when the task runs in that crew;
- the task’s issue, prompt, or routine inputs; and
- only the credentials and tool capabilities granted to that agent or crew.
The same distinction applies to memory. “Remember the deployment convention” is incomplete if there are several conventions; “store the reviewed staging deploy convention in crew-shared memory, cite the source file, and say when it should be re-checked” gives the agent a durable fact with a freshness boundary.
Include five things
- Context: name the repository path, issue, crew memory fact, or skill that matters.
- Action: say what the agent should inspect or change, in an order that can be followed.
- Constraints: state what must not change, especially generated files, public contracts, or credentials.
- Acceptance: name executable checks and observable outcomes.
- Handoff: say where the result belongs: a file, issue comment, routine output, or Journal entry.