Starter landscape for AI agents on Flisk: a Bun agent resource, an MCP tool server, Postgres, and NATS.
- Docker running
- Tilt installed
- Bun installed
- Flisk CLI
Repository-pinned CLI (optional): Run
bun installfrom the repository root to install the version pinned inpackage.json. Usebun run flisk:projectto initialize project config,bun run flisk:dry-runto preview startup, orbun run flisk:up -- <stack>to start a stack. The global npm and standalone binary installation paths remain available.
git clone https://github.com/flisk-sh/flisk-agent-stack.git
cd flisk-agent-stack
flisk project --yes
flisk upOr from the CLI:
flisk project agent-stack
cd flisk-agent-stack
flisk up| Stack | Resource | Type | Notes |
|---|---|---|---|
| agents | agent-migrator | migrator | Creates the flisk_agent_sessions table once, before the agent starts |
| agents | agent | agent | Custom runtime, durability: postgres: each turn is checkpointed in Postgres |
| agents | tools | mcp | MCP tool server (Streamable HTTP at /mcp), one echo tool to replace |
| agents | postgres | database | Checkpoint store (services/platform/database-management) |
| agents | nats | broker | Messaging (services/platform/messaging), for agents that queue work |
Once flisk up agents is running, find the agent's URL with flisk networks and send turns with the x-session-id header. Each session keeps its transcript in Postgres, so it survives a restart of the agent:
AGENT_URL=<the agent URL from flisk networks>
curl -s -X POST -H 'x-session-id: demo' -H 'content-type: application/json' -d '{"input":"hello"}' "$AGENT_URL/turn"
curl -s -H 'x-session-id: demo' "$AGENT_URL/session"
curl -s "$AGENT_URL/sessions"/session returns the stored messages, including a { "role": "tool", "name", "input", "output", "at" } entry for each tool call (the placeholder turn calls echo once). GET /sessions lists every stored session with its turn count.
/ready answers 503 while the checkpoint store is unreachable. The replacement for the placeholder turn lives in runTurn in services/agents/agent/src/index.ts.
Scaffold more with:
flisk resource my-agent --type agent --stack agents --durability files
flisk resource my-tools --type mcp --stack agents