Urgent.News

What's breaking now, across thousands of outlets.

Tech

Flisk's Agent Resource: Durable Agents With Sessions You Can Restart

An agent is a process that holds a conversation. Restart the process and the conversation can disappear, unless something saves it. Flisk's agent resource type is built for that case. It scaffolds an agent service with durable checkpoints, routes each conversation by session, and drains in-flight turns before shutdown. This article covers the resource type. The series continues with tools,…

Flisk provides a resource type for creating durable agents with session-aware conversations. When you restart the process, the conversation is preserved thanks to durable checkpoints. The agent service is scaffolded with Traefik routing by session, ensuring concurrent conversations are kept separate. Upon graceful shutdown, in-flight turns complete and commit before stopping.

To use Flisk, you declare the agent settings in service.json, specifying the runtime as custom for plain Bun or Node code. The checkpoint is stored in a Docker volume, which must be removed manually to prevent accidental data loss. Requests include the x-session-id header, allowing Traefik to route by session. Flisk provides two health routes, /health and /ready, to verify checkpoint accessibility.

Your agent code only needs to implement the runTurn(checkpoint, input) function, where you call the model provider and return the response. Flisk handles checkpoint loading, appending user messages, committing atomic updates, and returning the reply. You write the custom logic for model calls and prompts evaluation. Flisk does not manage prompts, model selection, or state storage cost, as these depend on your agent framework.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Apps that block YouTube Shorts on iPhone without affecting normal videos (comparison 2026)

In the YouTube app, it is impossible to completely cut off Shorts with an adult account. The setting that comes closest to this is the Shorts feed limit, which you can set to 0 minutes, but once the…

  • YouTube Shorts cannot be completely removed on adult accounts.
  • Short limit set to zero minutes is the closest setting.
  • Apps are needed to hide Shorts while keeping normal videos.

Flisk MCP Resources: Give Your Agents Tools That Run Next to Your Services

Agents are only as useful as the tools they can call. An mcp resource in Flisk is a Model Context Protocol server that runs in the same local stack as your services.

  • Flisk MCP Resources offer tools running alongside services in a single local stack.
  • MCP server built with Docker, launched by flisk up, routed via Traefik.
  • Server includes health check at /health, placeholder tool named echo.

Flisk as a Control Plane: Let Your Coding Assistant Run the Whole Local Stack

The mcp resource puts an agent's tools inside your stack. The flisk mcp command does the reverse: it lets an assistant control the stack.

  • Flisk MCP enables coding assistants to control local development stack
  • Assistant can check status, start services, read statuses, fetch logs
  • Restrict assistant access to sensitive operations like volume deletion

Running a Python or LangGraph Agent as a Flisk Worker, With Dependencies Declared

Not every agent answers HTTP requests. Some work through a queue: they pick up a task, call a model, write a result, and wait for the next one. Flisk's worker resource type fits that shape.

  • Worker agents differ from HTTP-response agents, using a queue system for task execution.
  • Flisk worker resource requires Postgres and NATS services as dependencies, declared in service.json.
  • Worker must be idempotent, logging task execution with unique IDs and enforcing a retry limit.

More from Saturday 24 October →