Unlocking Flexible Hybrid State Management for Agentic LLM Inference
# Add to your Claude Code skills
git clone https://github.com/FutureMLS-Lab/FlashStatesGuides for using ai agents skills like FlashStates.
Last scanned: 12/3/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-12-03T03:30:09.808Z",
"npmAuditRan": true,
"pipAuditRan": true,
"promptInjectionRan": true
}See how FlashStates compares with popular alternatives.
FlashStates is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by FutureMLS-Lab. Unlocking Flexible Hybrid State Management for Agentic LLM Inference. It has 384 GitHub stars.
Yes. FlashStates passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/FutureMLS-Lab/FlashStates" and add it to your Claude Code skills directory (see the Installation section above).
FlashStates is primarily written in Python. It is open-source under FutureMLS-Lab on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh FlashStates against similar tools.
No comments yet. Be the first to share your thoughts!
From $49 · 30 days · terms & refunds
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM lists this project for discovery and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
Automated security scan — not a certification.
Coding agents resend a growing context on every turn. On a hybrid model, which mixes attention with linear-attention or state-space layers, a cached prefix is reusable only with its hybrid state: the attention KV of every token and a recurrent checkpoint at the prefix's exact end. vLLM saves recurrent checkpoints only at KV-cache block boundaries and evicts KV blocks by recency, so each turn recomputes the end of the previous one, and under load whole contexts.
FlashStates changes this with:
This repository holds:
third_party/vllm and third_party/mooncake.vllm/vllm-openai:v0.33.0 image (how the image is built).vllm/vllm-openai:kimi-k31-cu134 image, with FlashStates' vLLM
and Mooncake from the forks' flashstate-k31pro-gb300 branches.(a) vLLM keeps recurrent checkpoints only at block boundaries, so each turn resumes from the last one before the end of the previous turn and recomputes the rest (red). SGLang checkpoints more densely, but under memory pressure a turn can fall back further. FlashStates checkpoints the exact end of each turn and resumes there. (b) GLM-5.3-Flash at 48 concurrent sessions: FlashStates serves 3.1× vLLM's and 4.0× SGLang's prefill throughput per GPU, with 24× fewer median uncached tokens and 88% lower p90 time to first token than vLLM.
On closed-loop replays of coding-agent sessions, with two B200 GPUs per server, FlashStates reaches up to 3.02× vLLM's decode throughput and 3.14× its prefill throughput, and cuts the median uncached prompt tokens per request by 96% and p90 time to first token by 88% (GLM-5.3-Flash at 48 concurrent sessions). With 512 GiB of host cache per engine, its input throughput peaks 26% above the best vLLM or SGLang run in the figure (24% above vLLM's best measured run, at 60 sessions).
On Kimi-K3.1-Pro, one engine on two GB300 trays (eight GPUs, decode context parallelism 8) with DSpark speculative decoding and a 640 GiB Mooncake store, FlashStates' output throughput per GPU peaks 36% above vLLM's best (8,683 against 6,377 tokens per minute, both at 52 sessions), with a p90 time to first token of 2.0 s against 9.1 s, over minutes 15 to 45 of hour-long runs.
benchmarks/ gives the setup, the metrics and the source of each figure's numbers, and reruns
every B200 configuration against the official image. Its tables list our reruns of the four B200 configurations
against the official vllm/vllm-openai:v0.33.0 image (the three models with GPU memory only, and GLM-5.3-Flash with the
Mooncake store), and the Kimi-K3.1-Pro figure's points with their prefill throughput, median uncached tokens and cache
hit rate.
| GPU | Models | Image |
|---|---|---|
| B200 | GLM-5.3-Flash, Qwen3.8-Flash-Next, Nemotron 3 Super | ghcr.io/futuremls-lab/flashstates-b200:v0.1.0-b200 |
| GB300 | Kimi-K3.1-Pro | ghcr.io/futuremls-lab/flashstates-gb300:v0.1.0-kimi-k31-gb300 |
The same images are on Docker Hub as weili0234/flashstates-vllm. The v0.1.0 release lists their full tags and digests. To build from source, see docs/install.md.
This serves GLM-5.3-Flash on two B200 GPUs:
docker run --rm --gpus '"device=0,1"' --ipc=host --network host \
-v /models/glm53flash:/model:ro \
ghcr.io/futuremls-lab/flashstates-b200:v0.1.0-b200 \
vllm serve /model --tensor-parallel-size 2 --enable-prefix-caching \
--mamba-frontier-checkpoint --mamba-prefill-export \
--prefix-cache-eviction gds --prefill-cost-coefficients 1.862e-5 3.33e-6 \
--prefix-cache-leaf-last --prefix-cache-leaf-idle-seconds 60
Clients use vLLM's OpenAI-compatible API unchanged. docs/what-flashstate-changes.md explains each FlashStates flag. The prefill cost coefficients are per model, and benchmarks/configs/ has the settings for every model, with and without the Mooncake store. Kimi-K3.1-Pro runs on two GB300 no