snap-o
AGENTS.md114 starsChanged 58 days agoApache-2.0View on GitHub
Snap-O is a public, open-source Android inspection tool. Use synthetic data in tests and examples. Never publish credentials, captured private traffic, confidential implementation details, or private issue-tracker links, identifiers, or content. Review the full diff, commit message, and PR text for sensitive information before publishing. Follow release/README.md when changing protocols, published APIs, version metadata, or packaging. Update release/ checks and tests when protocol definitions or source paths change. Use plain technical English in all prose, including READMEs, docs, code comments,…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 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.
- app-macos/AGENTS.mdAGENTS.md
- tools/AGENTS.mdAGENTS.md
- tool-sdk/host/AGENTS.mdAGENTS.md
- snap-o-network-inspectorSkill
- snap-o-tweaksSkill
The file
We split this AGENTS.md into the rules it gives an agent
6 rules. About 1 is common, 2 are distinctive, and 3 are very specific to this project.
≈1
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
Read the component's AGENTS.md before changing it.
- Very specific: line 19
Keep macOS ADB and device transport in app-macos/Snap-O/Device/.
- Very specific: line 22
When changing shared behavior, check the Android libraries, macOS client, web tool, and both Python CLIs.
- Distinctive: line 27
Do not add helper framework dependencies or change packaging just to introduce test clocks.
- Common: line 32
Use synthetic data in tests and examples.
- Very specific: line 36
Follow release/README.md when changing protocols, published APIs, version metadata, or packaging.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 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
Snap-O is a public, open-source Android inspection tool.
Repository Layout
app-macos/: macOS app, device transport, and native tests.tools/: Network and Tweaks, each with Android libraries, a frontend, and CLI tests.tool-sdk/: tool plugin authoring APIs, runtime, and Gradle integration.tool-reader/: Android helper used by the macOS app to read tool plugin metadata and frontend assets.device-helper/: session-scoped Android clipboard helper bundled with the macOS app.skills/: installable Network and Tweaks skills, each bundling its standalone Python CLI.examples/: Android demo apps, an independent tool plugin project, and CLI examples.build-logic/andgradle/: internal Gradle conventions and root build tooling.contracts/: shared protocol definitions and fixtures.docs/: GitHub Pages sources and theme. Seedocs/README.mdfor build conventions.
Working Across Components
- Read the component's
AGENTS.mdbefore changing it. - Keep macOS ADB and device transport in
app-macos/Snap-O/Device/. Keep UI code in the app and tool plugin frontends. - Android tool plugins use
tool-sdk/coreand itsToolServerAPI. Keep shared socket and HTTP behavior in the core library. - Each Python CLI implements its own transport; it does not use the Swift client.
- When changing shared behavior, check the Android libraries, macOS client, web tool, and both Python CLIs. Use
contracts/, its fixtures, anddocs/tweaks-protocol.mdto keep them compatible.
Test clocks
- macOS timing tests use the existing
continuousClockdependency andTestClockfor both time reads and sleeps. See Native test synchronization. - Do not add helper framework dependencies or change packaging just to introduce test clocks.
- Preserve regression coverage when removing sleeps. Do not replace them with deleted tests or extra test time limits; CI already bounds hangs.
Public Repository
Use synthetic data in tests and examples. Never publish credentials, captured private traffic, confidential implementation details, or private issue-tracker links, identifiers, or content. Review the full diff, commit message, and PR text for sensitive information before publishing.
Release readiness
Follow release/README.md when changing protocols, published APIs, version metadata, or packaging. Update release/ checks and tests when protocol definitions or source paths change.
Writing
Use plain technical English in all prose, including READMEs, docs, code comments, UI text, commit messages, and PR descriptions. Prefer common words, active voice, and sentences of about 15 words, with one main idea each. Keep necessary technical terms, explain unfamiliar jargon for the intended reader, and preserve exact meaning. Remove repetition, but do not make the prose choppy or omit useful detail.
Code comments should explain non-obvious reasons or constraints, not repeat what the code does. Before finishing, reread new or changed prose for clarity and accuracy.
Pull Request Descriptions
Lead with a short paragraph explaining the problem, its impact, and why the PR is needed. Put it before ## Summary, without a ## Why heading. Follow the summary with ## Validation, listing the checks performed and any remaining limitations. Keep the description concise and specific.
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.

