Borrowing it
Nothing to install: this file belongs to ZengLiangYi/ChatCrystal. 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/ZengLiangYi/ChatCrystal/main/AGENTS.mdgit clone --depth 1 https://github.com/ZengLiangYi/ChatCrystalWrote 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/zengliangyi/chatcrystal/agents-md)<a href="https://agentmods.dev/instructions/zengliangyi/chatcrystal/agents-md"><img src="https://agentmods.dev/badge/instructions/zengliangyi/chatcrystal/agents-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/zengliangyi/chatcrystal/agents-md"><img src="https://agentmods.dev/badge/instructions/zengliangyi/chatcrystal/agents-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.03013 | $0.03013 |
| Opus 5.5 | $0.01205 | $0.01205 |
| Sonnet 5.5 | $0.00603 | $0.00603 |
| Haiku 4.5 | $0.00301 | $0.00301 |
Grade A, and why
ChatCrystal AGENTS.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 1mo 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 — 215 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
This file provides guidance to Codex (Codex.ai/code) when working with code in this repository.
Project Overview
ChatCrystal is an AI conversation knowledge crystallization tool. It imports conversations from AI coding tools (Claude Code, Cursor, Codex CLI, Trae, GitHub Copilot), uses LLM to generate structured notes (title, summary, key conclusions, code snippets, tags), and provides semantic search via embeddings. The UI is in Simplified Chinese.
Commands
# Install (Node.js 24; root workspace uses pnpm via Corepack)
corepack enable
pnpm install
# Development (server port 3721 + client port 13721)
pnpm dev
# Build for production
pnpm build
# Production server (serves frontend statically on port 3721)
pnpm start
# Electron desktop app
pnpm dev:electron # dev mode (Vite HMR + Electron window)
pnpm build:electron # build NSIS installer → release/
pnpm pack:electron # build unpacked directory (faster for testing)
# Release (bump version + git tag + push → CI builds & publishes)
pnpm release # patch bump (0.1.0 → 0.1.1)
pnpm release -- minor # minor bump
pnpm release -- major # major bump
pnpm release -- 1.0.0 # explicit version
pnpm release:electron -- 1.0.1 # Electron-only release → electron-v*
pnpm release:npm -- 1.0.1 # npm-only release → npm-v*
# Lint
pnpm lint
pnpm lint:fix
# Tests (all layers by default)
pnpm test
pnpm test:server
pnpm test:client
pnpm test:electron
pnpm --filter ./server smoke:mcp # requires pnpm build first
# Dependency security
pnpm security:audit
pnpm security:signatures
Release Tag Semantics
Use scripts/release.mjs for releases; do not manually bump versions, commit, tag, and push unless the user explicitly asks for a custom recovery flow.
v*tags are full releases and trigger both npm publishing and Electron GitHub Release builds. Use this only when both rootpackage.jsonandserver/package.jsonshould move together.electron-v*tags are Electron-only releases. Usepnpm release:electron -- <version>for desktop-only changes, including Electron main/preload/tray/packaging changes and Electron-gated client UI.npm-v*tags are npm-only releases. Usepnpm release:npm -- <version>for CLI/server/MCP package changes.- The published npm package version comes from
server/package.json, not the root package. If av*tag is pushed whileserver/package.jsonstill points at an already-published version, the npm job will fail withE403 You cannot publish over the previously published versions. - If an Electron-only release is accidentally published with a
v*tag and the Electron job succeeds but npm fails because the server version already exists, do not delete or re-tag the release by default. Treat the GitHub Release as usable, document the cause, and useelectron-v*for the next Electron-only release.
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.
- 1mo ago Changed · +15 lines · +91 tokens per session e392778b39db
- 1mo ago Changed · +10 tokens per session fa5326a46486
- 1mo ago First seen · 200 lines · 2,912 tokens per session scan A 39592263145f
ChatCrystal AGENTS.md is an instructions file published in the GitHub repository ZengLiangYi/ChatCrystal (61 stars, last pushed 2d ago), licensed Apache-2.0. It adds 3,013 tokens to every session, about $0.0121 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.
Other instructions, from other repositories
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).
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.
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).
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.
vscode copilot-instructions.md
Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).
vscode model-prompts.instructions.md
Model-specific prompt authoring and registry guidelines.