agentleFS
HMAKT99HMAKT99/ScBee/AGENTS.md

ScBee

AGENTS.md2 starsChanged 43 days agoApache-2.0View on GitHub

How to build, test and change ScBee if you are an agent (or a person) working in this repo. Node 22.13 or newer.

  • Installs packages
  • 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 repository6 other files it gives its agents.

The file

We split this AGENTS.md into the rules it gives an agent

7 rules. About 0 are common, 3 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    Strict CSP: No inline scripts, styles or event handlers.

    line 21
  2. Distinctive:

    Honest counts: Never show an estimated or padded number.

    line 23
  3. Distinctive:

    Scores are deterministic: No model in the scoring path.

    line 25
  4. Very specific:

    Add a test next to the change (packages/server/src/server.test.ts, packages/registry-core/src/*.test.ts).

    line 29
  5. Very specific:

    If you change openapi.ts, llmsTxt or the skill text, run npm run build && npm run agent-files.

    line 31
  6. Very specific:

    Keep pages readable by machines: every HTML page has a Markdown twin (?format=md).

    line 32
  7. Distinctive:

    Use small pull requests, one at a time.

    line 33

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

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

AGENTS.md

How to build, test and change ScBee if you are an agent (or a person) working in this repo.

What this is

TypeScript npm workspaces: packages/registry-core (scoring, signals, graph, notifications), packages/server (the HTTP app, pages, store), packages/mcp (the MCP server, published as scbee-mcp), packages/cli (npx scbee-cli score, published as scbee-cli; the command it installs is scbee). action/ is the GitHub Action (plain Node, no build). Entry points: packages/server/src/bin.ts (long-running server) and api/index.js (Vercel function). Database: libSQL (SQLite dialect), local file or Turso.

Commands

npm install
npm run build          # tsc -b for all packages
npx vitest run         # the whole suite, about 5 seconds
npm run preview        # local demo with made-up agents on http://localhost:8810
npm run journey        # end-to-end check on a real port with an empty database (GitHub faked): visitor, owners, collaboration, usage, claim, opt-out, operator report, MCP. Build first
npm run agent-files    # regenerate openapi.json, llms.txt, skills/scbee/SKILL.md and skills/launch-check/SKILL.md (build first)
npm run backup         # read-only copy of the database (needs TURSO_* or DATABASE_* env)

Node 22.13 or newer.

Rules that are enforced, not just asked

  • Strict CSP. No inline scripts, styles or event handlers. Scripts live in packages/server/src/client.ts, CSS in design.ts. Insert any text that came from another agent or project with textContent, never innerHTML.
  • Third-party text is untrusted. Listing text, notes, messages and verdict summaries pass through screen.ts and are wrapped (wrapUntrusted, wrapData in envelope.ts) for agents. In Markdown, every third-party string (names, taglines, notes, and also what a visitor typed in a search) goes inside the envelope; headings are fixed text or handles. The envelope neutralises its own tag, so text cannot close it. A test checks every Markdown surface. Never build a notification from text written by someone else.
  • Honest counts. Never show an estimated or padded number. Collaborations count only when both owners confirmed; agents under one owner are not suggested to each other.
  • No feature may attack or probe other agents or sites. ScBee never runs an agent or calls an agent's endpoint.
  • Scores are deterministic. No model in the scoring path. Add a test with every new check, and give every lost point a fix.
  • Secrets stay out of the repo. API keys are stored hashed. Never log a key, token or private key.

Changing things

  • Add a test next to the change (packages/server/src/server.test.ts, packages/registry-core/src/*.test.ts). The suite must pass before a PR.
  • Database changes are additive: new tables or columns with defaults. The live database is shared, so do not drop or rename.
  • If you change openapi.ts, llmsTxt or the skill text, run npm run build && npm run agent-files. The skill is hash-pinned: version 1 in skill.ts must never change (a test pins its hash); add a version 2 instead.
  • Keep pages readable by machines: every HTML page has a Markdown twin (?format=md).
  • Use small pull requests, one at a time. Do not push to main, and do not add automated bots that act on GitHub from a personal account.

Where things are

app.ts routes and API, store.ts tables and queries, html.ts and project.ts pages, agentview.ts Markdown twins, design.ts CSS, card.ts share cards, discovery.ts robots, sitemap, llms.txt and the agent card, openapi.ts the public contract. Docs are in docs/.

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.