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 code style.
Of the AGENTS.md files we read, the 33,398 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.
- docs/llms-full.txtllms.txt
- docs/llms.txtllms.txt
- nemusSkill
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
- Very specific: line 71
TypeScript, ES modules, Node built-ins: Keep dependencies lean; prefer the standard library and the packages already in package.json.
- Distinctive: line 79
No remote-execution or hosted-infrastructure code — everything runs locally.
- Distinctive: line 80
No references to any specific company, internal service, or private tooling.
- Very specific: line 81
Use generic, illustrative names in docs and examples (e.g.
- Very specific: line 88
Read this file and the relevant src/commands/ or src/utils/ module before editing.
- Very specific: line 91
Keep documentation (README.md, skills/) in sync when you change behavior.
- Distinctive: line 92
Prefer small, reviewable pull requests with a clear description of the change.
≈ “Common” is an estimate: at least 1 in 5 of the 43,423 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
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 scriptsTests 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 emittingThere is also a shell-level test for the shell integration:
bash shell-integration.test.shRequirements: 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 viaprogram.ts. Put shared logic insrc/utils/. - Add tests for behavior changes. Co-locate a
*.test.tsnext to the code and make surenpm testpasses 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 arenemusandnem; the repo isme-public/nemus.
How agents should work here
- Read this file and the relevant
src/commands/orsrc/utils/module before editing. - Make focused changes; run
npm run buildandnpm testlocally. - Keep documentation (
README.md,skills/) in sync when you change behavior. - Prefer small, reviewable pull requests with a clear description of the change.
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.

