← Saturday, October 10, 2026Languages & toolsTool

Once caches command output in a per-user background daemon

github.com 5 min read Editor score 6/10

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.
request cache miss produce cache once backgrounddaemon command stdout memory
Once routes calls through a daemon that runs commands on cache misses and stores their stdout. Sketched from the article's own text.

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.

Your note

Private to you. Stored in this browser, and synced to your account when you are signed in.