rullama-framework
AGENTS.md21 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 code style.
Of the AGENTS.md files we read, the 35,266 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
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
- Very specific: line 32
Test: deno task test (packages/ + tests/).
- Very specific: line 47
Use fallow audit --format json --quiet before committing AI-generated changes.
- Very specific: line 48
Use fallow dead-code --format json --quiet, fallow dupes --format json --quiet, and fallow health --format json --quiet for targeted checks.
- Very specific: line 49
Use fallow list --entry-points --format json --quiet and fallow list --boundaries --format json --quiet to inspect project shape.
- Very specific: line 71
Do not edit: deno/fixtures/ (wire goldens shared with the Rust crates), the <!-- fallow:...
- Very specific: line 73
Always ask before: publishing to JSR, changing a package's public exports, deleting a package, or adding an npm: dependency to a package …
- Very specific: line 84
Before any git commit or git push, run fallow audit --format json --quiet --explain --gate-marker agent.
≈ “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.
Files
<!-- 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
rullamaRust workspace (crates/) and its Deno/TypeScript port underdeno/— 27 JSR packages published as@rullama/*(deno/packages/*). - Main entry points: each
deno/packages/<name>/mod.ts(plus the subpathexportsin that package'sdeno.json); Rust crates undercrates/<name>/src/lib.rs. - Important directories:
deno/packages(the published packages),deno/tests(cross-package integration tests),deno/examples(deno runsamples),deno/docs,deno/fixtures(Rust↔Deno wire goldens),crates/(Rust).
Architecture Notes
- Module boundaries:
@rullama/coreis the zero-dependency type layer; every other package depends on it and never on a sibling except as declared indeno/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/*.jsonare 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-serveranda2a(inbound protocol handling).
Commands (Deno, run from deno/)
- Install: nothing to install —
denoresolves the import map;fallowmust be on PATH (npm i -g falloworcargo 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:fixauto-fixes formatting and fixable lint.
- tests — what CI runs;
- Publishing (like denext, one package per tag): bump the changed package's
deno.jsonversion, commit, thencd 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 eachpublish-deno.ymlrun (OIDC provenance). Without--pushit only reports;--bump patchbumps packages that changed without a bump.deno/scripts/publish.sh [--package <name>]is the manual fallback.deno task jsr:scoresrefreshesdeno/docs/jsr-scores.md. - Coverage for fallow's CRAP score:
deno task coverage:fallow(writesdeno/coverage/coverage-final.json, which the pre-commit hook passes tofallow audit).
Fallow
- Use
fallow audit --format json --quietbefore committing AI-generated changes. - Use
fallow dead-code --format json --quiet,fallow dupes --format json --quiet, andfallow health --format json --quietfor targeted checks. - Use
fallow list --entry-points --format json --quietandfallow list --boundaries --format json --quietto inspect project shape.
<!-- generated:task-matrix:start -->| When the agent is about to... | Run |
| delete an "unused" export or file | fallow dead-code --trace <file>:<export> |
| prove a TypeScript symbol's exact consumers before refactoring | fallow dead-code --type-aware --symbol-impact <file>:<export-or-class.method> |
| delete an "unused" dependency | fallow dead-code --trace-dependency <name> |
| commit or open a PR | fallow audit --base <ref> |
| prioritize refactoring | fallow health --hotspots --targets |
| ask who owns code | fallow health --ownership |
| check untested-but-reachable code | fallow health --coverage-gaps |
| consolidate duplication | fallow dupes --trace dup:<fingerprint> |
| find feature flags | fallow flags |
| check which architecture rules apply to a file before changing it | fallow guard <files> |
| surface security candidates | fallow security |
| understand a finding | fallow 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 (onlystoragecarries 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 file | fallow dead-code --trace <file>:<export> |
| prove a TypeScript symbol's exact consumers before refactoring | fallow dead-code --type-aware --symbol-impact <file>:<export-or-class.method> |
| delete an "unused" dependency | fallow dead-code --trace-dependency <name> |
| commit or open a PR | fallow audit --base <ref> |
| prioritize refactoring | fallow health --hotspots --targets |
| ask who owns code | fallow health --ownership |
| check untested-but-reachable code | fallow health --coverage-gaps |
| consolidate duplication | fallow dupes --trace dup:<fingerprint> |
| find feature flags | fallow flags |
| check which architecture rules apply to a file before changing it | fallow guard <files> |
| surface security candidates | fallow security |
| understand a finding | fallow explain <issue-type> |
| scope a monorepo | --workspace <glob> / --changed-workspaces <ref> (global flags, prefix any command) |
<!-- fallow:setup-hooks:end -->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.

