flisk-agents
Skill4 starsChanged 34 days agoMITView on GitHub
Build and operate AI agent resources in a local Flisk stack - scaffold an agent (`--type agent`) next to an MCP tool server, a database and a queue, implement its process contract (`/health`, `/ready`, `POST /turn`, `GET /session`, `GET /sessions` with `x-session-id`), choose checkpoint durability, and inspect sessions with `flisk agent sessions`. Use when an app needs a long-running agent with durable sessions. For a generic backend or worker, use flisk-scaffold.
- Reads credentials
- Sends data out
In this repository37 other files it gives its agents.
- AGENTS.mdAGENTS.md
- llms.txtllms.txt
- flisk-benchmarkSkill
- flisk-build-runtimesSkill
- flisk-byoSkill
- flisk-contributingSkill
- flisk-databasesSkill
- flisk-dataSkill
- flisk-demo-bubblesSkill
- flisk-deploy-awsSkill
- flisk-deploy-azureSkill
- flisk-deploy-cloudflareSkill
- flisk-deploy-digitaloceanSkill
- flisk-deploy-flySkill
- flisk-deploy-gcpSkill
- flisk-deploy-herokuSkill
- flisk-deploy-railwaySkill
- flisk-deploy-renderSkill
- flisk-deploy-vercelSkill
- flisk-doctorSkill
- flisk-dry-runSkill
- flisk-frontendSkill
- flisk-generated-filesSkill
- flisk-helmSkill
- flisk-import-composeSkill
- flisk-import-procfileSkill
- flisk-layoutSkill
- flisk-portsSkill
- flisk-scaffoldSkill
- flisk-secretsSkill
- flisk-service-jsonSkill
- flisk-starlark-perfSkill
- flisk-troubleshootSkill
- flisk-uiSkill
- flisk-unfollowersSkill
- flisk-upgradeSkill
- layer-autoresearchSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 23
Put the agent's logic in the turn handler of the generated src/index.ts.
- Very specific: line 42
Run flisk mcp (stdio) so the coding agent drives the stack itself: agent_list lists agent resources, and agent_sessions takes resource plus …
- Very specific: line 46
Keep the contract routes; Tilt and the CLI rely on them.
- Distinctive: line 47
Keep everything in the local Docker + Tilt stack.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AI agents in a Flisk stack
Flisk runs an agent, its MCP tools, a database and a queue behind one local gateway, started by one command.
Workflow
- Scaffold the agent and its tools in one stack:
flisk resource bot --type agent --stack shop --yes flisk resource tools-mcp --type mcp --stack shop --yes--durability files(default) keeps checkpoints on a named Docker volume;--durability postgresstores them in the project Postgres. To start from a complete example instead, clone it:flisk project agent-stack --path <folder> --yes. - Put the agent's logic in the turn handler of the generated
src/index.ts. List any model API key undersecrets.requiredinservice.jsonand put the value in the project.env. flisk up shop, then checkhttp://api.<project>.localhost/api/bot/healthand/ready(use the exact URL fromflisk networks).- Send a turn and read it back:
curl -X POST -H 'x-session-id: s1' -H 'content-type: application/json' -d '{"input":"hi"}' http://api.<project>.localhost/api/bot/turn flisk agent sessions bot # list sessions (add --watch to refresh) flisk agent sessions bot --session-id s1 --json # read one checkpoint
The agent contract
/health: liveness only. Idle is healthy; it never checks the store./ready: 200 when the checkpoint store is reachable and the agent is not draining.POST /turnwithx-session-id: loads that session's checkpoint, runs the turn, commits the checkpoint.GET /sessionwithx-session-id: returns one session's checkpoint.GET /sessionslists all sessions, newest first.- On SIGTERM the agent stops taking turns and drains for up to 10 s. Checkpoints survive restarts, hot reload and
flisk down. Delete the volume yourself (docker volume ls | grep agent-state) to reset sessions.
Operating it from a coding agent
Run flisk mcp (stdio) so the coding agent drives the stack itself: agent_list lists agent resources, and agent_sessions takes resource plus an optional sessionId (without it, it lists the sessions). The rest of the tools mirror the CLI: up, status, logs, resource_restart, down.
Guardrails
- Keep the contract routes; Tilt and the CLI rely on them. An agent scaffolded before
GET /sessionsexisted returns 404 and the CLI reportsSESSION_LIST_UNSUPPORTED; copy that handler from a new scaffold. - Keep everything in the local Docker + Tilt stack; do not invent Kubernetes or another orchestrator.
- Guide: docs/agents/ai-agents.md.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

