惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
The Blog of Author Tim Ferriss
TaoSecurity Blog
TaoSecurity Blog
U
Unit 42
Blog — PlanetScale
Blog — PlanetScale
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
大猫的无限游戏
大猫的无限游戏
NISL@THU
NISL@THU
Scott Helme
Scott Helme
G
Google Developers Blog
T
Threat Research - Cisco Blogs
aimingoo的专栏
aimingoo的专栏
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Apple Machine Learning Research
Apple Machine Learning Research
H
Hackread – Cybersecurity News, Data Breaches, AI and More
T
The Exploit Database - CXSecurity.com
G
GRAHAM CLULEY
The Cloudflare Blog
The Hacker News
The Hacker News
Spread Privacy
Spread Privacy
N
Netflix TechBlog - Medium
Hacker News: Ask HN
Hacker News: Ask HN
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
C
Cisco Blogs
O
OpenAI News
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Forbes - Security
Forbes - Security
Recorded Future
Recorded Future
C
CXSECURITY Database RSS Feed - CXSecurity.com
D
DataBreaches.Net
云风的 BLOG
云风的 BLOG
S
Security Affairs
B
Blog RSS Feed
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
P
Privacy & Cybersecurity Law Blog
Martin Fowler
Martin Fowler
Know Your Adversary
Know Your Adversary
F
Full Disclosure
The GitHub Blog
The GitHub Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Google DeepMind News
Google DeepMind News
博客园 - Franky
F
Fortinet All Blogs
Last Week in AI
Last Week in AI
C
Cybersecurity and Infrastructure Security Agency CISA
L
Lohrmann on Cybersecurity
T
Tenable Blog
V
V2EX
W
WeLiveSecurity
Google Online Security Blog
Google Online Security Blog
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed

Hacker News

