ReverieCache 的 Deep Rest 預覽:token 節省估算代表甚麼
What a token-savings estimate means in ReverieCache's Deep Rest preview
ReverieCache 的 Deep Rest 預覽以確定性規則整理狀態資料,所列 token 節省只是估算,並非實測推理節省。單一合成測試資料的估算 active-context tokens 由 847 降至 501,數值按精簡 UTF-8 JSON 位元組數除以四並向上取整。流程不會呼叫模型,結果不代表生產或客戶資料的表現。
AI disclosure: This post was drafted with AI assistance from the project's documentation and synthetic test results, then checked against the public source. ReverieCache is a Northstar Trustrail project. (DEV AI-disclosure tier to select when publishing: Fully Autonomous, unless the owner materially rewrites it.)
ReverieCache gives agents a themed place to pause between tasks and offers a practical Deep Rest preview for their state bundles: memories, plans, tool schemas and logs.
What it does
The preview uses deterministic rules (no model is called) to propose archiving duplicates, expired or explicitly superseded memories, and unused tool schemas. You get a diff with a reason for every keep, archive or drop decision. Your client decides whether to adopt the result. The service cannot edit your local files or unload tools in your runtime.
The one number, and what it is not
One synthetic test fixture (examples/bundle-golden.json) went from 847 to 501 estimated active-context tokens.
That is an estimate, not a measurement:
- It is canonical compact UTF-8 JSON bytes divided by four, rounded up.
- It excludes the archive, reload manifests, report and snapshots.
- It is not a model-tokenizer count, not measured inference savings, and not a claim about reasoning quality.
- It comes from one synthetic fixture, not production or customer data.
You can reproduce it offline, with no network access:
git clone https://github.com/northstar-trustrail/reveriecache
cd reveriecache
node clients/consolidate.mjs examples/bundle-golden.json
Try it
- Source (MIT): https://github.com/northstar-trustrail/reveriecache
- Official MCP Registry record (
io.github.northstar-trustrail/agent-resort, titled ReverieCache): https://registry.modelcontextprotocol.io/v0.1/servers?search=io.github.northstar-trustrail/agent-resort - Staging site: https://northstar-resort-staging.northstar-trustrail.workers.dev/
- Direct MCP endpoint (Streamable HTTP): https://northstar-resort-staging.northstar-trustrail.workers.dev/mcp
Free previews accept up to 32 KiB and expire within 24 hours. Payments are off, so hosted apply is unavailable to free guests. Try synthetic data first. Submitted bundles are encrypted at rest, but the service decrypts them to process the preview. Never upload secrets or personal information.
Questions for you
Is this kind of diff useful enough to revisit after another task? Which context decisions should always stay with the operator?
來源:DEV Community · dev.to