sourcebraid
AGENTS.md2 starsChanged 2 months agoMITView on GitHub
These instructions apply to human contributors and automated coding agents. - Product name: SourceBraid. - Slogan: SourceBraid — Weave the web into Markdown. - SourceBraid captures web pages, papers, wikis, Gists, PDFs, and shared iOS content as portable Markdown in a GitHub repository controlled by the user. - The archive's Markdown files and Git history are authoritative. The local SQLite index is a disposable, rebuildable search cache. - Preserve provenance. Never fabricate a source title, author, publication date, canonical URL,…
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
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
14 rules. About 0 are common, 11 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
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 25
Never publish access tokens, cookies, local configuration, Keychain data, SQLite indexes, build artifacts, or private Git history.
- Distinctive: line 27
Create public release commits from an explicit allowlist of project files.
- Distinctive: line 49
Prefer small, reviewable changes and avoid unrelated refactors.
- Distinctive: line 50
Keep Chrome code compatible with Manifest V3 and avoid increasing permissions without a documented user need and security review.
- Distinctive: line 52
Keep archive paths, YAML frontmatter, URL-hash index shards, and plugin parsing mutually compatible.
- Distinctive: line 54
Keep plugin code compatible with Python's standard library unless a dependency is necessary, documented, and accepted by the maintainer.
- Distinctive: line 58
Use only synthetic or clearly redistributable content in tests and examples.
- Distinctive: line 64
Run the checks relevant to the changed components.
- Distinctive: line 91
If a check cannot run because its platform or dependency is unavailable, state that clearly in the pull request rather than claiming it …
- Very specific: line 100
Every pull-request commit must include a DCO Signed-off-by: trailer.
- Very specific: line 102
Follow CODE_OF_CONDUCT.md.
- Very specific: line 104
Do not weaken LICENSE, NOTICE, PRIVACY.md, TERMS.md, contribution provenance, or security-reporting guidance without explicit maintainer …
- Distinctive: line 113
Update English and German documentation together when user-facing behavior changes.
- Distinctive: line 115
Do not mark work complete while required tests fail or public-release safety checks find private content.
≈ “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
SourceBraid Repository Guidelines
These instructions apply to human contributors and automated coding agents.
Product contract
- Product name: SourceBraid.
- Slogan: SourceBraid — Weave the web into Markdown.
- SourceBraid captures web pages, papers, wikis, Gists, PDFs, and shared iOS content as portable Markdown in a GitHub repository controlled by the user.
- The archive's Markdown files and Git history are authoritative. The local SQLite index is a disposable, rebuildable search cache.
- Preserve provenance. Never fabricate a source title, author, publication date, canonical URL, or extraction method.
Repository boundaries
sourcebraid-privateis the maintainer's private authoring repository;sourcebraidis the public open-source repository.- Public contributions target
https://github.com/patrickschiller/sourcebraid. - The
website/directory remains private and must not be exported to the public repository unless the maintainer explicitly changes that policy. web-clips/contains a user's private archive. Never copy it, its history, or derived content into the public repository, tests, issues, or screenshots.- Never publish access tokens, cookies, local configuration, Keychain data, SQLite indexes, build artifacts, or private Git history.
- Create public release commits from an explicit allowlist of project files; do not push the private repository's history or use a broad copy command.
Project map
- Chrome extension:
chrome-extension/sourcebraid/. - Shared capture behavior and tests:
chrome-extension/sourcebraid/capture-utils.jsandtests/. - PDF conversion:
scripts/,requirements-docling.txt, and.github/workflows/convert-pdfs.yml; the Chrome extension contains verified bundled copies of these support files for unpacked development and releases. - ChatGPT/Codex plugin:
codex-plugin/sourcebraid/. - iOS app and Share Extension:
ios/. - Public documentation and community policy: root Markdown files and
.github/. - Public launch and community material:
marketing/. - Private website source:
website/; do not include it in a public release unless the maintainer explicitly approves that change.
Working rules
- Inspect
git statusand the relevant files before editing. Preserve unrelated work already present in the checkout. - Prefer small, reviewable changes and avoid unrelated refactors.
- Keep Chrome code compatible with Manifest V3 and avoid increasing permissions without a documented user need and security review.
- Keep archive paths, YAML frontmatter, URL-hash index shards, and plugin parsing mutually compatible. Treat a format change as a migration concern.
- Keep plugin code compatible with Python's standard library unless a dependency is necessary, documented, and accepted by the maintainer.
- Store secrets only through the existing browser storage, environment, or iOS Keychain paths. Never log credentials or write them into the archive.
- Use only synthetic or clearly redistributable content in tests and examples.
- Android remains a roadmap item until the maintainer explicitly starts that implementation.
Required checks
Run the checks relevant to the changed components. For shared capture, scripts, or plugin changes, run both core suites from the repository root:
node --test tests/capture-utils.test.js
python3 -m unittest discover -s tests -p "test_*.py"For an iOS build without signing, run from ios/:
xcodebuild \
-project SourceBraid.xcodeproj \
-scheme SourceBraid \
-sdk iphonesimulator \
-destination 'generic/platform=iOS Simulator' \
CODE_SIGNING_ALLOWED=NO \
buildMaintainers changing the private website should run:
npm --prefix website ci
npm --prefix website testIf a check cannot run because its platform or dependency is unavailable, state that clearly in the pull request rather than claiming it passed.
Legal and community requirements
- SourceBraid code and project documentation are published under the MIT
License in
LICENSE. Do not copy code with an incompatible license. - Third-party dependencies and captured user content retain their own licenses; do not describe them as MIT-licensed SourceBraid code.
- Every pull-request commit must include a DCO
Signed-off-by:trailer. Usegit commit -sand followCONTRIBUTING.md. - Follow
CODE_OF_CONDUCT.md. Report vulnerabilities privately throughSECURITY.md, never in a public issue. - Do not weaken
LICENSE,NOTICE,PRIVACY.md,TERMS.md, contribution provenance, or security-reporting guidance without explicit maintainer review.
Pull request handoff
- Explain the problem, the implementation, privacy or permission effects, and the checks that were run.
- Highlight changes to browser permissions, GitHub scopes, network endpoints, storage formats, deletion behavior, or credential handling.
- Update English and German documentation together when user-facing behavior changes.
- Do not mark work complete while required tests fail or public-release safety checks find private content.
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.