I Replaced Whisper with Parakeet on a $55/Month CPU Server. Here Is What Actually Happened. HyperSwitcher – Mac App & Window Switcher CLERC-DATA/epee · Datasets at Hugging Face GitHub - gladiaio/gladia-cli EvenKeel — your money coach Build a Second Brain That Actually Remembers Why It Changed Tokenstead - Find AI Models for Your Hardware GitHub - forgedculture/legibility-field-kit GitHub - ronak-create/FableCut: Zero-dependency browser video editor that AI agents can drive — JSON timeline, MCP + REST, live-reloading UI GitHub - BuceaGeorgia/VIRENA: A minimal Vision-Language-Action model you can read: frozen CLIP + a tiny head on ManiSkill PickCube. Runs on a Mac, no GPU. Fehu - Apps on Google Play GitHub - fresswolf/Slopera: The browser for the slop era Release Kiyeovo 1.0.0 · Realman78/Kiyeovo Noema — AI Company Analysis GitHub - hamidi-dev/opentab: 📊 Browse your AI coding spend in the terminal — OpenCode, Claude Code, Codex & more GitHub - sgInnora/wc2026-prediction-ledger: Receipt-verified AI prediction ledger for World Cup 2026: pre-kickoff sha256-locked forecasts scored vs results, with calibration + market baselines. Live: goalpulse.io/open-data GitHub - michaelwrites67-ctrl/yogen: 予言 Yogen — a 500-agent AI swarm that debates your idea and predicts the outcome. Self-host free with your own Anthropic key. GitHub - teddytennant/wizard: Self-extending autonomous agent in one Rust binary. One-line install, any provider (OpenAI-compatible, Anthropic, xAI) or fully local via llama.cpp, live /evolve self-modification, MCP, messaging gateway, built-in bench arcaide.foo Show HN: Android Developer Verification Package blacklisted in Aurora Store OpenDescent: Private messaging for normal people GitHub - tarunlnmiit/autopilot-jobhunt: AI job agent: scans 130+ careers pages nightly, scores every role against your resume with an LLM (0–100), alerts you on Telegram, and drafts tailored cover letters + resumes. Free & open source. 18 Words - Daily Word Challenge The State of US Local Government Accessibility 2026 flow - Real-time network throughput dashboard for the terminal. - Terminal Trove Battle LLM Robots GitHub - robesris/ffvii-realtime: Speed up Final Fantasy VII (Rebirth / Remake / Revelation) Tactical Mode slow-motion so combat plays at real-time speed Agent Sessions - Local History for AI Coding Agents Scrutora — code, cloud & consent compliance in one platform SoulOS Tutorials GitHub - gaemi/agentic-fc: Open-source football management simulation played by AI agents through MCP and watched through a TUI console. GitHub - talalalrwas/ocr-grab: Flameshot clone that adds OCR. GitHub - saifmukhtar/kinetic figment computer linear.gratis - Free Linear Client Feedback Forms GitHub - atelier-ws/atelier: Runtime for coding agents. Models are getting smarter, but a model is only as capable as the environment supporting it. Atelier is that environment. https://atelier.ws Atlas · Tomesphere | Tomesphere Codenames Generator GitHub - lyfeninja/lyfeninja_blkseal_python_sdk: Lightweight Python client for signing and verifying digital content using lyfe.ninja's BlkSeal product powered by BlkBolt™. Designed for zero dependencies, simple integration, and exact content verification. DateTimeMate OpenScreenShot — Full-page screenshot & annotation tool for Chrome 38-0 — Build Your Premier League Dream Team Cyrinx — data over sound, measured GitHub - BhaveshThapar/mcp-audit Probed — Talk to Your People HN Work GitHub - Northwood-Systems/foreman: Self-hosted LLM gateway. Cost effective, deterministic, and fast. Secure and private by default. A Visualization Language for the AI Era GitHub - weirdGuy/kastor: Declarative language and toolchain for AI agents: define agents, tools and prompts in HCL, then compile to frameworks or manage them on hosted platforms with plan/apply semantics. Abralo - Run multiple Claude Code agents in one window GitHub - mehranzand/repofleet: RepoFleet is an issue-centered CLI tool for managing Git workflows across multiple repositories. GitHub - exmergo/dex: Dex is the agent-native analytics engineering toolkit. Point it at your warehouse and your dbt project. It learns the landscape, authors your transformations, and tells you exactly what to fix when the schema drifts. Built for analytics engineers and data engineers who want more out of their coding agent. Pug — Open Source Product Analytics GitHub - instavm/tarit: A hypervisor and sandbox cloud for self-hosted AI agents and RL Chiptune Radio — Aleph Void, LLC Free Mermaid Live Editor & Diagram Maker GitHub - hirasso/html-obfuscator: Obfuscate emails, phone numbers, and other sensitive data in PHP. Invisible to humans, hidden from bots until they interact. Davit — a native macOS UI for Apple containers Fenzo AI - The perfect course, every time. HTML Drive — Edit and Publish HTML from Google Drive GitHub - rowboatlabs/rowboat: Open-source AI coworker, with memory ZeroGate | Automated Cluster Scaling A tiny scale-free kernel language — Joa Ebert GitHub - arman-jalili/guardian-framework: Architecture Enforcement Framework for AI-Assisted Development Yamanote.fun PostgreSQL on AWS: Size & Benchmark EC2 Instances GitHub - Rodiun/frugon: Free, local, open-source LLM cost analyzer — see where your LLM bill leaks, on your machine. Artificiety — A Fantasy World for AI Agents Ex Situ FlexInference: Drop your AI costs today WhimFiles - Find Any File in Seconds GitHub - josephsenior/Grinta-Coding-Agent: Local-first autonomous coding agent that plans, executes, validates, and finishes software tasks end-to-end. Nectar — The Web Without JavaScript Agent Draw: An agent draws while you talk, built on TLDraw Captchainbox - Make senders work to get into your inbox GitBiased — your whole engineering org, on one calm dashboard Neil the Seal GitHub - animesh-94/Onboard-CLI: An AST-powered, local-first CLI that visualizes complex system architectures and enforces architectural boundaries via instant Git hooks. ridealong — live London trains GitHub - rubix-studios-pty-ltd/rubix-redis-bridge: Secure production-hardened Rust HTTP bridge for Redis with Upstash-style API compatibility, command allowlisting, hard-denied dangerous Redis commands, Docker deployment, and SDK compatibility tests. Chauffeur – Deine Arbeitsumgebung mit einem Klick zurück Clusy | Agent-Native Notebook for ML and Data Science GitHub - dogtorjonah/context-warp-drive See what your community is paying attention to. GitHub - puffinsoft/peek-cli: Let coding agents see your browser. GitHub - vicmaster/framesmith: Open-source MCP server that gives AI assistants a visual design canvas, rendering HTML/CSS scene graphs to PNG via headless Chromium. snowscroll · Instagram, without the spiral. The Tree of "Tree" GitHub - Arthur-Ficial/translate: On-device translator for macOS Tahoe — UNIX filter + drop-in HTTP server compatible with DeepL, LibreTranslate, and Google v2. 100% on-device, no cloud, no LLM, no API keys. GitHub - agenthatch/agenthatch: Where agents hatch. pacwich — Monorepo tooling for Bun, npm, and pnpm workspaces | Documentation GitHub - loopgain-ai/loopgain: An open-source cost controller for AI agent loops — stops a loop when it's actually converged and rolls back before it degrades, instead of running to a fixed max_iterations cap. Real-time loop-gain (Aβ) bands + best-so-far rollback. Adapters for LangGraph, CrewAI, AutoGen, LangChain, OpenAI Agents, and Claude Agent SDK; raw API for custom stacks. GitHub - vishal-dehurdle/state-harness: Runtime safety net for LLM agents. Detects token spirals, kills doomed tasks early, tells you exactly why. Rust core, Python SDK. pip install state-harness GitHub - the0cp/pico: A small, compact, register-based scripting language and virtual machine implemented in C. Inspired by clox. GitHub - nodes-app/swift-markdown-engine: A native AppKit Markdown editor for macOS, built on TextKit 2 and bridged to SwiftUI. GitHub - DO-SAY-GO/freelang: I love freelang GitHub - samchon/ttsc: A `typescript-go` toolchain for compiler-powered plugins and type-safe execution + 500x faster lint integrated into compiler GitHub - michaelaz774/decision-engine: A decision operating system for startup founders, powered by Claude Code. Synthesizes wisdom from 25+ legendary founders and investors into interactive AI-driven decision frameworks. GitHub - Chrilleweb/dotenv-diff: Validate environment variable usage in your codebase GitHub - skorotkiewicz/rudo: A small, elegant dock for Wayland
GitHub - Salnika/dejavu: Stop showing coding agents the same command output twice.
salnika · 2026-07-08 · via Hacker News

