one-search-mcp
AGENTS.md144 starsChanged 8 months agoMITView on GitHub
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,736 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.
The file
We split this AGENTS.md into the rules it gives an agent
10 rules. About 0 are common, 5 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 5
Check git status --short before editing.
- Very specific: line 6
Read CONTEXT.md, CONTEXT-MAP.md, and relevant docs/adr/ files when they exist.
- Distinctive: line 8
Use the vocabulary defined by the domain context.
- Very specific: line 20
Keep TypeScript strict and ESM-only.
- Distinctive: line 21
Treat MCP tool schemas as public API.
- Distinctive: line 24
Keep browser navigation protected by the SSRF guard.
- Distinctive: line 26
Do not introduce compatibility shims or undocumented configuration behavior without an explicit requirement.
- Very specific: line 31
Run the narrowest relevant test while iterating, then run npm test, npm run lint, and npm run build before handoff when the change scope …
- Very specific: line 36
Keep the package version aligned across package.json, package-lock.json, server.json, and the runtime version exposed by src/index.ts.
- Very specific: line 37
Keep the npm repository URL in canonical git+https://...git form and the server.json description within MCP Registry limits.
≈ “Common” is an estimate: at least 1 in 5 of the 16,597 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
Agent Guide
Start Here
- Check
git status --shortbefore editing. Preserve unrelated user changes. - Read
CONTEXT.md,CONTEXT-MAP.md, and relevantdocs/adr/files when they exist; proceed silently when they do not. - Track implementation work in
.scratch/<feature-slug>/. Followdocs/agents/issue-tracker.mdand use only the labels indocs/agents/triage-labels.md. - Use the vocabulary defined by the domain context. Surface conflicts with an ADR instead of silently overriding it.
Project Map
src/index.ts: MCP server startup, tool registration, and process cleanup.src/tools.ts: public MCP tool schemas and descriptions.src/search/: provider dispatch and provider implementations.src/libs/agent-browser/: browser lifecycle, navigation, and content extraction.test/: Vitest behavior and lifecycle coverage.
Implementation Rules
- Keep TypeScript strict and ESM-only. Local TypeScript imports use
.jsextensions. - Treat MCP tool schemas as public API. Expose only behavior that the implementation honors, and reject removed or invalid inputs at the schema boundary.
- Route every browser task through
runBrowserTask(...); propagate the MCP requestAbortSignalto browser and search operations. - Preserve the shared
safeSearchcontract:0off,1moderate,2strict. Map it explicitly for each provider. - Keep browser navigation protected by the SSRF guard. Private-network access remains opt-in through configuration.
one_extractpreprocesses content only. Do not add prompt, schema, or model-extraction inputs unless the server gains that execution capability.- Do not introduce compatibility shims or undocumented configuration behavior without an explicit requirement.
Tests And Verification
- For a behavior change or bug fix, write a failing Vitest regression test first. Test contracts rather than implementation details.
- Run the narrowest relevant test while iterating, then run
npm test,npm run lint, andnpm run buildbefore handoff when the change scope warrants it. - Browser lifecycle changes require coverage for cancellation, cleanup, and signal propagation. Provider changes must cover every affected dispatch branch.
Release And Documentation
- Keep the package version aligned across
package.json,package-lock.json,server.json, and the runtime version exposed bysrc/index.ts. - Keep the npm repository URL in canonical
git+https://...gitform and theserver.jsondescription within MCP Registry limits. - For executable changes, update
CHANGELOG.mdandPATTERNS.mdwhen the user-visible behavior or a reusable implementation rule changes. Documentation-only changes do not require them. - Validate a release with
npm run release:checkbefore publishing.
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.

