agentleFS
BrainwiresBrainwires/rullama-framework/AGENTS.md

rullama-framework

AGENTS.md20 starsChanged 3 months agoApache-2.0View on GitHub

This file gives coding agents project-specific context. Keep it short and update it when workflows change. - Primary app or package: the rullama Rust workspace (crates/) and its Deno/TypeScript port under deno/ — 27 JSR packages published as @rullama/* (deno/packages/*). - Main entry points: each deno/packages/<name>/mod.ts (plus the subpath exports in that package's deno.json); Rust crates under crates/<name>/src/lib.rs. - Important directories: deno/packages (the published packages), deno/tests (cross-package integration tests), deno/examples (deno run samples), deno/docs, deno/fixtures (Rust↔Deno wire goldens), crates/ (Rust).

  • Installs packages
  • Commits and pushes
  • 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.

  • In this repository3 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, 0 are distinctive, and 7 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 7

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Test: deno task test (packages/ + tests/).

    line 32
  2. Very specific:

    Use fallow audit --format json --quiet before committing AI-generated changes.

    line 47
  3. Very specific:

    Use fallow dead-code --format json --quiet, fallow dupes --format json --quiet, and fallow health --format json --quiet for targeted checks.

    line 48
  4. Very specific:

    Use fallow list --entry-points --format json --quiet and fallow list --boundaries --format json --quiet to inspect project shape.

    line 49
  5. Very specific:

    Do not edit: deno/fixtures/ (wire goldens shared with the Rust crates), the <!-- fallow:...

    line 71
  6. Very specific:

    Always ask before: publishing to JSR, changing a package's public exports, deleting a package, or adding an npm: dependency to a package …

    line 73
  7. Very specific:

    Before any git commit or git push, run fallow audit --format json --quiet --explain --gate-marker agent.

    line 84

≈ “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
<!-- fallow:agent-install v1 authored sha256=249c350d89476d9acf9b857e89ac45990294e4f8b42d2dba3abc0f2a110fe939 -->

AGENTS.md

This file gives coding agents project-specific context. Keep it short and update it when workflows change.

Project Overview

  • Primary app or package: the rullama Rust workspace (crates/) and its Deno/TypeScript port under deno/ — 27 JSR packages published as @rullama/* (deno/packages/*).
  • Main entry points: each deno/packages/<name>/mod.ts (plus the subpath exports in that package's deno.json); Rust crates under crates/<name>/src/lib.rs.
  • Important directories: deno/packages (the published packages), deno/tests (cross-package integration tests), deno/examples (deno run samples), deno/docs, deno/fixtures (Rust↔Deno wire goldens), crates/ (Rust).

Architecture Notes

  • Module boundaries: @rullama/core is the zero-dependency type layer; every other package depends on it and never on a sibling except as declared in deno/README.md's dependency diagram. Sibling imports use the bare @rullama/<name> specifier and resolve to the local workspace member.
  • Generated or vendored code: none in deno/; deno/fixtures/*.json are goldens read as text.
  • Sensitive areas: deno/packages/tool-builtins (bash/file/git/web execution), deno/packages/permission (policy enforcement), deno/packages/provider (API keys, request signing), deno/packages/mcp-server and a2a (inbound protocol handling).

Commands (Deno, run from deno/)

  • Install: nothing to install — deno resolves the import map; fallow must be on PATH (npm i -g fallow or cargo install fallow-cli).
  • Build: no build step (JSR publishes TypeScript sources).
  • Test: deno task test (packages/ + tests/); one package: deno test -A packages/<name>/.
  • Typecheck or lint: deno task check = fmt --check + lint + type-check (packages, tests, examples) + deno task doc-lint (JSDoc on every export of the 74 published entrypoints)
    • tests — what CI runs; deno task check:fix auto-fixes formatting and fixable lint.
  • Publishing (like denext, one package per tag): bump the changed package's deno.json version, commit, then cd deno && deno task publish:changes --push — it finds the packages whose version is not on JSR, tags them <package>-v<version> in dependency order and waits for each publish-deno.yml run (OIDC provenance). Without --push it only reports; --bump patch bumps packages that changed without a bump. deno/scripts/publish.sh [--package <name>] is the manual fallback. deno task jsr:scores refreshes deno/docs/jsr-scores.md.
  • Coverage for fallow's CRAP score: deno task coverage:fallow (writes deno/coverage/coverage-final.json, which the pre-commit hook passes to fallow audit).

Fallow

  • Use fallow audit --format json --quiet before committing AI-generated changes.
  • Use fallow dead-code --format json --quiet, fallow dupes --format json --quiet, and fallow health --format json --quiet for targeted checks.
  • Use fallow list --entry-points --format json --quiet and fallow list --boundaries --format json --quiet to inspect project shape.
<!-- generated:task-matrix:start -->
When the agent is about to...Run
delete an "unused" export or filefallow dead-code --trace <file>:<export>
prove a TypeScript symbol's exact consumers before refactoringfallow dead-code --type-aware --symbol-impact <file>:<export-or-class.method>
delete an "unused" dependencyfallow dead-code --trace-dependency <name>
commit or open a PRfallow audit --base <ref>
prioritize refactoringfallow health --hotspots --targets
ask who owns codefallow health --ownership
check untested-but-reachable codefallow health --coverage-gaps
consolidate duplicationfallow dupes --trace dup:<fingerprint>
find feature flagsfallow flags
check which architecture rules apply to a file before changing itfallow guard <files>
surface security candidatesfallow security
understand a findingfallow explain <issue-type>
scope a monorepo--workspace <glob> / --changed-workspaces <ref> (global flags, prefix any command)
<!-- generated:task-matrix:end -->

Agent Rules

  • Do not edit: deno/fixtures/** (wire goldens shared with the Rust crates), the <!-- fallow:... --> managed blocks in this file, .claude/hooks/fallow-gate.sh.
  • Always ask before: publishing to JSR, changing a package's public exports, deleting a package, or adding an npm: dependency to a package (only storage carries any today).
  • Preferred style: idiomatic TypeScript over Rust transliteration — no static new(), no newtype wrapper classes, no free-function accessors that should be methods; JSDoc on every export (JSR "has docs" gate); tests beside the source as <file>_test.ts.

<!-- fallow:setup-hooks:start -->

Fallow local gate

Before any git commit or git push, run fallow audit --format json --quiet --explain --gate-marker agent. If the verdict is fail, fix the reported findings before retrying. Treat JSON runtime errors like { "error": true, ... } as non-blocking.

Audit defaults to gate=new-only: only findings introduced by the current changeset affect the verdict. Inherited findings on touched files are reported under attribution and annotated with introduced: false, but do not block the commit. Set [audit] gate = "all" in fallow.toml to gate every finding in changed files.

For non-skill agents, treat the task map below as the local onboarding source: run the listed fallow command before destructive edits, before commits, and before pull request handoff.

Fallow task map

When the agent is about to...Run
delete an "unused" export or filefallow dead-code --trace <file>:<export>
prove a TypeScript symbol's exact consumers before refactoringfallow dead-code --type-aware --symbol-impact <file>:<export-or-class.method>
delete an "unused" dependencyfallow dead-code --trace-dependency <name>
commit or open a PRfallow audit --base <ref>
prioritize refactoringfallow health --hotspots --targets
ask who owns codefallow health --ownership
check untested-but-reachable codefallow health --coverage-gaps
consolidate duplicationfallow dupes --trace dup:<fingerprint>
find feature flagsfallow flags
check which architecture rules apply to a file before changing itfallow guard <files>
surface security candidatesfallow security
understand a findingfallow explain <issue-type>
scope a monorepo--workspace <glob> / --changed-workspaces <ref> (global flags, prefix any command)
<!-- fallow:setup-hooks:end -->

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.