Create your first Agent
Create an Agent with a clear responsibility, then start one bounded Run and inspect its result. Agent creation does not grant access to an external provider.
Prerequisites
Section titled “Prerequisites”- An authorized MCP client with Full control access for Agent creation.
- A short Agent name.
- Stable instructions describing its responsibility and boundaries.
- One concrete task for the first Run.
Authority and custody
Section titled “Authority and custody”An Agent is owner-scoped. Its definition becomes an immutable revision, and every Run records the exact revision it uses. Omit optional capability configuration to use the owner model catalog’s current default, and omit execution limits to use the fleet execution defaults.
Creating an Agent grants no external authority. Connections, native capabilities, and standing tool authority are separate, explicit configuration choices.
Create and run the Agent
Section titled “Create and run the Agent”- Call
crewhelm_statusto confirm that the control plane is ready. - Call
crewhelm_change_agentswithoperation.kind: "create", a name, and instructions. - Keep the returned Agent object unchanged.
- Call
crewhelm_change_workwithoperation.kind: "run", that Agent object, and the firstmessage. Omitconversation, Briefs, andoutputContract. - Keep the returned Run and
conversationobjects unchanged. - Call
crewhelm_inspect_workwithoperation.kind: "inspect_run"and the Run ID until the Run reaches a terminal state.
For a useful first task, ask for a bounded Markdown result that needs no external tool. This proves Agent admission and model execution before introducing Connection authority.
Verify the result
Section titled “Verify the result”- The Run refers to the same Agent ID and revision returned at creation.
- The Run reaches a terminal state and exposes its Markdown result.
crewhelm_inspect_agentswithoperation.kind: "inspect"returns the immutable current definition.- A later follow-up can pass the returned Agent and
conversationobjects unchanged tocrewhelm_change_workwithoperation.kind: "run".
Recover safely
Section titled “Recover safely”- On an Agent revision conflict, inspect the Agent again and decide whether its current revision still matches your intent before starting again.
- If the conversation handle is lost, use
crewhelm_inspect_workto list that Agent’s conversations, then inspect the selected conversation for a fresh copy-ready object. - If the Run waits for approval, inspect the pending action before approving or rejecting it.
- Do not silently retry an external write whose result is unknown. Follow diagnosis and recovery.
Next action
Section titled “Next action”Run an Agent for continued work, or connect an integration when the Agent needs an external provider.