agentleFS
leemourleemour/max-cli/CLAUDE.md

max-cli

CLAUDE.md14 starsChanged 50 days agoApache-2.0View on GitHub

Start with docs_ai/HANDOFF.md. What this is, the layout, what to read for which task, and the rules that cost time when broken. It is short; read it before anything else. docs_ai/ is the private working folder — handoff, the owner's brief (REQUIREMENTS.md), rulings (DECISIONS.md and decisions/), live-check list, release steps (releasing.md), session journals, cleanup list and captures of the real web client (captures/). It is not in this repository: it is the private repository WireCatLabs/cli-private; clone it into docs_ai/ (secrets/…

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 1

    1. WireCatLabs/max-cli★ 14100% same

    Edited · 0

    None found.

    Wrote their own version · 0

    None found.

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository2 other files it gives its agents.

The file

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

2 rules. About 0 are common, 0 are distinctive, and 2 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.

  • 2

    Very specific

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

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

    In machine mode, stdout carries data and nothing else: No spinner, no ✓, no warning, no ANSI.

    line 40
  2. Very specific:

    Write the plan into docs_ai/plans/ and show it.

    line 55

≈ “Common” is an estimate: at least 1 in 5 of the 29,248 CLAUDE.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
CLAUDE.md

max-cli — working rules

Start with docs_ai/HANDOFF.md. What this is, the layout, what to read for which task, and the rules that cost time when broken. It is short; read it before anything else.

docs_ai/ is the private working folder — handoff, the owner's brief (REQUIREMENTS.md), rulings (DECISIONS.md and decisions/), live-check list, release steps (releasing.md), session journals, cleanup list and captures of the real web client (captures/). It is not in this repository: it is the private repository WireCatLabs/cli-private; clone it into docs_ai/ (secrets/ inside it is ignored and never pushed). Without it, start from docs/dev/BACKLOG.md and docs/dev/ARCHITECTURE.md. Commit and push it like any other repository — it is the only copy of the rulings — but from your own cli-private worktree, never in the shared docs_ai/ checkout (docs_ai/HANDOFF.md, "Committing to this repository").

Then the one reference that covers what you are about to touch — docs/dev/CONVENTIONS.md for how code and documents are written here, and docs/dev/ARCHITECTURE.md for the seams.

Where this project is

Published as @wirecat/max-cli and working against the real MAX. The commands are listed in docs/commands.md (generated); how they are built is docs/dev/ARCHITECTURE.md; what is left is docs/dev/BACKLOG.md.

Security audits of this repository follow the shared security method in cli-testing; vulnerabilities are reported as the security policy says.

The constraints that shape everything

  1. This is the owner's real personal messenger account. A mistake here does not fail a test, it sends a message to a person. Nothing sends, marks read, or acknowledges anything unless the command the owner typed asked for it.
  2. We look like the official client, not like ourselves. The user agent and every other field that identifies the client copy what the official MAX client sends. Never a custom user agent, never our own name on the wire (REQUIREMENTS.md §34). This is the personal account's rule: max bot talks to the official Bot API as max-cli/<version>, since the token already names the bot (NEED-296).
  3. In machine mode, stdout carries data and nothing else. No spinner, no ✓, no warning, no ANSI. Diagnostics go to stderr. This is the contract agents depend on and it gets a test.
  4. One-shot means the process exits. Whatever opens a socket, a timer or a listener closes it on every exit path. A command that prints its result and hangs is a defect.
  5. No third-party MAX type crosses the adapter. Above it, only our own domain models — so the reverse-engineered library underneath can be replaced.
  6. Messages, tokens and phone numbers never reach a log, a fixture or a document. Command output is where a message the owner asked to read is allowed to appear, and nowhere else.

Plan before building

For anything that is not a one-file, one-step change, write the plan first and stop for review:

  1. Orient — read the relevant code and docs. No edits.
  2. Write the plan into docs_ai/plans/ and show it. Wait for approval.
  3. Build against it, and correct the plan when reality diverges.

The plan states: the goal, the current state with path:line anchors, the decisions being made and why, ordered work items, the test plan, and the open questions. Flag anything needing a product decision instead of guessing.

A typo, a broken line, an obvious one-line bug — just fix it.

Evidence, not recollection

Everything about the MAX protocol is somebody's reverse engineering, and half of it is out of date. A README is a claim; the current source is evidence; a captured frame is proof. Say which of the three a statement rests on, every time — docs/dev/CONVENTIONS.md.

The same applies to this repository's own documents. A document claiming something is broken, unfinished or not started is a snapshot of someone else's day:

git log -S'<string that should not be there>' -- <path>
git log --oneline -1 -- <path>

A discrepancy you find gets rewritten in the document that is wrong, in place, to the current fact — no correction mark, no struck-out text, no dated trail. Git keeps what it said before. A finished plan or handoff is deleted, a done backlog or cleanup line is deleted (docs/dev/CONVENTIONS.md).

Comments

Sparse, and only why. The global rule in ~/.claude/CLAUDE.md applies and overrides what any surrounding file looks like. No comment restating the line above it, no section banners, no narrating the change you just made.

Record the trail as you go

Each session keeps a journal while its work is in flight. Take numbers with docs_ai/journal/note.sh, which allocates and writes in one operation, and write the entry when you find the thing, not at the end of the session — a number that appeared in a reply and is missing from the journal is the failure it prevents.

The journal is scratch, not an archive: once the session's work is merged and its findings are in the backlog, docs_ai/DECISIONS.md or the code, delete the session's journal file.

Deletions

Never delete or clean up mid-task. Append a line to docs_ai/CLEANUP.md — the path, why it should go, the date — and do the removals in one batch at the end, after the owner confirms. This covers files, branches, worktrees, generated artifacts and temp directories.

Exception: something that is the task ("remove the old X"), or a file you created earlier in the same session and no longer need.

Never kill a process by name. No pkill, no killall. Find the PID, confirm it is yours, kill that PID.

Committing

Conventional commits. The pre-commit hook checks staged lint and secrets. Work on a branch off main, in a worktree, and open a pull request.

The maintainer skills (add-command, parity-audit, release, test-live) live in docs/dev/skills/. A checkout links them once, from a terminal: mkdir -p .claude && ln -s ../docs/dev/skills .claude/skills. The link is ignored, never tracked: skills.sh lists every skill under .claude/skills to people who install max-cli's skill.

Development check budget

Local commits check only staged lint and secrets. There is no pre-push check. Config integrity, repository lint, Markdown, and secret detection run in PR CI. The bounded ci:quick step adds typechecking, a build and the command lint for CLI packages or synthetic unit tests for the docs site. Full validation (ci.yml: tests with the coverage floor, contracts, docs, builds, parity, a secret scan) runs on every pull request (pr.yml) and again on each merge to main, Linux only, no publishing (WC-CI-5, WC-CI-7, WC-TEST-11). ci:quick stays the two-minute early check (WC-CI-4). Browser and platform suites run for releases, explicit manual validation, and monthly nonpublishing validation. See the shared policy.

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.