Stop showing coding agents the same command output twice.

Dejavu is a PATH shim for Claude Code, Codex, Cursor agent, opencode, Aider, Gemini CLI, and other terminal-based coding agents. It always runs the real command, but when output is unchanged or nearly unchanged, it returns only a compact delta instead of flooding the agent context again.

  • Works without prompting the agent
  • Always preserves exit codes
  • Full output is stored locally and recoverable
  • Supports common commands like npm, pnpm, yarn, git, rg, grep, pytest, cargo, go, tsc, eslint, and docker logs
  • Early benchmark: 52-55% less intercepted output in campaign 2, 87% less output in repeated local rerun loops

Dejavu demo

Why This Exists

Coding agents rerun commands constantly: tests, typechecks, git diff, search, logs, and build output. Most of those reruns are unchanged or only slightly changed, but the agent still rereads the full output. That wastes context and makes the next step harder to see.

Dejavu is the command-output memory layer for that loop. Your agent keeps running normal shell commands. Dejavu remembers what those command outputs looked like last time and only prints the useful part when they repeat.

How It Works

dejavu start <agent> launches the agent with a shim directory at the front of PATH.

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, compact delta, or passthrough

The trust claim is simple: Dejavu never skips command execution. It only changes how repeated command output is displayed.

Installation

Install script (macOS, Linux, WSL):

curl -fsSL https://raw.githubusercontent.com/Salnika/dejavu/master/install.sh | sh

Homebrew:

brew tap Salnika/dejavu
brew install dejavu

npm / npx (the command is still dejavu):

npx @salnika/dejavu start codex   # no install
npm install -g @salnika/dejavu       # or install globally

Cargo:

Prebuilt binaries for each release are on the Releases page. From source:

git clone https://github.com/Salnika/dejavu
cd dejavu
cargo install --path .
dejavu doctor

More detail: docs/INSTALL.md. Maintainers: docs/RELEASING.md.

Quickstart

cd my-project
dejavu start codex

Use the same pattern for other terminal agents:

