# agentd-core
[agentd](https://agentd.dev) as a library: the agentic loop, the supervisor that
owns it, durable workflows, the A2A surface, and the config system — everything
the `agentd` binary is, minus the binary.
Most people want the binary. Reach for this crate when you need agentd's loop
*inside* your own process — an embedded agent in a larger service, a custom
front end over the same runtime, or tools registered in Rust rather than behind
an MCP server.
```toml
[dependencies]
agentd-core = "2.0"
```
```rust,no_run
use agentd::tools;
// Register a tool the model can call, in-process — no MCP server needed.