Build agents with structural trust
Design the constraints of intelligence, not the intelligence itself. A Go runtime where trust is the product.
go get github.com/felixgeelhaar/agent-go Engineered for Production
Canonical State Machine
7 states with explicit semantics. Side effects only in Act state. Deterministic, auditable execution flow.
Policy Enforcement
Tool eligibility per state. Budget limits. Approval requirements for destructive actions. Constraints, not hope.
Resilient Execution
Circuit breakers, retry with backoff, bulkheads, timeouts. Built on battle-tested patterns via Fortify.
Tool Annotations
ReadOnly, Destructive, Idempotent, Cacheable. Metadata that influences behavior, not just documentation.
Human-in-the-Loop
AskHuman decision type. Pause execution, collect input, resume with evidence. Built-in approval workflows.
Knowledge Store
Vector embeddings with cosine similarity search. RAG-ready architecture for persistent agent memory.
500+ Tools, Opt-In
Modular contrib packages. Import only what you need. Every tool has annotations, schema validation, and resilience built in.
Security & Crypto
Encryption, hashing, signing, key generation, JWT operations
19 toolsData Processing
JSON, YAML, CSV, Excel, archive, template, regex
80+ toolsNetwork & Protocol
HTTP, DNS, SSH, MQTT, gRPC, WebSocket, port scanning
90+ toolsDatabase & Storage
SQL, PostgreSQL, SQLite, Redis, filesystem operations
30+ toolsAI/ML & Analytics
Embeddings, classification, NER, statistics, charting
90+ toolsIntegrations
GitHub, Slack, Jira, browser automation, Git operations
50+ toolsText & Content
Markdown, HTML, XML, QR codes, text similarity, AST parsing
80+ toolsUtility
UUID, hash, color, random, validation, date/time, cron, semver
90+ toolsgo get github.com/felixgeelhaar/agent-go/contrib/pack-json@v0.5.0 Canonical Execution States
| State | Purpose | Side Effects | Terminal |
|---|---|---|---|
intake | Normalize and validate goal | No | No |
explore | Gather evidence, read-only operations | No | No |
decide | Plan next action | No | No |
act | Execute side effects | Yes | No |
validate | Confirm action outcomes | No | No |
done | Successful completion | No | Yes |
failed | Error termination | No | Yes |
Key Invariant: Only the act state permits side effects. All other states are pure observation and decision.
Quickstart
# Add agent-go to your project
go get github.com/felixgeelhaar/agent-goAgents in Action
Watch real agents execute through the state machine. Click the tabs to explore different use cases.
File Operations Agent
View CodeManages files in a workspace: read, write, list, and delete operations.
Available Tools
list_dirReadOnlyList files and directories
read_fileReadOnlyRead contents of a file
write_fileIdempotentWrite content to a file
delete_fileDestructiveDelete a file (requires approval)
Execution Trace
Domain-Driven Design
Core Domain
agent/State, Decision, Run, Evidencetool/Tool, Annotation, Registrypolicy/Budget, Approval, Constraintledger/Audit trail, Events
Application Layer
engine.goOrchestration serviceoptions.goConfiguration
Infrastructure
statemachine/Statekit integrationresilience/Fortify patternsplanner/Mock, Scripted, LLMstorage/Memory, Filesystem
Public API
agent.goEngine, Options, Re-exportsbuilders.goFluent constructors
Tool Packs new
pack-*/500+ opt-in tools as Go modulesstorage-*/Postgres, Redis, SQLite, DynamoDBplanner-llm/Claude, OpenAI, Gemini, Ollamadashboard/Observability UI
Ready to build trustworthy agents?
Start with constraints. Add intelligence later.