dejavu start claude
dejavu start aider
dejavu start opencode
dejavu start gemini

Inside that session, the agent keeps using ordinary commands:

pnpm test
git diff
rg "TODO"
cargo test
docker logs api

Bypass Dejavu for one command:

Retrieve full output:

dejavu show latest --stdout

Full command reference (every command and option): docs/CLI.md.

Global Activation (IDE terminals, GUI-launched agents)

dejavu start only covers agents you launch from a terminal. For agents that run inside an app you launch from the Dock — the VS Code integrated terminal, Copilot agent mode, IDE extensions — activate the shims globally:

dejavu shellenv --install     # writes the activation line into your shell profiles

This adds a small managed block to ~/.zshrc, ~/.bashrc, and ~/.profile (idempotent). Target one shell with --shell zsh|bash|sh, and undo it with dejavu shellenv --uninstall. Prefer to wire it up yourself? dejavu shellenv (no flag) just prints the line for eval "$(dejavu shellenv)".

Any shell that reads your profile then resolves npm, git, rg, … through Dejavu, with no DEJAVU_* variable needed: the repo context is rebuilt from the working directory, and shims self-identify to prevent recursion.

Global activation is agent-gated: output is reduced only when an agent is actually reading it.

  • Pipe-capturing agents — Claude Code, the Codex CLI, Cursor's agent — set a marker (CLAUDECODE, CODEX_SANDBOX, CURSOR_AGENT) in the shell they drive and read command output through a pipe. They get reduced output whenever that marker is present (no terminal required — the agent is the pipe reader), exactly as under dejavu start.
  • VS Code Copilot runs commands in a real pty and sets AI_AGENT / COPILOT_AGENT in its agent terminals only, so it gets reduced output when the marker is present and output goes to a terminal.
  • Your own terminals, scripts, pipelines, $(git …), VS Code tasks and the SCM view always get the raw output.
  • DEJAVU_FORCE=1 overrides the gate for custom setups.

Other notes:

  • Outside an agent context, shims take a fast path: resolve the real binary and exec it — no repo detection, no database, nothing recorded. Your own terminal stays at native speed and its history stays out of the cache. DEJAVU=off still bypasses Dejavu entirely for one command.
  • Agents that execute commands without a shell never read your profile and are not covered — check with dejavu doctor from their terminal.
  • dejavu stats --all gives the cross-repo view of what global activation saves.

To deactivate: dejavu shellenv --uninstall.

Example Output

First run still shows bounded command output:

FAIL tests/session.test.ts
  expected 403, received 200

Tests: 1 failed, 142 passed
Full output: dejavu show 8c51f73 --stdout

Unchanged rerun:

dejavu: output unchanged since run 8c51f73.
Command: pnpm test
Exit code: 1

Same failing test:
- tests/session.test.ts expected 403, received 200

Suppressed ~4,820 estimated tokens.
Full output: dejavu show b92d1aa --stdout
Previous output: dejavu show 8c51f73 --stdout

Small delta:

dejavu: output changed since run b92d1aa.
Command: pnpm test
Exit code: 1

Changed lines:
- expected 403, received 200
+ expected 403, received 500

Suppressed ~4,610 estimated tokens.
Full output: dejavu show c7a91e2 --stdout

The command ran each time. Only the displayed output changed.

Safety Model

  • Dejavu always executes the real underlying command.
  • Dejavu does not cache execution results to skip work.
  • Dejavu only compresses, deduplicates, or summarizes what is printed back.
  • Dejavu preserves the real exit code.
  • Dejavu stores full command output locally.
  • Dejavu does not send logs to any server.
  • Dejavu can be bypassed with DEJAVU=off or DEJAVU_DISABLED=1.
  • Mutating or sensitive commands pass through unless Dejavu explicitly supports a safe read-only form.

Useful checks:

dejavu doctor
dejavu doctor --json
dejavu repos
dejavu show latest --stdout
dejavu uninstall

Full details: docs/SAFETY.md.

Supported Commands

Dejavu defaults to passthrough. It optimizes only command shapes it recognizes as safe.

