Borrowing it
Nothing to install: this file belongs to sophiaashi/Awesome-ccIDE. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/sophiaashi/Awesome-ccIDE/main/CLAUDE.mdgit clone --depth 1 https://github.com/sophiaashi/Awesome-ccIDEWrote 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.
[](https://agentmods.dev/instructions/sophiaashi/awesome-ccide/claude-md)<a href="https://agentmods.dev/instructions/sophiaashi/awesome-ccide/claude-md"><img src="https://agentmods.dev/badge/instructions/sophiaashi/awesome-ccide/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.
<a href="https://agentmods.dev/instructions/sophiaashi/awesome-ccide/claude-md"><img src="https://agentmods.dev/badge/instructions/sophiaashi/awesome-ccide/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.01616 | $0.01616 |
| Opus 5 | $0.00808 | $0.00808 |
| Sonnet 5 | $0.00323 | $0.00323 |
| Haiku 4.5 | $0.00162 | $0.00162 |
Grade C, and why
Awesome-ccIDE CLAUDE.md scanned grade C with 1 finding 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 9d 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.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
rm -rf /Applications/ccIDE.app && cp -R release/mac-arm64/ccIDE.app /Applications/ How it starts
The opening of the file, as written. The whole thing — 135 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLAUDE.md — ccIDE 项目专用指令
继承自用户全局
~/.claude/CLAUDE.md的所有规则(语言、前端三更、安全红线、Skill 优先、解决问题方式等)。以下是本项目的附加规则。
项目概览
ccIDE — 管理 Claude Code 历史 session 的 macOS 原生桌面应用。
- 技术栈:Electron + React + TypeScript + xterm.js + node-pty
- 入口:
electron/main.ts(主进程) /src/App.tsx(渲染进程) - 数据源:
~/.claude/projects/*/sessions-index.json+~/.claude/history.jsonl - 自定义名称存储:
~/.claude-session-manager/session-names.json
同步规则(用户主导推送节奏)
默认:只做本地修改 + 本地 .app 更新,不自动推送远端。
每次改动的默认流程(无用户指示时)
# 1. 编译检查
cd ~/ccIDE && npx tsc --noEmit
# 2. 打包
npm run dist
# 3. 安装到本地 Applications
rm -rf /Applications/ccIDE.app && cp -R release/mac-arm64/ccIDE.app /Applications/
# 4. 本地 git commit(但不 push)
git add -A && git commit -m "..."
推送远端时的流程(用户说「推送」/「push」/「发布」时)
一旦推送远端,必须同时更新 DMG Release:
# 1. 推送代码
git push origin main
# 2. 更新 GitHub Release DMG(与 push 绑定,不可分离)
gh release delete v1.0.0 --repo sophiaashi/Awesome-ccIDE --yes
gh release create v1.0.0 \
--repo sophiaashi/Awesome-ccIDE \
--title "ccIDE v1.0.0" \
--notes "macOS Apple Silicon (arm64). Download DMG, drag to Applications, done." \
release/ccIDE-1.0.0-arm64.dmg
关键规则
- 用户没说「推送」时,不要自动
git push - 用户说「推送」时,必须同时更新 DMG(push 和 DMG 更新是原子操作)
- 本地 Applications 下的 app 每次改动都要更新(用户会直接测试)
构建输出
| 文件 | 用途 |
|---|---|
dist/ |
Vite 前端构建产物 |
dist-electron/electron/main.cjs |
编译后的主进程 |
release/mac-arm64/ccIDE.app |
打包的 macOS app |
release/ccIDE-1.0.0-arm64.dmg |
分发用的 DMG(~123MB,含 Electron 运行时) |
架构关键点
- Electron main process 负责:session 数据读取、node-pty 管理、IPC handler
- React renderer 负责:UI 渲染、通过
window.electronAPI调 IPC - preload.ts 安全暴露 IPC(contextBridge)
- 开发模式:
npm run dev启动 Vite + Electron 双进程 - 生产模式:
main.cjs用loadFile('../../dist/index.html')加载(路径是dist-electron/electron/→ 上两级 →dist/)
常见陷阱
- 黑屏问题 → 检查
mainWindow.loadFile的相对路径 - Resume 报错
env: node: No such file→ pty spawn 必须加--login参数 + 显式传完整 PATH - icon 外层有灰色底板 → icon 图片必须完全不透明,渐变填满 1024x1024
- 当前 session 不在列表 →
sessions-index.json可能未及时更新,需扫描.jsonl文件补充 - 多两个
style属性 → JSX 不允许,合并成一个对象
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.
- 9d ago First seen · 135 lines · 1,616 tokens per session scan C 238a211b231e
Awesome-ccIDE CLAUDE.md is an instructions file published in the GitHub repository sophiaashi/Awesome-ccIDE (3 stars, last pushed 2mo ago), licensed MIT. It adds 1,616 tokens to every session, about $0.0081 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other instructions, from other repositories
next.js AGENTS.md
AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.
codex AGENTS.md
AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.
vscode buildNext.instructions.md
Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).
langchain AGENTS.md
AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.
deepseek-harness AGENTS.md
AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.