xiaohongshu
xiaohongshu
cc-internals
How Claude Code works internally. Use for ANY question about CC behavior, architecture, or "how does CC do X". Covers session storage, /rename scope, project organization, file locations, and internal data structures.
Full skill instructions
Facts about how Claude Code organizes and stores data.
~/.claude/
├── settings.json # User config (see cc-configuring-permissions)
├── skills/ # User-level skills
├── session-env/ # Session environment cache
└── projects/ # All session data, per-project
└── <encoded-path>/ # One dir per project cwd
├── sessions-index.json # Session metadata index
├── <uuid>.jsonl # Session transcripts
└── agent-<hash>.jsonl # Subagent transcripts
Project directories are cwd paths with slashes replaced by dashes:
| cwd | Encoded directory name |
|---|---|
/Users/me/projects/foo | -Users-me-projects-foo |
/Users/me/foo/.worktrees/bar | -Users-me-foo--worktrees-bar |
Decode: echo "-Users-me-foo" | sed 's/^-/\//; s/-/\//g'
sessions-index.json)Each project has one index tracking all sessions in that project.
{
"version": 1,
"entries": [
{
"sessionId": "027b253b-7743-4cd7-8c7b-96740e0a3cf8",
"fullPath": "/Users/.../<uuid>.jsonl",
"firstPrompt": "user's first message...",
"summary": "Auto-generated summary",
"customTitle": "user-set via /rename",
"messageCount": 28,
"created": "2026-01-17T00:22:31.447Z",
"modified": "2026-01-17T00:44:18.038Z",
"gitBranch": "main",
"projectPath": "/Users/me/projects/foo",
"isSidechain": false,
"fileMtime": 1769006749607
}
]
}
| Field | Description |
|---|---|
sessionId | UUID, matches .jsonl filename |
summary | Auto-generated by CC |
customTitle | User-set via /rename (null if unset) |
firstPrompt | First user message (truncated) |
gitBranch | Branch at session creation |
projectPath | Absolute cwd path |
messageCount | Total messages in session |
isSidechain | Whether session is a sidechain |
created / modified | ISO timestamps |
fileMtime | File modification time (epoch ms) |
Sets customTitle field in sessions-index.json.
| Aspect | Behavior |
|---|---|
| Scope | Per-project (cwd-specific) |
| Collision | Same name can exist in different projects |
| Storage | Only in index, not in .jsonl transcript |
| Persistence | Survives session end, stored in index |
# All named sessions across all projects
for dir in ~/.claude/projects/*/; do
jq -r '.entries[] | select(.customTitle != null) | "\(.customTitle) | \(.projectPath)"' \
"$dir/sessions-index.json" 2>/dev/null
done
# Named sessions in current project
jq -r '.entries[] | select(.customTitle != null) | "\(.customTitle): \(.sessionId)"' \
~/.claude/projects/-Users-me-projects-foo/sessions-index.json
.jsonl)Each line is a JSON object. See cc-thread-search for search patterns.
{"type": "user", "timestamp": "<ISO>", "message": {...}, "sessionId": "<uuid>"}
{"type": "assistant", "timestamp": "<ISO>", "message": {...}, "sessionId": "<uuid>"}
{"type": "summary", ...}
| Topic | Skill |
|---|---|
| Searching transcripts | cc-thread-search |
| Permission config | cc-configuring-permissions |
| Hook config | cc-writing-hooks |
| MCP config | cc-configuring-mcp |
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience