Your application
Your domain.
Your composition root.
Keep your types, handlers, and business rules. Pass dependencies explicitly to the code that needs them.
net/httplog/slogcontextStart with the standard library. Add only what you need. Your architecture, your dependencies, your decisions.
Start with one package. No CLI or generated project required.
Built to work with AI agentsCoherence without the takeover.
Libraries your application calls. Adopt one package or compose a service. The architecture stays in plain Go, where you can read it. Should I choose Arkoren?
Build on net/http, log/slog, and context. Keep standard types at your boundaries.
Construct your dependencies and register your hooks. No required DI container or automatic discovery.
Install vendor modules separately. Use the facade, or reach the native client when you need it.
Construction, errors, testing, lifecycle, and optional telemetry follow a consistent vocabulary.
Offline agent skills, Markdown guides, and typed MCP tools give agents explicit context and interfaces.
The system, in pieces
Start with one capability. Add another when the work calls for it. Your domain is the center—not a framework’s application model.
Your application
Keep your types, handlers, and business rules. Pass dependencies explicitly to the code that needs them.
net/httplog/slogcontextCore capabilities
HTTP, authentication, data, background work, and observability—with consistent boundaries.
Chosen drivers
Vendor integrations live in separate modules. Core has no third-party dependencies; it uses the standard library and Arkoren’s own foundations.
Choose your infrastructureIndependent foundations
Standalone modules with standard-library dependencies only.
Inside the toolkit
Familiar building blocks. Focused libraries. An application that stays yours.
Build / start with what you know
Keep standard HTTP requests and responses. Return errors to the router; it renders them centrally as Problem Details.
Add typed validation, authentication, plain-Go authorization, browser protections, HTML, and SSE as your application grows.
Start with the quickstarttype Greeting struct {
Name string `json:"name"`
}
routes.Post("/hello", func(w http.ResponseWriter, r *http.Request) error {
input, err := request.JSON[Greeting](r, request.Strict())
if err != nil {
// The router renders invalid JSON as a 400 Problem Details response.
return err
}
return response.JSON(w, http.StatusOK, map[string]string{
"message": "Hello, " + input.Name + "!",
})
})Test / prove the behavior
Use memory drivers for local state and recording fakes for outbound work. Test the real facade without starting a broker or making an external request.
Each service contract also ships a conformance suite to check drivers against shared rules.
Test with recording fakesfunc TestRegisterSendsWelcome(t *testing.T) {
t.Parallel()
fake := queuetest.New()
signup := NewSignup(queue.NewDispatcher(fake))
if err := signup.Register(t.Context()); err != nil {
t.Fatal(err)
}
fake.AssertDispatchedCount(t, Welcome, 1)
}NewSignup and Welcome belong to
your app. This proves dispatch, not email delivery.
Run / choose the infrastructure
Your application calls a facade. A driver connects it to the backend. Change the wiring—not the boundary your business logic depends on.
store := cache.New(memorycache.New())driver := rediscache.New(func(store *rediscache.Builder) {
store.Addr("cache:6379")
})
store := cache.New(driver)Same facade. Same application call.
home := cache.NewKey[string]("greetings.home")
err := store.Put(ctx, home, "hello")Register startup, cleanup, and readiness checks explicitly. The application lifecycle coordinates probes and graceful shutdown.
Follow the lifecycle ↗app := application.New()
err := app.Run(ctx, func(compose *application.Composer) {
compose.Cleanup(driver.Stop)
compose.Startup(driver.Start)
compose.Check("cache", driver.Ping)
})These focused excerpts assume an operation context named ctx; handle returned errors. Run waits for cancellation or runner completion, then runs cleanup. Review durability, capabilities, and lifecycle when changing drivers. Native clients stay accessible. See imports and complete wiring.
Across service calls. SQL transactions travel through context; nested transactions use savepoints. Compose a transaction ↗
Across process boundaries. Opt into vendor-neutral telemetry and trace propagation through queues and broadcasts. Choose telemetry ↗
Inspect / operators & agents
Expose selected health, readiness, routes, and bounded traces, logs, and metrics as protected MCP tools. Operators and agents discover the same catalog.
Attach capture before startup and publish only the tools you intend to expose. Retained records are evidence, not a complete history.
Publish selected diagnosticsFirst connect and authenticate the CLI. These commands assume default diagnostic groups.
# Discover the actual catalog
arkoren tools --json
# Continue only if the wait succeeds
arkoren app:ready --wait --timeout 30s
# Inspect retained failed traces
arkoren telemetry:traces --status error --since 5mFailed waits exit nonzero. Actions are not automatically replayed.
Context to build. Tools to use.
Give your AI coding agent the same guides you read. Expose selected application operations as typed Model Context Protocol (MCP) tools. Two different interfaces, with your architecture and access policies still yours.
For the coding agent
The bundled skill includes guides, examples, pitfalls, and canonical API links. The CLI installs it offline; local edits block managed updates. Your AGENTS.md remains yours.
Keep the CLI’s documentation snapshot aligned with your modules. Discovery varies by agent; point it at the installed skill when needed.
For the runtime assistant
Define immutable, typed MCP tools without a protocol SDK in your application logic. Register them through an optional HTTP adapter that validates input and encoded output without replaying handlers.
Authentication, capability availability, and resource authorization stay application-owned. Native SDK registrations are outside the managed checks.
With the Arkoren CLI installed, run from your project root. The guides are copied to .agents/skills/arkoren/; your dependencies and AGENTS.md stay unchanged.
arkoren skills installStart where you are
Add Arkoren to your existing Go application. Keep your router, startup code, and layout. No CLI or generated service required.
Run beside your existing go.mod.
go get arkoren.dev/coreFollow the installation guide to add one capability at a time. Import only the packages you need; your application keeps its own entry point.
Add to your project