← Saturday, October 10, 2026Languages & toolsTool
Once caches command output in a per-user background daemon
Once caches a command's stdout by command, directory and tenant key, then serves repeats from memory until its TTL expires; the example avoids repeated 1Password fingerprint prompts. Its tenant scoping and expiry model may interest engineers handling local secrets or CLI workflows.
- What
- Once runs a command and caches its stdout in a small per-user background daemon for reuse.
- How
- Cache entries are keyed by command, directory, and tenant; they expire by time limits, and commands that exit non-zero are not cached.
- Why it matters
- It can avoid repeated interactive approvals for commands such as reading secrets, while preserving prompts and returning command exit codes.
Read on github.com → Hacker News · 39 comments
Discussion
Discussion is not switched on yet. Use Note above to keep your own thoughts on this story.
Headline, summary, brief and diagram are written by a model from the source's own text; the link, byline and numbers come from the source. Read the original before relying on a claim.