DuDuClaw: Instructions file for Claude Code

CLAUDE.md

DuDuClaw CLAUDE.md is an instructions file for Claude Code from zhixuli0406/DuDuClaw. It costs 6,067 tokens per session, scanned A, original, Apache-2.0.

A project instruction set for DuDuClaw, a platform that connects AI coding agents such as Claude Code, Codex, and Gemini through one system. It documents the platform’s runtime, routing, sessions, memory, accounts, local models, and browser automation.

In plain words
What is it for?
Use it when developing or reviewing DuDuClaw’s agent runtimes, configuration, channel routing, session handling, permissions, MCP connections, or automation.
Why use it?
It gives contributors shared architectural rules for changing a system that supports several agent backends and execution permissions.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; positional $N argument; mentions Claude Code.

This is zhixuli0406/DuDuClaw's own configuration. It tells Claude Code how to work on DuDuClaw itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything DuDuClaw configures →

Reuse

Borrowing it

Nothing to install: this file belongs to zhixuli0406/DuDuClaw. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/zhixuli0406/DuDuClaw/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/zhixuli0406/DuDuClaw

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for DuDuClaw CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/zhixuli0406/duduclaw/claude-md/github.svg)](https://agentmods.dev/instructions/zhixuli0406/duduclaw/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/zhixuli0406/duduclaw/claude-md"><img src="https://agentmods.dev/badge/instructions/zhixuli0406/duduclaw/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for DuDuClaw CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/zhixuli0406/duduclaw/claude-md"><img src="https://agentmods.dev/badge/instructions/zhixuli0406/duduclaw/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 6,067 This file is loaded in full into every session.
When invoked 6,067 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. ✓ AI security review Fable 5.1 · 7 Sept 2026 📄 Read the review
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.06067 $0.06067
Opus 5.5 $0.02427 $0.02427
Sonnet 5.5 $0.01213 $0.01213
Haiku 4.5 $0.00607 $0.00607

Measured 5d ago against content hash dcebbcfd650c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

DuDuClaw CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 176 lines

How it starts

The opening of the file, as written. The whole thing — 176 lines — stays where its author put it; the contents beside it link to each section on GitHub.

DuDuClaw Project Guidelines

Highest directive: every new feature and every fix gets its own branch

Owner instruction, 2026-10-03: 「每次有新功能與修復時都開分支」. It outranks every other workflow rule in this file.

  • Before starting a feature or a fix, create a branch from the latest origin/main (feat/…, fix/…, docs/…, chore/…). Feature and fix commits never go on main directly.
  • The change reaches main through a pull request. main requires four checks on a PR merge: Rust ubuntu-latest, Dashboard, Python, Security Audit (cargo audit, required since 2026-10-08). The ECC Tools app comments on PRs (security evidence, risk taxonomy and other audits); its results are advisory and not required checks.
  • When another session is using the main checkout, work in a separate git worktree instead of switching branches there.
  • When several open PRs touch the same files, merge them in the order the owner gives; the later one rebases.
  • Release lanes: minor/major require the full signed delivery review; hotfix (deprecated alias: patch) auto-signs five unchanged delivery items and publishes all channels. Hotfix fixes and bump PRs use owner admin merge after Rust ubuntu-latest succeeds.
  • Opening a branch is not permission to merge or release. Merging a PR and cutting a release stay the owner's decision.

Where the detail lives

This file is loaded into every session, so it keeps only the map, the cross-cutting rules and the conventions. Detail lives elsewhere:

  • CHANGELOG.md: what shipped in which version (zh-TW, user-facing). Source of truth for version numbers.
  • wiki/duduclaw-kb/architecture/subsystem-reference.md: the long per-subsystem history (file paths, config keys, measured numbers, known gaps). Moved verbatim from this file on 2026-10-12; code comments that say "see CLAUDE.md's … note" (credentials consolidation, agent-id validator waves, harness-borrowing waves) now mean this file.
  • wiki/duduclaw-kb/architecture/release-implementation-notes.md: developer notes for v1.67.0 → v1.72.0, one block per feature batch, including each batch's "not verified" list.
  • Public docs: docs/features/ and docs/guides/ (three languages), docs/features/05-security-defense.md (canonical security description), docs/guides/deprecations.md, docs/guides/dashboard-settings.md, docs/guides/mcp-tools.md, SECURITY.md.

Read the full file on GitHub · 176 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago Changed · +1 lines · +180 tokens per session dcebbcfd650c
  2. 6d ago Changed · -27 tokens per session e45dcbe32351
  3. 7d ago Changed · -2 tokens per session 563935f17f45
  4. 8d ago Changed · +1 lines · +71 tokens per session 5eccf66b554b
  5. 21d ago Changed · +115 tokens per session 267dc004ddae
  6. 23d ago Changed · +1 lines · +93 tokens per session 3c681ea28829
  7. 24d ago Changed · -35 lines · -40,181 tokens per session scan F → A 413eebed811e
  8. 1mo ago Changed · +27 lines · +8,692 tokens per session scan E → F 4b3b664fd1c3
  9. 1mo ago Changed · +4 lines · +9,585 tokens per session 69b2d5a53e05
  10. 1mo ago First seen · 177 lines · 27,541 tokens per session scan E f65a9a4b6aed

Subscribe to this mod's changes

DuDuClaw CLAUDE.md is an instructions file published in the GitHub repository zhixuli0406/DuDuClaw (51 stars, last pushed today), licensed Apache-2.0. It adds 6,067 tokens to every session, about $0.0243 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

DuDuClaw CLAUDE.md compared with instructions from other repositories

DuDuClaw CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
DuDuClaw CLAUDE.mdzhixuli0406/DuDuClawInstructions file51todayApache-2.0A6,067Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode