hush
AGENTS.md29 starsChanged 17 days agoMITView on GitHub
Hush lets any agent see and drive desktop apps in the background, while the user keeps working. macOS and Linux today; Windows next on the same core. Hush never calls a model: it answers tool calls as fast as the target app allows, in as few tokens as possible. Dependencies point down this table and never sideways between platform crates. hush-core knows nothing about any OS, process or protocol. A platform crate knows nothing about MCP or the CLI. Domain…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 35,196 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository5 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- codebase-designSkill
- improve-codebase-architectureSkill
- untangle-codebaseSkill
- hushSkill
The file
We split this AGENTS.md into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 26
Every OS call lives in a platform crate.
- Distinctive: line 28
Never disturb the user: no activation, raise, focus switch, pointer warp, clipboard use or global event posting.
- Distinctive: line 33
No fixed sleeps. Wait on an observable condition (an accessibility event, a value read-back) with a deadline.
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Working in Hush
Hush lets any agent see and drive desktop apps in the background, while the user keeps working. macOS and Linux today; Windows next on the same core. Hush never calls a model: it answers tool calls as fast as the target app allows, in as few tokens as possible.
Layout
| Crate | Owns | Depends on |
hush-core | domain model, refs, outline, diff, steps, settle policy, the Platform trait | serde |
hush-engine | mirrors per window, running batches, waiting for settle | core |
hush-macos | the macOS Platform: Accessibility, background input, capture, AppleScript | core |
hush-linux | the Linux Platform: AT-SPI, and a hidden Xvfb lane for input, capture and recording | core |
hush-mcp | the MCP server: tool schemas and dispatch | core, engine |
hush | the hush binary: CLI verbs and hush mcp, picks the platform for the OS | all of the above |
Dependencies point down this table and never sideways between platform crates. hush-core knows
nothing about any OS, process or protocol. A platform crate knows nothing about MCP or the CLI.
Domain words are defined in CONTEXT.md.
Crates appear as they are built; the table is the plan they follow.
Rules that keep it fast and small
- Every OS call lives in a platform crate. Undocumented (private) OS APIs live in one file per
platform (
hush-macos/src/private.rs), resolved at runtime, failing closed when missing. - Never disturb the user: no activation, raise, focus switch, pointer warp, clipboard use or
global event posting. Events go to the target process only. If a route can't do that, fail.
The one exception: the lane guard (
hush-macos/src/lane/guard.rs) puts the user's pointer back on their own screens when it slips onto the lane display, so they never land on a screen they can't see. - No fixed sleeps. Wait on an observable condition (an accessibility event, a value read-back) with a deadline. A sleep that remains needs a comment saying what it waits for and the measurement behind its length.
- Tool output is for a model: short, stable refs, byte-stable ordering, no decoration. Measure token counts when changing the outline or diff format.
- Pure logic (outline, diff, refs, settle rules, step parsing) lives in
hush-coreand is tested there with plain data. Platform code stays thin. - Files stay focused. If one passes about 400 lines or mixes concerns, split it. Use the
untangle-codebaseskill for larger cleanups,codebase-designfor the vocabulary.
Checks
cargo fmt --check
cargo clippy --workspace --all-targets -- -D warnings
cargo test --workspaceCI runs these on Linux for every PR, and again on macOS when platform code changes. Tests that
read real apps are #[ignore] and run with cargo test -- --ignored on a Mac with Accessibility
permission. Tests that act on real apps need the owner's go-ahead: they can disturb whoever is
using the machine.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

