Menu

We Cut Agent Token Overhead 28–75% on a 17,896-File Codebase — Here's What Actually Happened to Code Quality
📰

We Cut Agent Token Overhead 28–75% on a 17,896-File Codebase — Here's What Actually Happened to Code Quality

DEV Community: opensource·Scott Crossen·about 8 hours ago
#ewOr4Jh6
#devtoopensource#devto#dev#crystals#context
Long article (1206 words) — no AI summary yet.
Reading 0:00
15s threshold

Every time you run a coding agent on a serious repository, it burns tens of thousands of tokens re-reading the same Markdown files ( AGENTS.md , MEMORY.md , SKILL.md , runbooks, architecture docs) and rediscovering the same multi-step workflows from scratch.

I built an open-source toolkit called Agent Crystals (zero dependencies, Node.js 22+, Apache-2.0, 4-tool MCP server + native harness pattern) to fix that: compile the Markdown teams already maintain—and recurring tool traces—into reviewable, freshness-checked .crystal.json artifacts.

Let me be upfront about prior art. The core compile-and-replay loop isn't new—papers like SkillCache , FlashScript , and PreAct cover similar ground, and tools like Stagehand and Skyvern cache actions internally. What I wanted wasn't another vendor-locked cache.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.