AI-Chats session documentation protocol. Ensures .ai-chats/ exists, creates session folders, maintains INDEX.md, and enforces verbatim exchange files. Use at session start, during wrap-up, or when AI-Chats compliance is needed.
Document every AI-assisted development session in .ai-chats/ with split files to prevent summarization and an INDEX.md for discoverability.
.ai-chats/ ExistsCheck the repo root for .ai-chats/. If missing, create it immediately — no warning, no asking.
Copy README.md from ~/.claude/.ai-chats/README.md into the new directory.
INDEX.md ExistsCheck for .ai-chats/INDEX.md. If missing, create from template at ~/.claude/skills/_ai_chats_protocol/assets/index-template.md.
If it exists, read it to understand existing sessions.
.ai-chats/ matching today: YYYY-MM-DD-*.ai-chats/YYYY-MM-DD-NN-description/
NN = next two-digit sequence for today (01, 02, 03...)description = 2-3 word kebab-case topicCreate at minimum:
| File | Purpose |
|---|---|
[Model]--00.md | Summary — updated throughout the session |
[Model]--01.md | First exchange — VERBATIM |
Additional exchanges get --02.md, --03.md, etc. (up to --99).
--NN.md file--00.md with running summary, decisions, and file changesFinalize --00.md with:
Update INDEX.md — add/update this session's entry
Commit .ai-chats/ changes to git
.ai-chats/YYYY-MM-DD-NN-description/
[Model-Version]--[NN].md
Opus-4.6--01.md not Opus 4.6--01.md--01 not -01Sonnet-4.6 not Sonnet00 = summary, 01-99 = exchanges| Tool | Identifier |
|---|---|
| Claude Code (Opus) | Opus-4.6 |
| Claude Code (Sonnet) | Sonnet-4.6 |
| Claude Code (Haiku) | Haiku-4.5 |
| Gemini CLI | Gemini-Pro-2.5, Gemini-Flash-2.0 |
| Qwen CLI | Qwen-2.5, Qwen-2.5-Coder |
| GPT variants | GPT-4o, GPT-4-Turbo |
| DeepSeek | DeepSeek-V3, DeepSeek-Coder-V2 |
| Other | Always include version, no spaces, dashes only |
Exchange files (--01 and up) must contain:
Tool calls, function results, and files-read content are optional detail — include them when they add value, omit when they'd create 50KB+ noise. The goal is preserving the conversation, not logging raw JSON.
Each session is one entry, date-sorted (newest first). No duplicate views.
# AI-Chats Index
**Last Updated:** YYYY-MM-DD
## Sessions
### YYYY-MM-DD-01-description ([Model-Version])
- Brief summary of what was done
- Status: ✅ Complete | Files: N
### YYYY-MM-DD-02-another-topic ([Model-Version])
- Brief summary
- Status: 🚧 In Progress | Files: N
Searchable by model, date, or topic via grep. Template: ~/.claude/skills/_ai_chats_protocol/assets/index-template.md
--00.md Summary Template# AI Chat Session: [Topic]
- **Date:** YYYY-MM-DD
- **Model:** [Model-Version]
- **Tool:** Claude Code / Gemini CLI / etc.
- **Project:** [name]
## Summary
[What was accomplished, key decisions]
## Technical Details
[Technologies, files changed, configs modified]
## Lessons Learned
[What worked, what didn't, insights]
## Next Steps
[Unfinished work, follow-ups]
## Exchange Index
- [01 - Description](./Model--01.md)
- [02 - Description](./Model--02.md)
When multiple AI models work in the same session, each creates its own files (Opus-4.6--00.md, Gemini-Pro-2.5--00.md, etc.) in the same folder. Read other models' files for context.
For edge cases, detailed model-name rules, multi-model examples, and version history:
~/.claude/skills/_ai_chats_protocol/references/full-protocol.md