Family Optimized forms
JavaScript package managers npm, pnpm, yarn, bun for test, lint, typecheck, build scripts — including test:* / lint:* / build:* / typecheck:* variants (watch/fix/dev/serve flavors excluded)
Type and lint tsc, eslint without --fix or --fix-dry-run, cargo clippy / cargo check without --fix
Tests vitest run, jest, pytest, cargo test, go test (watch modes and snapshot updates pass through)
Search rg, grep
Files and trees find without side-effecting primaries, ls, tree
Git read-only git status, git diff, git log, git show (human forms only — scripting/machine forms like --porcelain, -s, --name-only, --numstat, --format, -z, @{upstream} pass through so shell prompts, IDE SCM, hooks, and $(git …) keep parsing them)
Logs docker logs, docker compose logs
Your own commands anything you list in [intercept] extra (see below)

Add any command you want intercepted via the config — it gets a shim and the generic reduction (dedup, deltas, bounded summaries, test-runner output sniffing), with the usual guards (watch modes pass through, execution is never skipped):

# ~/.config/dejavu/config.toml
[intercept]
extra = ["make", "terraform", "just"]

Examples of commands that pass through unchanged:

  • git commit, git push, git reset, git checkout, git add, git rebase
  • docker run, docker build, docker compose up, docker compose down
  • npm publish, package installs, interactive init commands
  • watch modes and interactive commands
  • anything Dejavu cannot confidently classify

Benchmark Summary

The built-in suite (dejavu bench) drives the real classify + reduce pipeline over deterministic scenarios — anyone can reproduce these numbers locally, and CI fails if they regress (dejavu bench --check):

Grouped bar chart: tokens the agent reads with vs without Dejavu — js-validation-loop 5,561 vs 2,443 (−56%), git-workflow 10,329 vs 954 (−91%), search-loop 9,346 vs 644 (−93%), large-output 1,057,554 vs 241 (−99.9%), machine-safety identical bars (passthrough by design)

What each scenario simulates:

Scenario Simulates Why it matters
js-validation-loop pnpm test walking every state: fail → identical re-run → different failure → rewrite → pass Covers first-seen, unchanged, small/large delta, and fail→pass
git-workflow git diff over 40 files: first, identical, modified Hunk summaries + dedup for diffs
search-loop rg with 180 matches: first, identical, +5 matches Count/sample first, then only the added matches
large-output A 40,000-line build log, twice Volume guards: tail summary, 14K inline cap, dedup
machine-safety --porcelain, --name-only, @{upstream} Equal bars by design — parsed output is never reduced; --check fails otherwise

Real agent sessions (small, early measurement):

Measurement Campaign 1 Campaign 2
Real Codex sessions 12 12
Reduction on intercepted outputs 38.8-40.2% 52.3-54.8%
Repeated local loop, 4 runs approximately 72% 87.0%
Success 12/12 12/12
Average overhead approximately 62 ms approximately 60 ms
Full-output requests 0 0

Do not read this as a claim about total token spend. In these measurements, Dejavu reduced intercepted command output by 52-55% in real sessions. The strongest effect appears in repeated rerun loops.

Details and reproduction notes: docs/BENCHMARK.md. The chart above is generated from real bench output by scripts/render-benchmark-chart.py.

Comparison With Adjacent Tools

Tool Main idea Dejavu difference
RTK Compress command output Dejavu compares across repeated runs
read-once Avoid rereading unchanged files Dejavu targets shell command outputs
pxpipe Move context into images Dejavu stays text-based and shell-native
Prompt instructions Ask the agent to behave Dejavu intercepts automatically via PATH

Dejavu is complementary to output compressors. It is not a prompt, not an MCP the agent may ignore, and not a test runner. It is a command-output memory layer.

More detail: docs/COMPARISON.md.

Limitations

  • Native Windows support is not implemented; use WSL for now.
  • First runs still need to show useful output.
  • Token counts are estimates, currently based on a configurable character heuristic.
  • Raw output is stored locally after best-effort redaction. Treat the cache as sensitive.
  • Some noisy tools need better parsers and normalizers.
  • Long-running watch output and interactive commands are passthrough.

Contributing

Start with CONTRIBUTING.md.

High-value contributions:

  • weird command output cases
  • parser and normalizer improvements
  • safety reports where Dejavu compacted something it should not have compacted
  • benchmark reports from real agent sessions
  • install smoke tests on macOS, Linux, and WSL

License

MIT. See LICENSE.