A simple, lightweight AI Agent written in Haskell.
# Build with Stack
stack build
# Set your Anthropic API key
export ANTHROPIC_API_KEY=...
# Set different LLM provider
export ANTHROPIC_BASE_URL=https://...
# Run
stack runNote: You can also use
ANTHROPIC_AUTH_TOKENfor authentication.
hasuke/
βββ app/Main.hs -- Entry point
βββ src/
β βββ Types.hs -- Core type definitions
β βββ Tool.hs -- Tool registry & built-in tools
β βββ Provider.hs -- LLM Provider interface (Anthropic)
β βββ Agent.hs -- Agent core logic & turn handling
βββ hasuke.cabal -- Package config
MIT