ใในใฑ(Hasuke)
A simple, lightweight AI Agent written in Haskell.
๐ ๏ธ Installation
# 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 run
Note: You can also use
ANTHROPIC_AUTH_TOKENfor authentication.
๐ Project Structure
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
๐ License
MIT