agentleFS
me-publicme-public/nemus/AGENTS.md

nemus

AGENTS.md19 starsChanged 3 months agoMITView on GitHub

This file gives AI coding agents (Claude Code, Cursor, pi, and others) the context they need to work productively in this repository. If you are an agent, read this before making changes. If you are a human, this doubles as a quick orientation to the codebase. Nemus is a TypeScript CLI for managing multi-repo development workspaces. It clones a set of Git repositories into a single workspace directory, then lets you operate across all of them at once — check…

  • Installs packages
  • 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,773 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, 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
  1. Very specific:

    TypeScript, ES modules, Node built-ins: Keep dependencies lean; prefer the standard library and the packages already in package.json.

    line 71
  2. Distinctive:

    No remote-execution or hosted-infrastructure code — everything runs locally.

    line 79
  3. Distinctive:

    No references to any specific company, internal service, or private tooling.

    line 80
  4. Very specific:

    Use generic, illustrative names in docs and examples (e.g.

    line 81
  5. Very specific:

    Read this file and the relevant src/commands/ or src/utils/ module before editing.

    line 88
  6. Very specific:

    Keep documentation (README.md, skills/) in sync when you change behavior.

    line 91
  7. Distinctive:

    Prefer small, reviewable pull requests with a clear description of the change.

    line 92

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 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

This file gives AI coding agents (Claude Code, Cursor, pi, and others) the context they need to work productively in this repository. If you are an agent, read this before making changes. If you are a human, this doubles as a quick orientation to the codebase.

What Nemus is

Nemus is a TypeScript CLI for managing multi-repo development workspaces. It clones a set of Git repositories into a single workspace directory, then lets you operate across all of them at once — check status, sync, switch branches, run commands, analyze cross-repo dependencies, and more — with one command instead of looping over each repo by hand.

Nemus also integrates with AI coding agents. It can generate per-workspace context, register an MCP server, and hand a freshly created workspace off to your agent of choice. Supported agents include Claude Code, pi, OpenCode, Codex, and Gemini.

The CLI is invoked as nemus (with nem as a short alias). A shell integration adds nemus/nem functions plus a nemgo helper so the shell can auto-cd into a workspace after create/list/go commands (a child process cannot change its parent shell's directory, so this is done via shell functions).

Repository layout

bin/            # CLI entry point (bin/workspace.js) — mapped to `nemus` and `nem`
src/
  program.ts    # Commander program: wires up all commands and flags
  commands/     # One module per command (create, list, sync, status, branch/, suite/, cache/, …)
  utils/        # Shared helpers: config, workspace metadata, git, cache, agent config
  mcp/          # MCP server + installer (server.ts, install.ts, tools.ts)
  cli/          # Interactive TUI and AI-prompt entry points
  pi-extensions/# pi extension templates copied into dist on build
  scripts/      # Helper scripts bundled into dist
  types/        # Shared TypeScript types
skills/         # Agent skill docs (Markdown) installed into agent skill dirs
assets/         # Logos and imagery
scripts/        # postinstall + build-time scripts
install*.sh, uninstall.sh, sync-permissions.sh   # Install / shell-integration scripts

Tests live next to the code they cover as *.test.ts files and run under Vitest.

Building and testing

npm install        # install dependencies
npm run build      # compile TypeScript to dist/ (also copies runtime assets)
npm test           # run the Vitest suite
npm run typecheck  # type-check without emitting

There is also a shell-level test for the shell integration:

bash shell-integration.test.sh

Requirements: Node.js >= 22 and npm >= 9. Nemus shells out to git and the GitHub CLI (gh) at runtime, and optionally uses ghq for faster clones.

Coding conventions

  • Match the existing style. There is no enforced formatter or lint step, so follow the conventions already present in the file you are editing (quote style, spacing, import ordering). Do not reformat unrelated lines — it buries the real change in noise.
  • TypeScript, ES modules, Node built-ins. Keep dependencies lean; prefer the standard library and the packages already in package.json.
  • Commands are self-contained. Each file in src/commands/ implements one command and registers it via program.ts. Put shared logic in src/utils/.
  • Add tests for behavior changes. Co-locate a *.test.ts next to the code and make sure npm test passes before opening a PR.
  • Keep it vendor-neutral and local-first. Nemus is an open-source, general-purpose tool that runs entirely on the developer's machine:
    • No remote-execution or hosted-infrastructure code — everything runs locally.
    • No references to any specific company, internal service, or private tooling.
    • Use generic, illustrative names in docs and examples (e.g. your-org, payments, api), never real internal org or repo names.
  • User-facing text says "Nemus". The npm package is nemus; the commands are nemus and nem; the repo is me-public/nemus.

How agents should work here

  1. Read this file and the relevant src/commands/ or src/utils/ module before editing.
  2. Make focused changes; run npm run build and npm test locally.
  3. Keep documentation (README.md, skills/) in sync when you change behavior.
  4. Prefer small, reviewable pull requests with a clear description of the change.

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.