
glommer/cachebro
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
glommer/cachebro는 [[T0]에서 가져온 MCP 서버 후보입니다.
개요
glommer/cachebro는 [[T0]에서 가져온 MCP 서버 후보입니다.
개요(AI 번역)
AI 코딩 에이전트를 위한 diff 추적 기능이 있는 파일 캐시. 고성능 임베디드 데이터베이스인 Turso가 제공함.
에이전트는 이미 본 파일을 다시 읽는 데 토큰 예산 대부분을 낭비합니다. Cachebro는 이 문제를 해결합니다: 첫 번째 읽기 시 파일을 캐시하고, 이후 읽을 때는 “변경 없음”(전체 파일 대신 한 줄) 또는 변경된 내용의 압축된 diff를 반환합니다. 에이전트가 스스로 채택하는 파일 리드를 드롭인 대체 기능입니다.
벤치마크
우리는 통제된 A/B 테스트를 진행했습니다: 268파일 TypeScript 코드베이스(오픈코드), 같은 에이전트(Claude Opus), 같은 프롬프트에서 동일한 리팩토링 작업을 수행했습니다. 유일한 차이점은 cachebro가 활성화된 것과 비활성화된 것이었습니다.
| 캐시브로 없이요 | 캐시브로 포함 | |
|---|---|---|
| 총 토큰 | 158,248 | 117,188 |
| 도구 호출 | 60 | 58 |
| 만진 파일 | 12 | 12 |
토큰 수가 26% 줄었습니다. 같은 작업, 같은 결과입니다. cachebro는 전체 파일 내용 대신 캐시 읽기와 압축 diff를 제공함으로써 ~33,000개의 토큰을 절약했습니다.
동일한 코드베이스에서 순차적인 작업을 진행할 때 절감 효과가 누적됩니다:
| 작업 | 사용 토큰 | 캐시에 저장된 토큰 | 누적 절감 |
|---|---|---|---|
| 1. 세션 내보내기 명령어 추가 | 62,190 | 2,925 | 2,925 |
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
cachebro
File cache with diff tracking for AI coding agents. Powered by Turso, a high-performance embedded database.
Agents waste most of their token budget re-reading files they’ve already seen. cachebro fixes this: on first read it caches the file, on subsequent reads it returns either “unchanged” (one line instead of the whole file) or a compact diff of what changed. Drop-in replacement for file reads that agents adopt on their own.
Benchmark
We ran a controlled A/B test: the same refactoring task on a 268-file TypeScript codebase (opencode), same agent (Claude Opus), same prompt. The only difference: cachebro enabled vs disabled.
| Without cachebro | With cachebro | |
|---|---|---|
| Total tokens | 158,248 | 117,188 |
| Tool calls | 60 | 58 |
| Files touched | 12 | 12 |
26% fewer tokens. Same task, same result. cachebro saved ~33,000 tokens by serving cached reads and compact diffs instead of full file contents.
The savings compound over sequential tasks on the same codebase:
| Task | Tokens Used | Tokens Saved by Cache | Cumulative Savings |
|---|---|---|---|
| 1. Add session export command | 62,190 | 2,925 | 2,925 |
| 2. Add --since flag to session list | 41,167 | 15,571 | 18,496 |
| 3. Add session stats subcommand | 63,169 | 35,355 | 53,851 |
By task 3, cachebro saved 35,355 tokens in a single task — a 36% reduction. Over the 3-task sequence, 53,851 tokens saved out of 166,526 consumed (~24%).
Agents adopt it without being told
We tested whether agents would use cachebro voluntarily. We launched a coding agent with cachebro configured as an MCP server but gave the agent no instructions about it. The agent chose cachebro.read_file over the built-in Read tool on its own. The tool descriptions alone were enough.
How it works
First read: agent reads src/auth.ts → cachebro caches content + hash → returns full file
Second read: agent reads src/auth.ts → hash unchanged → returns "[unchanged, 245 lines, 1,837 tokens saved]"
After edit: agent reads src/auth.ts → hash changed → returns unified diff (only changed lines)
Partial read: agent reads lines 50-60 → edit changed line 200 → returns "[unchanged in lines 50-60]"
The cache persists in a local Turso (SQLite-compatible) database. Content hashing (SHA-256) detects changes. No network, no external services, no configuration beyond a file path.
Installation
npx cachebro init # auto-configures Claude Code, Cursor, OpenCode
That’s it. Restart your editor and cachebro is active. Agents discover it automatically.
Or configure manually — add to your MCP config (.claude.json, .cursor/mcp.json, etc.):
{
"mcpServers": {
"cachebro": {
"command": "npx",
"args": ["cachebro", "serve"]
}
}
}
설치
npx cachebro serve설정
{
"mcpServers": {
"cachebro": {
"command": "npx",
"args": ["cachebro", "serve"]
}
}
}