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
Who's talking about NanmiCoder/cc-haha
- @github-trending-js.bsky.social“📦 NanmiCoder / cc-haha ⭐ 14,614 (+38) 🗒 TypeScript Local-first cross-platform desktop workspace for …”Bluesky · Sep 19, 2026 · 2 likes
- @github-trending-js.bsky.social“📦 NanmiCoder / cc-haha ⭐ 13,664 (+53) 🗒 TypeScript 本地优先的跨平台 Claude Code / Agent 桌面工作台:多 Agent、Git …”Bluesky · Jul 29, 2026 · 2 likes
- sudosubin/agents.nix“agent-skills.github.nanmicoder.cc-haha: 0.6.6 → 0.6.8”GitHub · Oct 3, 2026
- sudosubin/agents.nix“agent-skills.github.nanmicoder.cc-haha: init at 0.6.6”GitHub · Sep 30, 2026
- MarkQWu/agents-in-the-wild“Audit candidate: NanmiCoder/cc-haha”GitHub · Sep 28, 2026
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
- Oct 3, 2026agent-skills.github.nanmicoder.cc-haha: 0.6.6 → 0.6.8 — sudosubin/agents.nix0 reactions
- Sep 30, 2026agent-skills.github.nanmicoder.cc-haha: init at 0.6.6 — sudosubin/agents.nix0 reactions
- Sep 28, 2026Audit candidate: NanmiCoder/cc-haha — MarkQWu/agents-in-the-wild0 reactions
- Sep 28, 2026Audit candidate: NanmiCoder/cc-haha — xiaolai/nlpm0 reactions · 4 comments
- Sep 10, 2026[收录] <Claude Code Haha> — AvalonLee/AstraCraft-Program0 reactions · 1 comment
9 more on GitHub
- Aug 23, 2026[Feature] 按照工作区划分项目,以便于管理 — liliMozi/openhanako0 reactions
- Aug 17, 2026enhancement: Cross-platform core — run CoAgent on macOS & Linux (not just Windows) — Predator04/Hermes-CoAgent0 reactions · 1 comment
- Aug 4, 2026idea: NanmiCoder/cc-haha — zqf1314/idea0 reactions · 1 comment
- Jul 13, 2026定时任务/预约消息:睡前排活、限额重置后自动续跑(daemon 常驻是天然优势,cc-haha/AiMote 均已做) — heypandax/pairlet0 reactions · 1 comment
- Jun 10, 2026[feat]: 支持 ClaudeCode Haha 的供应商配置(从 CluadeCode 一键导入) — farion1231/cc-switch0 reactions · 1 comment
- May 29, 2026可否打通Claude Code Haha(一个不错的开源版本,11.8K星)的MCP管理 — farion1231/cc-switch0 reactions · 1 comment
- May 2, 2026[Skill] 解密微信数据 — titanwings/colleague-skill-site0 reactions
- Apr 28, 2026504错误是什么情况 — NIyueeE/ds-free-api0 reactions · 1 comment
- Apr 27, 2026No Context Memory & Tool Calling Failure with Local Gemma4 via Ollama Docker — ollama/ollama0 reactions · 1 comment
On Bluesky · 2
- Sep 19, 2026📦 NanmiCoder / cc-haha ⭐ 14,614 (+38) 🗒 TypeScript Local-first cross-platform desktop workspace for Claude Code / agents: multi-agent,… — @github-trending-js.bsky.social2 likes and reposts
- Jul 29, 2026📦 NanmiCoder / cc-haha ⭐ 13,664 (+53) 🗒 TypeScript 本地优先的跨平台 Claude Code / Agent 桌面工作台:多 Agent、Git Worktree、代码 Diff、技能市场、多模型、Computer… — @github-trending-js.bsky.social2 likes and reposts
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 repository8 other files it gives its agents.
- adapters/AGENTS.mdAGENTS.md
- desktop/AGENTS.mdAGENTS.md
- docs/AGENTS.mdAGENTS.md
- .github/AGENTS.mdAGENTS.md
- site/AGENTS.mdAGENTS.md
- src/AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- release-announcementSkill
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
- Distinctive: line 9
Run git status --short before editing and preserve existing user changes.
- Distinctive: line 12
Use subagents for independent investigations or non-overlapping implementation work when useful.
- Distinctive: line 29
Keep changes tied to the requested behavior.
- Very specific: line 32
Keep TypeScript ESM style: 2-space indentation, no semicolons, PascalCase components, and camelCase functions/hooks/stores.
- Very specific: line 33
Do not commit generated output such as artifacts/, coverage reports, node_modules/, build directories, or Rust target/ trees.
- Very specific: line 34
When publishing is explicitly requested, use Conventional Commit subjects and product branch prefixes such as fix/, feat/, or docs/.
- Very specific: line 46
Never use or mutate the developer's real ~/.claude, keychain, tokens, transcripts, providers, or project settings in tests.
- Very specific: line 47
Treat ~/.claude/settings.json as user-owned shared state: preserve unknown fields, merge additively, and never add a repository-owned …
≈ “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.
Files
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 --shortbefore 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
| Surface | Entry point |
| CLI, tools, runtime, local API/WebSocket server | src/AGENTS.md |
| React desktop UI, Electron host, native/sidecars | desktop/AGENTS.md |
| IM platforms and shared chat runtime | adapters/AGENTS.md |
| Chinese and English product/source documentation | docs/AGENTS.md |
| React documentation site and build tooling | site/AGENTS.md |
| CI and quality policy | .github/AGENTS.md, scripts/pr/, scripts/quality-gate/ |
| Desktop releases and auto-update | release-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/, oradapters/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,
PascalCasecomponents, andcamelCasefunctions/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 Rusttarget/trees. - When publishing is explicitly requested, use Conventional Commit subjects and product branch prefixes such as
fix/,feat/, ordocs/; do not createcodex/branches in this repository.
Verification
bun run check:impactselects the required checks using paths and imports. Run the selected checks for the final diff; use focused tests while fixing failures.package.jsonandscripts/pr/change-policy.tsare the command and routing sources of truth.- Use
bun run verifywhen 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.tsand 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-browserskill;agent-browseris reserved for the committed smoke lane anddesktop/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.jsonas 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, andbun 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, andgit status --shortbefore 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, andnot 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.
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.

