agentleFS
NanmiCoderNanmiCoder/cc-haha/AGENTS.md

cc-haha

AGENTS.md15k starsChanged 2 months agoMITView on GitHub

This is a routing guide for coding agents. Keep shared instructions model-independent; put task-specific detail next to the code or in the linked guides. Rules closer to the code take precedence. For the directory you are changing, read the nested AGENTS.md in that directory and any applicable ancestors. Load other documentation when the task needs it.

Trending

Steady talk.about the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 2 mentionsMay 2026: 2 mentionsJun 2026: 1 mentionJul 2026: 2 mentionsAug 2026: 3 mentionsSep 2026: 5 mentionsOct 2026: 1 mentionNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the NanmiCoder/cc-haha repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about NanmiCoder/cc-haha

The biggest 5 of 16 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 16

Talked about on GitHub and Bluesky (16 times).

On GitHub · 14

9 more on GitHub

The file

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

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

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run git status --short before editing and preserve existing user changes.

    line 9
  2. Distinctive:

    Use subagents for independent investigations or non-overlapping implementation work when useful.

    line 12
  3. Distinctive:

    Keep changes tied to the requested behavior.

    line 29
  4. Very specific:

    Keep TypeScript ESM style: 2-space indentation, no semicolons, PascalCase components, and camelCase functions/hooks/stores.

    line 32
  5. Very specific:

    Do not commit generated output such as artifacts/, coverage reports, node_modules/, build directories, or Rust target/ trees.

    line 33
  6. Very specific:

    When publishing is explicitly requested, use Conventional Commit subjects and product branch prefixes such as fix/, feat/, or docs/.

    line 34
  7. Very specific:

    Never use or mutate the developer's real ~/.claude, keychain, tokens, transcripts, providers, or project settings in tests.

    line 46
  8. Very specific:

    Treat ~/.claude/settings.json as user-owned shared state: preserve unknown fields, merge additively, and never add a repository-owned …

    line 47

≈ “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

Repository Instructions

This is a routing guide for coding agents. Keep shared instructions model-independent; put task-specific detail next to the code or in the linked guides.

Rules closer to the code take precedence. For the directory you are changing, read the nested AGENTS.md in that directory and any applicable ancestors. Load other documentation when the task needs it.

Start Here

  • Run git status --short before editing and preserve existing user changes.
  • Carry the requested outcome through implementation, relevant verification, and repair of failures caused by the change. Local edits and deterministic checks using disposable fixtures are authorized within that scope; do not stop for approval after the first implementation or each test run.
  • Investigate the affected behavior and its callers. Follow a fix across boundaries when needed to complete the request; ask only when a material product decision or action outside the authorized scope is required.
  • Use subagents for independent investigations or non-overlapping implementation work when useful. Give each a concrete question or file ownership and expected evidence; the primary agent owns integration and final verification.
  • Tool access is capability, not authorization. Do not create/switch branches, commit, push, open or merge a PR, publish a release, change repository settings, or spend live-provider quota unless the user explicitly requests that operation. Authorization already given in the conversation remains valid.

Repository Map

SurfaceEntry point
CLI, tools, runtime, local API/WebSocket serversrc/AGENTS.md
React desktop UI, Electron host, native/sidecarsdesktop/AGENTS.md
IM platforms and shared chat runtimeadapters/AGENTS.md
Chinese and English product/source documentationdocs/AGENTS.md
React documentation site and build toolingsite/AGENTS.md
CI and quality policy.github/AGENTS.md, scripts/pr/, scripts/quality-gate/
Desktop releases and auto-updaterelease-notes/, scripts/release.ts, release guide

Implementation Rules

  • Keep changes tied to the requested behavior. Reuse existing utilities, stores, services, and test harnesses; add dependencies or abstractions only when the task needs them.
  • Computer Use has one app-authorization boundary on both macOS and Windows: enabling it in Settings and confirming its consent dialog authorizes all apps. Do not add per-app prompts, allowlists, denylists, category-based access tiers, or host/helper exceptions after that consent. Global disablement, OS permissions, and target/process validity checks still apply.
  • Executable JS/TS production changes under src/, desktop/src/, or adapters/ require a same-area regression test unless a maintainer explicitly approves an exception. For bugs, reproduce the failure or add a test that fails for the intended reason; report when reproduction is unavailable. Test the behavior and affected boundaries. See test design for state transitions, replay, and coverage caveats.
  • Keep TypeScript ESM style: 2-space indentation, no semicolons, PascalCase components, and camelCase functions/hooks/stores. Use structured parsers and existing boundaries for structured data.
  • Do not commit generated output such as artifacts/, coverage reports, node_modules/, build directories, or Rust target/ trees.
  • When publishing is explicitly requested, use Conventional Commit subjects and product branch prefixes such as fix/, feat/, or docs/; do not create codex/ branches in this repository.

Verification

  • bun run check:impact selects the required checks using paths and imports. Run the selected checks for the final diff; use focused tests while fixing failures. package.json and scripts/pr/change-policy.ts are the command and routing sources of truth.
  • Use bun run verify when full validation is requested or before claiming a code change is PR-ready or push-ready. It runs the selected PR lanes, so there is no need to run every lane separately first. Reuse passing results for unchanged code; rerun or broaden checks when subsequent edits, failures, or unresolved risks warrant it.
  • Required PR checks must be deterministic: no real models, public network, repository secrets, saved providers, or real user home/config. Use fake credentials, fixtures, mocked/loopback transports, temporary directories, and cleanup. Server-booting quality lanes use scripts/quality-gate/sandbox.ts and must fail on real user-state writes.
  • For user-visible desktop or cross-process changes that unit tests cannot prove, exercise a browser/desktop smoke path. Ad-hoc browser work uses the ego-browser skill; agent-browser is reserved for the committed smoke lane and desktop/scripts/e2e-*-agent-browser.sh. See the deterministic agent/UI lanes.
  • Live model checks are separate maintainer evidence after deterministic checks pass and quota use is explicitly authorized; finding credentials on the machine is not authorization.

User-State Safety

  • Never use or mutate the developer's real ~/.claude, keychain, tokens, transcripts, providers, or project settings in tests. Redirect every relevant path to a temporary directory.
  • Treat ~/.claude/settings.json as user-owned shared state: preserve unknown fields, merge additively, and never add a repository-owned global schema marker.
  • Any persisted JSON, localStorage, or app-config shape change requires a forward migration, an old-fixture regression test, and bun run check:persistence-upgrade.
  • Repair/Doctor flows are deny-by-default. Automatic repair may change only explicitly allowlisted, regenerable desktop UI state; protected user data requires a reviewed, backup-first manual flow.

Handoff

  • Review git diff --check, git diff, and git status --short before reporting completion.
  • Report changed files, tests added, commands actually run and their observed results, checks not run, blockers, and remaining risk. Distinguish passed, failed, skipped, blocked, and not run; build-only, mock, live, and stale evidence are not interchangeable.
  • Contributor workflow, failure diagnosis, and instruction maintenance: CONTRIBUTING.md and detailed guide. PR evidence: .github/pull_request_template.md.

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.