ChatCrystal AGENTS.md

ChatCrystal AGENTS.md is an instructions file for Codex, OpenCode from ZengLiangYi/ChatCrystal. It costs 2,922 tokens per session, scanned A, original, Apache-2.0.

Project instructions for ChatCrystal, an application that turns AI coding conversations into searchable notes. It covers the project structure, development commands, ports, builds, and desktop packaging.

In plain words
What is it for?
Use it when working on ChatCrystal’s server, client, production build, or Electron desktop release.
Why use it?
It gives a coding agent the repository context and the commands needed to develop, test, build, and run the application.

Instructions file for CodexOpenCode

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/zengliangyi/chatcrystal/agents-md
Clone the repo
git clone --depth 1 https://github.com/ZengLiangYi/ChatCrystal

Made for: Codex, OpenCode.

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 ChatCrystal AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/zengliangyi/chatcrystal/agents-md.svg)](https://agentmods.dev/instructions/zengliangyi/chatcrystal/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/zengliangyi/chatcrystal/agents-md"><img src="https://agentmods.dev/badge/instructions/zengliangyi/chatcrystal/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,922 This file is loaded in full into every session.
When invoked 2,922 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.02922 $0.02922
Opus 5 $0.01461 $0.01461
Sonnet 5 $0.00584 $0.00584
Haiku 4.5 $0.00292 $0.00292

Measured yesterday against content hash fa5326a46486, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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 yesterday.

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.

AGENTS.md · 200 lines

How it starts

The opening of the file, as written. The whole thing — 200 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

# Development (server port 3721 + client port 13721)
npm run dev

# Build for production
npm run build

# Production server (serves frontend statically on port 3721)
npm start

# Electron desktop app
npm run dev:electron        # dev mode (Vite HMR + Electron window)
npm run build:electron      # build NSIS installer → release/
npm run pack:electron       # build unpacked directory (faster for testing)

# Release (bump version + git tag + push → CI builds & publishes)
npm run release             # patch bump (0.1.0 → 0.1.1)
npm run release -- minor    # minor bump
npm run release -- major    # major bump
npm run release -- 1.0.0    # explicit version
npm run release:electron -- 1.0.1  # Electron-only release → electron-v*
npm run release:npm -- 1.0.1       # npm-only release → npm-v*

# Lint
npm run lint
npm run lint:fix

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 root package.json and server/package.json should move together.
  • electron-v* tags are Electron-only releases. Use npm run 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. Use npm run release:npm -- <version> for CLI/server/MCP package changes.
  • The published npm package version comes from server/package.json, not the root package. If a v* tag is pushed while server/package.json still points at an already-published version, the npm job will fail with E403 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 use electron-v* for the next Electron-only release.

Read the full file on GitHub · 200 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. yesterday Changed · +10 tokens per session fa5326a46486
  2. 5d ago First seen · 200 lines · 2,912 tokens per session scan A 39592263145f

Subscribe to this mod's changes

ChatCrystal AGENTS.md is an instructions file published in the GitHub repository ZengLiangYi/ChatCrystal (58 stars, last pushed yesterday), licensed Apache-2.0. It adds 2,922 tokens to every session, about $0.0146 per session on Opus 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

Other instructions, from other repositories

cursor-studio copilot-instructions.md

Copilot instructions for DearLicy/cursor-studio, a project described as: Local-first Windows control center for Cursor: manage AI providers, balances, usage and costs, sessions, prompts, MCP, Skills, appearance, and integrations. | Cursor 本地桌面管理工具.

DearLicy/cursor-studio · 176 tokens

gortex CLAUDE.md

Claude Code instructions for zzet/gortex, covering gortex, build & test, codebase overview, discovery (read once, then keep using) and llm provider (powers ask and searchsymbols assist: modes).

zzet/gortex · 5,172 tokens

Dragon-Brain CLAUDE.md

Instructions for iikarus/Dragon-Brain, covering dragon brain — claude.md, the harness, audit remediation (april–may 2026, complete 2026-05-09), the lie this audit closed and the contract that matters now.

iikarus/Dragon-Brain · 6,132 tokens

agent-toolkit AGENTS.md

AGENTS.md instructions for ulises-jeremias/agent-toolkit, covering agents.md — ai agent contract, what this toolkit does, repository structure, operating rules and how to add a skill.

ulises-jeremias/agent-toolkit · 4,514 tokens

core-ai CLAUDE.md

Claude Code instructions for helius-labs/core-ai, covering core ai, compiler-managed sync, mcp server pin, skill versioning and router surface maintenance.

helius-labs/core-ai · 1,334 tokens

core-ai AGENTS.md

AGENTS.md instructions for helius-labs/core-ai, covering core ai — agent instructions, repository overview, mcp server setup, api key setup and public tool surface.

helius-labs/core-ai · 2,000 tokens