agentleFS
patrickschillerpatrickschiller/sourcebraid/AGENTS.md

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
  1. Distinctive:

    Never publish access tokens, cookies, local configuration, Keychain data, SQLite indexes, build artifacts, or private Git history.

    line 25
  2. Distinctive:

    Create public release commits from an explicit allowlist of project files.

    line 27
  3. Distinctive:

    Prefer small, reviewable changes and avoid unrelated refactors.

    line 49
  4. Distinctive:

    Keep Chrome code compatible with Manifest V3 and avoid increasing permissions without a documented user need and security review.

    line 50
  5. Distinctive:

    Keep archive paths, YAML frontmatter, URL-hash index shards, and plugin parsing mutually compatible.

    line 52
  6. Distinctive:

    Keep plugin code compatible with Python's standard library unless a dependency is necessary, documented, and accepted by the maintainer.

    line 54
  7. Distinctive:

    Use only synthetic or clearly redistributable content in tests and examples.

    line 58
  8. Distinctive:

    Run the checks relevant to the changed components.

    line 64
  9. Distinctive:

    If a check cannot run because its platform or dependency is unavailable, state that clearly in the pull request rather than claiming it …

    line 91
  10. Very specific:

    Every pull-request commit must include a DCO Signed-off-by: trailer.

    line 100
  11. Very specific:

    Follow CODE_OF_CONDUCT.md.

    line 102
  12. Very specific:

    Do not weaken LICENSE, NOTICE, PRIVACY.md, TERMS.md, contribution provenance, or security-reporting guidance without explicit maintainer …

    line 104
  13. Distinctive:

    Update English and German documentation together when user-facing behavior changes.

    line 113
  14. Distinctive:

    Do not mark work complete while required tests fail or public-release safety checks find private content.

    line 115

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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-private is the maintainer's private authoring repository; sourcebraid is 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.js and tests/.
  • 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 status and 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 \
  build

Maintainers changing the private website should run:

npm --prefix website ci
npm --prefix website test

If 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. Use git commit -s and follow CONTRIBUTING.md.
  • Follow CODE_OF_CONDUCT.md. Report vulnerabilities privately through SECURITY.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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.