Skip to content

A small Go library 
for building LLM agents

Agents that run the same way on every major provider. 
Tools are Go functions. Sessions are replayable logs.

$go get crux.foo
A gopher wizard with a magic wand
crux.RegisterTool("lookup_order", "Look an order up by its ID",
	func(ctx context.Context, in struct{ ID string `json:"id"` }) (Order, error) {
		return orders.Get(in.ID)
	})

agent, _ := crux.New("support", crux.ClaudeHaiku4_5, crux.WithTools([]string{"lookup_order"}))
session, _ := crux.NewSession(ctx, agent)

answer, err := session.Run(ctx, "Where is my order A-1001?")
// Order A-1001 shipped yesterday and arrives on Friday.

Everything you need to build agents in Go

crux handles providers, tools, sessions and approvals, so you can focus on what your agent does.