Crucible Docs

Build your first agent

Take one concrete task from an idea to a checked result, with your coding agent doing the build.

Before you start

  • A project created from the 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 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 owns both steps.

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.

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.

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.

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.

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.

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.

On this page