Borrowing it
Nothing to install: this file belongs to tt-a1i/chat_edit. 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/tt-a1i/chat_edit/main/CLAUDE.mdgit clone --depth 1 https://github.com/tt-a1i/chat_editWrote 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/tt-a1i/chat_edit/claude-md)<a href="https://agentmods.dev/instructions/tt-a1i/chat_edit/claude-md"><img src="https://agentmods.dev/badge/instructions/tt-a1i/chat_edit/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/tt-a1i/chat_edit/claude-md"><img src="https://agentmods.dev/badge/instructions/tt-a1i/chat_edit/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.03512 | $0.03512 |
| Opus 5.5 | $0.01405 | $0.01405 |
| Sonnet 5.5 | $0.00702 | $0.00702 |
| Haiku 4.5 | $0.00351 | $0.00351 |
Grade A, and why
chat_edit 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 417 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Language Preference
请使用中文回复所有对话和代码注释。 All responses, explanations, and code comments should be in Chinese (Simplified).
Project Background
当前状态: 这是一个处于持续开发阶段的项目,代码库正在进行重构和优化。
Skill 使用规范
- 页面开发或 UI 修改时:使用
frontend-designskill - 代码审查时:使用
code-review-excellenceskill
Project Overview
A dual-mode AI application combining:
- Chat Scene: Traditional conversational AI interface with streaming responses
- AI Editing Scene: Rich text editor (Quill) with AI-powered text manipulation features
Built with Vue 3 + TypeScript + Vite, using Moonshot AI API for LLM capabilities.
Development Commands
# Development server
bun dev
# Build (includes TypeScript type checking)
bun build
# Preview production build
bun preview
# Linting
bun lint
bun lint:fix
# Type checking
bun typecheck
# Testing
bun test # Unit tests (watch mode)
bun test:run # Unit tests (single run)
bun test:coverage # Unit tests with coverage
bun test:ui # Vitest UI
bun test:e2e # E2E tests
bun test:e2e:ui # Playwright UI
bun test:all # Run all tests
Package Manager: This project uses bun (version 1.2.14 specified in package.json).
Testing: 详见 TESTING.md 查看完整测试指南。
Architecture
Scene Management
The app operates in two distinct scenes controlled by services/appConfig.ts:
SCENES.CHAT // Traditional chat interface
SCENES.AI_EDITING // Rich text editor with AI features
Scene switching happens through switchScene() which updates currentScene.value and manages panel visibility.
Data Flow Architecture
Chat Scene Flow:
- User input →
addUserMessage()inservices/chat.ts - Empty AI message created with
isStreaming: true useAI.generate()→useApi.generateChat()→ SSE stream processing- Incremental updates via
handleAiPartialResponse() - Completion via
handleAiCompletion()setsisStreaming: false
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.
- 2mo ago First seen · 417 lines · 3,512 tokens per session scan A 36b9e3db6876
chat_edit CLAUDE.md is an instructions file published in the GitHub repository tt-a1i/chat_edit (23 stars, last pushed 8mo ago), licensed MIT. It adds 3,512 tokens to every session, about $0.0140 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.
chat_edit CLAUDE.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| chat_edit CLAUDE.mdtt-a1i/chat_edit | Instructions file | 23 | 8mo ago | MIT | A | 3,512 | Claude Code |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | yesterday | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |