StateFabric.dev - Add durable, inspectable state to your AI agents

by
StateFabric adds durable, inspectable state to AI agents by storing session events and rebuilding working context for each turn. It captures user messages, model outputs, and tool activity outside your runtime, so you can inspect histories, replay behaviour, and resume work without losing facts or open tasks. Use it alongside ADK or your own code via an HTTP API and adapters, and let automatic context compaction supply concise messages, summaries, and tasks to the next turn.

Add a comment

Replies

Best
Maker
📌
StateFabric a small infrastructure layer for AI agents that need more context than chat history. Once an agent starts using tools, running for longer sessions between restarts, ‘keep the messages in memory’ doesn’t really cut it. You need to know: - what happened? - what state changed? - which tools were called? - what context should go into the next model turn? StateFabric stores an append-only event log for agent runs, then derives working context from it. Today it supports: - Durable sessions and event storage - User/model/tool event timelines - Reconstructed session state from stored events - Compacted model-facing context - A dashboard for inspecting sessions, raw payloads, compaction artefacts, and usage - Google ADK integration via /adk - Direct Node/REST usage via /client (for custom runtimes) It’s not trying to be an agent framework. Your runtime still owns prompts, tools, model calls, and business logic. StateFabric sits beside it as the state, replay, and context layer. It's an early launch, so I’m deliberately starting with narrow integrations. ADK (JS) and custom node runtimes initially. I’d love feedback from people building agents that need persistence, replay-ability, or better context management across long-running sessions.

Tried replaying a few sessions and seeing the rebuilt context side by side was genuinely useful for catching where my agent drifted. The automatic compaction summaries kept things tight without me tweaking anything.

The separation of session events from runtime logic is a really sharp design call, makes replay and inspection feel first-class rather than bolted on.