Skip to Content
Amaru
Amaru LightContributing

Architecture

The components of the Amaru Light daemon, including scheduler, ticket sources, forge, agent drivers, workspace, checks, store, web UI and prompt guard.

Amaru Light is one Rust binary, amaru, plus the separate amaru-guard crate. A deterministic orchestrator decides what happens to each ticket; no language model picks the work. The daemon polls GitHub (60 seconds by default) and uses no webhooks.

Components

ComponentRoleImplementation
SchedulerIntake, the ticket queue, worker slots, polling pull requests and retentionsrc/scheduler/
LifecycleOne ticket's steps, its session and review roundssrc/lifecycle/
Ticket sourceList, claim, comment on and label issues; dependenciesGitHub through gh, Jira through curl (src/forge/)
ForgePush branches, open pull requests, read reviews and checks, replyGitHub through gh (src/forge/)
Agent driversStart and resume sessions, stream events, cancelClaude Code, Codex and IBM Bob (src/agent/)
WorkspaceMirror clone, one worktree per ticket, retentionGit worktrees (src/worktree.rs, src/cleanup.rs)
ChecksThe project's commands, with timeoutsShell (src/checks.rs)
StoreTickets, states, session IDs and the event logSQLite (src/db.rs)
Web interfaceThe pages and JSON API served by amaru servesrc/web/, assets in web/
Prompt guardScreens untrusted text before the agent reads itsrc/guard.rs, src/lifecycle/screen.rs, crate guard/

Modules

ModuleRole
bin/amaru.rs, app.rsCommand line and wiring
contract.rs, prompts.rsThe result file and the prompts
process.rsChild processes
ticket.rs, settings.rsTicket states and configuration
login/, setup/, install.rsSigning agent CLIs in, setting them up and installing them

The prompts in prompts/ are compiled into the binary and can be overridden per installation.

Based on README.md, docs/design.md and the src/ tree. Where design.md predates the code (it lists only Claude Code and Codex, and says the daemon has no HTTP interface), this page follows the code.

Next steps

On this page