# Build your first agent (/agent-runtime/quick-start)



## Before you start [#before-you-start]

* **A project created from the [Agents template](/agents-template/).** It already has Agent Runtime in its backend and worker, a chat interface, a general agent named Flint, and the `agent-best-practices` skill for coding agents. [Work locally](/work-locally/) gets the project running on your machine.
* **A way to run a real turn.** An agent answers only on a stack with real model and sandbox credentials and an address its sandbox can reach. Under the local sign-in bypass it answers, and its calls to your routes are refused: those need a real signed-in person. The project's `test-locally` skill sets up the level each check needs.

A project that did not start from the template installs the `ciridae-agent-runtime` package and its skill first. The [package's README](https://github.com/ciridae-ai/ciridae/blob/main/libs/agent-runtime/README.md) owns both steps.

## Build the agent [#build-the-agent]

You point your coding agent at the `agent-best-practices` skill and describe one task. The skill carries the rest: it leads the coding agent to the guides for the runtime version your backend installs.

<Steps>
  <Step>
    **Describe one task**

    Pick a task with a result you can check, such as "read this invoice and fill in the request", then hand it to your coding agent.

    ```text title="Prompt"
    Use the agent-best-practices skill from our installed Agent Runtime.
    Build an agent for this task, using our existing routes as its tools: <the task>
    Say what success looks like, what files and context it needs, and whose access it uses.
    Prove it completes the task and show me the result.
    ```
  </Step>

  <Step>
    **Try it on Flint first**

    The quickest test needs no new kind of agent. Your coding agent edits Flint's instructions in `backend/src/agents/agent_files_loaded_from_the_codebase_at_sandbox_spin_up/flint/`, then you open **Ask Flint** in the sidebar, choose **New**, name the agent, and send it the task.
  </Step>

  <Step>
    **Give it its own kind when it works**

    A task that deserves its own agent gets a folder of instructions and skills, a definition that names the routes it may call, and a button on the page that owns the work. The project's `backend/src/agents/AGENTS.md` lists these steps for your coding agent, in order.
  </Step>
</Steps>

## Check the whole task [#check-the-whole-task]

An answer that reads well is not the check. Before you rely on the agent:

* **Send the task as a signed-in person** and compare the answer, the records it changed, and any files it returned with what you expected.
* **Send it as someone who lacks access.** The routes must refuse the agent exactly as they refuse that person.
* **Open the turn's trace** in Braintrust, found by the agent's id, to see which tools it called and why the turn ended. Traces are written only when the project's Braintrust key and project are set.
* **Keep the cases.** Rerun them when the instructions, the model, or the routes change.

<Accordions>
  <Accordion title="Under the hood: where the guidance lives">
    The installed `ciridae_agent_runtime` package carries `AGENTS.md` guides that own the exact settings, limits, and rules for its version. A template project's `agent-best-practices` skill sends the coding agent to those guides and to `backend/src/agents/AGENTS.md`, which maps them to the project's files. On another project, the package's installer writes a pointer skill that prints the same guidance.
  </Accordion>
</Accordions>
