The smallest mental model of agentc you need before building your first agent.
Before you build anything, it helps to hold a small map of how agentc works. This page gives you just enough vocabulary to follow the rest of the Get started guides. You do not need the full picture yet; the Concepts section covers everything in depth.
You describe an agent in a single file, and agentc turns that description into a program you can run. There are three things to name:
agent.acl. It describes your agent and is the only thing you write by hand.agentc command. It reads the manifest and produces the artifact.You write the manifest, run agentc build, and get a binary. That binary is the whole application.
An agent is made of a few parts, all declared in the manifest:
react, which calls the model, lets it use tools, and repeats until the task is done. Every graph is checkpointed, so a run survives a crash and resumes where it left off.A minimal manifest brings the first two together:
build {
archetype = "standalone"
}
providers {
anthropic {
models = ["claude-haiku-4-5"]
config {
api_key = secret(runtime("ANTHROPIC_API_KEY"))
}
}
}
agent "my_agent" {
graph {
type = "react"
}
prompt = "You are a helpful assistant."
model {
provider = "anthropic"
name = "claude-haiku-4-5"
}
}Notice runtime("ANTHROPIC_API_KEY") above. Some values are fixed into the artifact when you compile,
and others are read from environment variables when the binary starts. A runtime() value is read at
startup, and wrapping it in secret() keeps it out of logs and diagnostics. This is what lets you
build one binary and run it in different environments by changing environment variables, never
recompiling.
The compiled binary has a small command-line interface with two commands you will use next:
run executes a single request and prints the answer, then exits. It is the fastest way to see your agent work.serve starts the built-in HTTP server so clients can talk to the agent over HTTP.In Build your first agent you will install agentc, scaffold a project, compile it, and run your agent for the first time.
© 2026 pogue.dev. All rights reserved.
CC BY 4.0Search the agentc documentation