🪟 Windows TippsThe Gemini desktop app is now available for Windows(11.09.2026 um 17:06 Uhr)
🔧 AI Nachrichten ChatGPT automatically logged out [Fix](12.09.2026 um 17:09 Uhr)
⚠️ Malware / Trojaner / VirenWindows 11 just dropped the tool ransomware abused, Microsoft says don’t restore WMIC(10.09.2026 um 20:11 Uhr)
🪟 Windows TippsServertimeout in Outlook über 10 Minuten verlängern(12.09.2026 um 15:10 Uhr)
🔧 AI Nachrichten Stealing AI Reasoning Traces(08.09.2026 um 12:20 Uhr)
🔧 AI Nachrichten AIs as Modern Genies(08.09.2026 um 19:12 Uhr)
🪟 Windows TippsThe Gemini desktop app is now available for Windows(11.09.2026 um 17:06 Uhr)
🔧 AI Nachrichten ChatGPT automatically logged out [Fix](12.09.2026 um 17:09 Uhr)
⚠️ Malware / Trojaner / VirenWindows 11 just dropped the tool ransomware abused, Microsoft says don’t restore WMIC(10.09.2026 um 20:11 Uhr)
🪟 Windows TippsServertimeout in Outlook über 10 Minuten verlängern(12.09.2026 um 15:10 Uhr)
🔧 AI Nachrichten Stealing AI Reasoning Traces(08.09.2026 um 12:20 Uhr)
🔧 AI Nachrichten AIs as Modern Genies(08.09.2026 um 19:12 Uhr)

🔧 Programmierung 🕛 vor 2 Monaten 4 Min Lesezeit
0

I got tired of my coding agent re-reading the same command output, so I built Dejavu

↗ Quelle (dev.to)
🗣️ Stimme:
📑 Inhaltsübersicht

If you drive a terminal coding agent (Claude Code, Codex, Cursor's agent, Aider, opencode, Gemini CLI), you've probably watched it do this:




  1. Run pnpm test. 40 lines of output. One test fails.

  2. Change something unrelated.

  3. Run pnpm test again. The same 40 lines. The same failure.

  4. Repeat five more times.



Every one of those reruns dumps the full output back into the agent's context. But the information the agent actually needs is the delta: did the failure change? The rest is noise it has already seen.



I kept hitting the same thing with git diff, rg, build logs, and typechecks too. And prompting the agent to "not reread unchanged output" doesn't reliably work. So I built Dejavu, a command-output memory layer for coding agents.






The idea: run the real command, print only what's new



Dejavu is a PATH shim. You launch your agent through it:




CODE
dejavu start -- claude






That prepends a shim directory to PATH. Now when the agent runs pnpm test:




CODE
agent runs:      pnpm test
PATH resolves: <dejavu-cache>/shims/bin/pnpm
shim runs: dejavu run --shim-name pnpm -- test
Dejavu runs: the real pnpm found later in PATH
Dejavu stores: redacted stdout, stderr, metadata, exit code
agent receives: first output, "unchanged" notice, or a compact delta






The agent doesn't know Dejavu exists. It keeps running ordinary commands. Dejavu just remembers what each command printed last time.






What the agent sees



Identical rerun:




CODE
dejavu: output unchanged since run 8c51f73.
Command: pnpm test
Exit code: 1
Suppressed ~4,820 estimated tokens.
Full output: dejavu show b92d1aa --stdout






Small change:




CODE
dejavu: output changed since run b92d1aa.
Changed lines:
- expected 403, received 200
+ expected 403, received 500






The command ran all three times. Only the display changed.






The part I care most about: it never skips execution



The fear with anything in your PATH is that it silently caches and hands your agent stale results. Dejavu doesn't. The invariant:




  • It always runs the real underlying command.

  • It always preserves the real exit code.

  • Full output is stored locally and always recoverable: dejavu show latest --stdout.

  • It only optimizes command shapes it recognizes as safe: test runners, tsc/eslint, read-only git (status/diff/log/show), rg/grep, find, docker logs. Anything it can't confidently classify passes through untouched.

  • Mutating commands (git commit, git push, installs, docker build, watch modes) pass through.


  • DEJAVU=off pnpm test bypasses it for one command.

  • Nothing is sent to a server. The cache is local.



It's not a cache in the "skip work" sense. It's a memory layer for what got printed.






Does it actually help? Early numbers



I want to be precise, because it's easy to overclaim. The built-in suite (dejavu bench) runs the real classify + reduce pipeline over deterministic scenarios:






































Scenario Agent reads without with Dejavu
js validation loop (5x test) 5,561 2,443 (-56%)
git workflow (diff, 40 files) 10,329 954 (-91%)
search loop (rg, 180 matches) 9,346 644 (-93%)
large build log (40k lines x2) 1,057,554 241
machine-readable git equal by design equal


And in ~12 real Codex sessions: 52-55% less intercepted output, and ~87% in repeated local rerun loops.



Important caveat: that's reduction on the outputs Dejavu touches, not a claim about your total token spend. The strongest effect is in rerun loops. The benchmark is reproducible on your machine, and CI fails if the numbers regress (dejavu bench --check).






Try it






CODE
# no install
npx @salnika/dejavu start -- codex

# or
brew tap Salnika/dejavu && brew install dejavu
cargo install dejavu-cli






Then:




CODE
cd my-project
dejavu start -- claude






Rust, MIT, macOS/Linux/WSL (no native Windows yet). Everything is on GitHub: https://github.com/Salnika/dejavu



If you try it, the feedback I'm most after: command shapes where the delta hides something you actually needed, and any case where the classifier reduced something it shouldn't have. Those reports are the most valuable thing right now.

Vollständiger Original-Bericht
Ausführliche Details, Code-Beispiele & Hersteller-Stellungnahme auf dev.to.
↗ Original-Artikel auf dev.to lesen
Wie bewertest du diesen Beitrag?
1 Klick Feedback
Teilen mit Netzwerk & Team:

Community-Analysen & Experten-Meinungen 0

Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
Community Pulse: Relevanz-Einschätzung
1 Klick Experten-Votum
🔴 Akute Relevanz 0%
🟡 In Evaluierung 0%
🟢 Keine Auswirkung 0%
Spannende Innovation 0%
Verwandte Story-Cluster & Quellen (Vektor-KI)
Port 8095 Engine
1 Quelle
The Gemini desktop app is now available for Windows
1 Quelle
ChatGPT automatically logged out [Fix]
1 Quelle
Windows 11 just dropped the tool ransomware abused, Microsoft says don’t restore WMIC
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten I got tired of my coding agent re-reading the same command output, so I built Dejavu

Thematisch verwandte Begriffe: tired, coding, agent, rereading · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...