# π AI-Chats Protocol Documentation v3.2
## π¨ ATTENTION ALL AI CODING ASSISTANTS π¨
**This protocol MUST be followed by ALL AI tools:** Claude Code, Gemini CLI, Qwen CLI, Kilo Code Extension, Codex Extension, and any other AI coding assistant.
## π΄ CRITICAL FILENAME CONVENTION (v3.1) π΄
### β οΈ MANDATORY RULES - NO EXCEPTIONS!
1. **NO SPACES IN FILENAMES** - Use dashes (`-`) instead
- β WRONG: `Opus 4.1--00.md` (contains space)
- β
CORRECT: `Opus-4.1--00.md` (dash replaces space)
2. **DOUBLE DASH BEFORE SEQUENCE** - Use `--` not single `-`
- β WRONG: `Opus_4.1-00.md` (single dash)
- β
CORRECT: `Opus_4.1--00.md` (double dash)
3. **COMPLETE PATTERN:** `[Model-Name-Version]--[NN].md`
- Model name: Replace ALL spaces with dashes
- Separator: ALWAYS use double dash (`--`)
- Sequence: Two-digit number (00-99)
### π EXAMPLES OF CORRECT NAMING:
```
Opus-4.1--00.md β NOT "Opus 4.1-00.md"
Gemini-Pro-2.5--01.md β NOT "Gemini Pro 2.5-01.md"
Qwen-2.5-Coder--02.md β NOT "Qwen 2.5 Coder-02.md"
GPT-4-Turbo--03.md β NOT "GPT-4 Turbo-03.md"
Claude-3.5-Sonnet--04.md β NOT "Claude 3.5 Sonnet-04.md"
```
### π« WHY THIS MATTERS:
- **Shell scripts break** with spaces (require constant quoting)
- **URLs become ugly** with %20 encoding
- **CI/CD pipelines fail** when processing spaced filenames
- **Cross-platform issues** between Windows/Mac/Linux
- **Double dash** clearly separates model from sequence number
If you create files with spaces or single dashes, YOU ARE VIOLATING THE PROTOCOL!
## π CRITICAL CHANGE TO v3.0 - SOLVES VERBATIM PROBLEM!
**OLD WAY (v1.0) - OBSOLETE:**
```
ai-chats/2025-01-14-01-initial-setup.md β Single file per session
```
**OLD WAY (v2.0) - CAUSED SUMMARIZATION:**
```
ai-chats/YYYY-MM-DD-01-initial-setup/ β FOLDER per session
βββ Opus_4.1.md β Everything in one file (led to summaries)
βββ Gemini_Pro_2.5.md β Too large, triggered summarization
βββ GPT-4_Turbo.md β Context pressure caused violations
```
**NEW WAY (v3.2) - USE THIS - ENFORCES VERBATIM + MASTER INDEX:**
```
ai-chats/
βββ INDEX.md β MASTER INDEX (v3.2 MANDATORY!)
βββ YYYY-MM-DD-01-initial-setup/
β βββ Opus-4.1--00.md β Main doc (summary, tech, lessons)
β βββ Opus-4.1--01.md β Exchange 1 (FULL VERBATIM)
β βββ Opus-4.1--02.md β Exchange 2 (FULL VERBATIM)
β βββ Opus-4.1--03.md β Exchange 3 (FULL VERBATIM)
β βββ Gemini-Pro-2.5--00.md β Gemini's main doc
β βββ Gemini-Pro-2.5--01.md β Gemini's first exchange
β βββ [Model-Version]--[NN].md β Pattern: 00=main, 01+=exchanges
```
## π― Overview
The AI-Chats protocol is a **MANDATORY** folder-based documentation system for tracking all AI-assisted development sessions. Each session gets its own folder with SPLIT FILES to ensure verbatim documentation without summarization.
## π΄ CRITICAL: THE NEW PROTOCOL (v3.2)
### π STEP 0: MASTER INDEX MAINTENANCE (NEW IN v3.2!)
**π¨ MANDATORY: Before AND after every session:**
1. **Check for `ai-chats/INDEX.md`:**
- If it doesn't exist, CREATE it immediately
- If it exists, READ it to understand existing sessions
2. **Update `INDEX.md` after EVERY session:**
- Add new session folder to the index
- Include session date, topic, models used, and file count
- Keep index sorted by date (newest first)
- This is NOT optional - EVERY AI must maintain the index!
### π STEP 1: FOLDER CREATION/DETECTION
**THE VERY FIRST THING IN ANY PROJECT:**
1. **Check for existing session folder:**
- Look in `ai-chats/` for folders matching today's date pattern: `YYYY-MM-DD-*`
- If folders exist, examine their contents (look for .md files inside)
- Determine if any folder matches the current session topic
- Use fuzzy matching - don't create duplicate folders for similar topics
2. **Create or use folder:**
- If no matching folder exists, create: `ai-chats/YYYY-MM-DD-XX-description/`
- If matching folder found, use that existing folder
- NO `.md` extension on folder names!
### π STEP 2: MODEL-SPECIFIC FILE CREATION
**Inside the session folder, create MULTIPLE files with this pattern:**
```
ai-chats/YYYY-MM-DD-XX-description/
βββ [Model-Version]--00.md β Main documentation file
βββ [Model-Version]--01.md β First exchange (VERBATIM)
βββ [Model-Version]--02.md β Second exchange (VERBATIM)
βββ [Model-Version]--03.md β Third exchange (VERBATIM)
βββ [Model-Version]--NN.md β Continue numbering sequentially
```
**File Numbering Convention:**
- **--00**: Main documentation (summary, tech details, lessons, next steps)
- **--01 to --99**: Individual exchanges in chronological order (FULL VERBATIM)
**π΄ MANDATORY: Model Name + Version Examples (NO SPACES!):**
- Claude Code β "Opus-4.1--00.md", "Sonnet-3.5--00.md", "Haiku-3--00.md"
- Gemini CLI β "Gemini-Pro-2.5--00.md", "Gemini-Ultra-1.5--00.md", "Gemini-Flash-2.0--00.md"
- Qwen CLI β "Qwen-2.5--00.md", "Qwen-72B--00.md", "Qwen-2.5-Coder--00.md"
- GPT variants β "GPT-4--00.md", "GPT-4-Turbo--00.md", "GPT-4o--00.md", "GPT-3.5-Turbo--00.md"
- DeepSeek β "DeepSeek-V3--00.md", "DeepSeek-Coder-V2--00.md"
- Anthropic β "Claude-3-Opus--00.md", "Claude-3.5-Sonnet--00.md"
- Others β ALWAYS include version, NO SPACES, use DOUBLE DASH
## π Folder Naming Convention
```
ai-chats/YYYY-MM-DD-XX-description/
```
- **YYYY** - Four-digit year (e.g., 2025)
- **MM** - Two-digit month (01-12)
- **DD** - Two-digit day (01-31)
- **XX** - Two-digit session number for that day (01, 02, 03...)
- **description** - Brief 2-3 word kebab-case description
### β
Correct Examples:
```
ai-chats/YYYY-MM-DD-01-initial-setup/
ai-chats/YYYY-MM-DD-02-database-migration/
ai-chats/YYYY-MM-DD-01-api-integration/
```
### β WRONG Examples:
```
ai-chats/YYYY-MM-DD-01-initial-setup.md β NO! This is a file, not folder
ai-chats/initial-setup/ β NO! Missing date and sequence
ai-chats/YYYY-M-DD-1-setup/ β NO! Must use two-digit format
ai-chats/YYYY-MM-DD-01-setup/Opus 4.1--00.md β NO! Space in filename
ai-chats/YYYY-MM-DD-01-setup/Opus_4.1-00.md β NO! Single dash
```
## π€ IMPLEMENTATION ALGORITHM FOR AI TOOLS v3.2
**EVERY AI tool MUST follow this exact algorithm:**
```python
# PSEUDO-CODE FOR AI TOOLS TO FOLLOW:
0. MASTER INDEX MAINTENANCE (NEW IN v3.2!):
a. Check if ai-chats/INDEX.md exists
b. If not, create it with proper template
c. If exists, read it to understand existing sessions
d. BOOKMARK: You will update this at the END of session
1. Get current date and format as YYYY-MM-DD
2. List all folders in ai-chats/ directory
3. Filter folders starting with today's date
4. If matching folders exist:
a. Read contents of each folder
b. Check if topic matches current session
c. If match found: USE THAT FOLDER
d. If no match: Create new folder with next sequence number
5. If no folders for today:
a. Create folder with sequence 01
6. Inside chosen/created folder:
a. Create "[Model-Version]--00.md" for main documentation (NO SPACES!)
b. For EACH exchange with user:
- Create "[Model-Version]--NN.md" (01, 02, 03...) (DOUBLE DASH!)
- Include COMPLETE VERBATIM exchange
- NO SUMMARIZATION ALLOWED
c. Update --00.md with summary and index after session
7. UPDATE MASTER INDEX (MANDATORY!):
a. Add/update entry for this session in ai-chats/INDEX.md
b. Include: date, folder name, topic, models used, file count
c. Keep sorted by date (newest first)
d. Regenerate table of contents if needed
```
## π Required Document Structure
### π Master Index File (INDEX.md) - NEW IN v3.2!
The `ai-chats/INDEX.md` file is **MANDATORY** and serves as the complete table of contents for ALL sessions. This file MUST be created/updated by EVERY AI assistant.
#### Structure of INDEX.md:
```markdown
# AI-Chats Master Index
**Last Updated:** YYYY-MM-DD HH:MM:SS
**Total Sessions:** [count]
**Total Files:** [count across all sessions]
## π Quick Navigation
- [By Date](#sessions-by-date)
- [By Topic](#sessions-by-topic)
- [By Model](#sessions-by-model)
- [Statistics](#statistics)
---
## Sessions by Date
### YYYY-MM-DD
#### [01] [Folder: YYYY-MM-DD-01-topic-name](./YYYY-MM-DD-01-topic-name/)
- **Topic:** Brief description
- **Models Used:** Sonnet-4.5, Gemini-Pro-2.5
- **Files:** 7 files (3 Sonnet + 4 Gemini)
- **Status:** β
Complete / π§ In Progress / π Continued
- **Key Achievements:**
- Achievement 1
- Achievement 2
- **Related Sessions:** Links to related session folders
#### [02] [Folder: YYYY-MM-DD-02-another-topic](./YYYY-MM-DD-02-another-topic/)
- **Topic:** Brief description
- **Models Used:** GPT-4-Turbo
- **Files:** 4 files
- **Status:** β
Complete
- **Key Achievements:**
- Achievement 1
---
## Sessions by Topic
### Database & Migrations
- [YYYY-MM-DD-02-database-migration](./YYYY-MM-DD-02-database-migration/)
- [YYYY-MM-DD-15-schema-refactor](./YYYY-MM-DD-15-schema-refactor/)
### API Development
- [YYYY-MM-DD-01-api-integration](./YYYY-MM-DD-01-api-integration/)
- [YYYY-MM-DD-08-rest-endpoints](./YYYY-MM-DD-08-rest-endpoints/)
### Frontend
- [YYYY-MM-DD-03-react-setup](./YYYY-MM-DD-03-react-setup/)
---
## Sessions by Model
### Sonnet-4.5 (Claude Code)
- [YYYY-MM-DD-01-topic-name](./YYYY-MM-DD-01-topic-name/) - 3 files
- [YYYY-MM-DD-05-another](./YYYY-MM-DD-05-another/) - 5 files
### Gemini-Pro-2.5
- [YYYY-MM-DD-01-topic-name](./YYYY-MM-DD-01-topic-name/) - 4 files
- [YYYY-MM-DD-03-different](./YYYY-MM-DD-03-different/) - 2 files
### GPT-4-Turbo
- [YYYY-MM-DD-02-another-topic](./YYYY-MM-DD-02-another-topic/) - 4 files
---
## Statistics
### By Month
- **2025-01:** 15 sessions, 87 files
- **2024-12:** 23 sessions, 134 files
### By Model
- **Sonnet-4.5:** 45 sessions, 213 files
- **Gemini-Pro-2.5:** 12 sessions, 67 files
- **GPT-4-Turbo:** 8 sessions, 34 files
### Most Active Topics
1. API Development (15 sessions)
2. Database Work (12 sessions)
3. Frontend (10 sessions)
---
## Complete File Listing
### YYYY-MM-DD-01-topic-name/
- [Sonnet-4.5--00.md](./YYYY-MM-DD-01-topic-name/Sonnet-4.5--00.md) - Main documentation
- [Sonnet-4.5--01.md](./YYYY-MM-DD-01-topic-name/Sonnet-4.5--01.md) - Exchange 1
- [Sonnet-4.5--02.md](./YYYY-MM-DD-01-topic-name/Sonnet-4.5--02.md) - Exchange 2
- [Gemini-Pro-2.5--00.md](./YYYY-MM-DD-01-topic-name/Gemini-Pro-2.5--00.md) - Main documentation
- [Gemini-Pro-2.5--01.md](./YYYY-MM-DD-01-topic-name/Gemini-Pro-2.5--01.md) - Exchange 1
- [Gemini-Pro-2.5--02.md](./YYYY-MM-DD-01-topic-name/Gemini-Pro-2.5--02.md) - Exchange 2
- [Gemini-Pro-2.5--03.md](./YYYY-MM-DD-01-topic-name/Gemini-Pro-2.5--03.md) - Exchange 3
### YYYY-MM-DD-02-another-topic/
- [GPT-4-Turbo--00.md](./YYYY-MM-DD-02-another-topic/GPT-4-Turbo--00.md) - Main documentation
- [GPT-4-Turbo--01.md](./YYYY-MM-DD-02-another-topic/GPT-4-Turbo--01.md) - Exchange 1
- [GPT-4-Turbo--02.md](./YYYY-MM-DD-02-another-topic/GPT-4-Turbo--02.md) - Exchange 2
- [GPT-4-Turbo--03.md](./YYYY-MM-DD-02-another-topic/GPT-4-Turbo--03.md) - Exchange 3
[Continue for all session folders...]
```
#### π΄ MANDATORY Rules for INDEX.md:
1. **Always Update:** Every AI session MUST update this file at session end
2. **Accurate Counts:** File counts and statistics MUST be accurate
3. **Consistent Format:** Follow the template structure exactly
4. **Multiple Views:** Provide at least 3 views (Date, Topic, Model)
5. **Complete Listing:** Include EVERY file in the complete listing section
6. **Relative Links:** Use relative paths for all links
7. **Status Indicators:** Use emojis for quick status identification
- β
Complete
- π§ In Progress
- π Continued from previous session
- β οΈ Issues/Blockers
### π Main Documentation File (--00)
The `[Model-Version]--00.md` file **MUST** include these sections:
#### 1. π
Session Header
```markdown
# AI Chat Session: [Topic]
- **Date:** YYYY-MM-DD HH:MM
- **Model:** [Your Exact Model Name/Version]
- **Topic:** Brief description
- **Tool:** Claude Code/Gemini CLI/Qwen CLI/etc
- **Project:** Project name
- **Exchange Count:** Total number of exchange files
```
#### 2. π‘ Conversation Summary
- High-level overview of what was discussed
- Main objectives and goals
- Key decisions made
- Overall outcome
#### 3. π§ Technical Details
- Technologies used
- Frameworks and libraries
- APIs and services
- Configuration changes
- Dependencies added/removed
- Files created/modified (list with paths)
#### 4. π Lessons Learned
- What worked well
- What didn't work
- Debugging insights
- Performance discoveries
- Best practices identified
#### 5. βοΈ Next Steps
- Unfinished tasks
- Future improvements
- Follow-up questions
- Related work to explore
#### 6. π Exchange Index
```markdown
## Exchange Files
- [01 - Initial Request](./Opus-4.1--01.md)
- [02 - Implementation](./Opus-4.1--02.md)
- [03 - Testing](./Opus-4.1--03.md)
[Continue listing all exchanges]
```
### π¬ Exchange Files (--01, --02, etc.)
Each `[Model-Version]--NN.md` file contains **ONE COMPLETE EXCHANGE:**
```markdown
# Exchange NN: [Brief Description]
- **Timestamp:** YYYY-MM-DD HH:MM:SS
- **Context:** [What was happening before this exchange]
## User Input
[EXACT, VERBATIM user message including any code, errors, etc.]
## AI Response
[COMPLETE, VERBATIM AI response]
## Tool Calls
[FULL JSON of any tool invocations]
<function_calls>
[Complete function call JSON]
</function_calls>
## Function Results
[Complete, unedited function results]
## Files Read/Modified
[If files were read or edited, include the FULL content]
```
### Starting a Session
1. **Manual:** Create file immediately when starting work
2. **Automatic:** Use `/_startup` command which auto-creates AI chat
### During the Session
- Update document continuously as work progresses
- Include all significant code changes
- Document decision rationale
- Capture error messages and solutions
### Ending a Session
- Use `/_wrapup` command to:
- Commit changes with proper message
- Sync to AI Value Vault repository
- Generate session summary
## π Benefits
### π Knowledge Management
- **Searchable History:** Find solutions to previously solved problems
- **Pattern Recognition:** Identify recurring issues and solutions
- **Learning Resource:** Review past sessions for education
### π€ Team Collaboration
- **Onboarding:** New team members can review AI chat history
- **Context Sharing:** Understand decisions and approaches
- **Audit Trail:** Complete record of AI-assisted development
### π Productivity
- **Resume Work:** Pick up exactly where you left off
- **Avoid Repetition:** Don't solve the same problem twice
- **Best Practices:** Build institutional knowledge
## π REAL-WORLD EXAMPLE v3.2
### Complete Folder Structure with Split Files and Master Index
```
ai-chats/
βββ README.md (Protocol documentation - this file)
βββ INDEX.md (π MASTER INDEX - MANDATORY!)
βββ 2025-01-15-01-initial-setup/
β βββ Opus-4.1--00.md (Claude's main doc)
β βββ Opus-4.1--01.md (First exchange - verbatim)
β βββ Opus-4.1--02.md (Second exchange - verbatim)
β βββ Opus-4.1--03.md (Third exchange - verbatim)
β βββ Gemini-Pro-2.5--00.md (Gemini's main doc)
β βββ Gemini-Pro-2.5--01.md (Gemini's first exchange)
β βββ GPT-4-Turbo--00.md (GPT-4's main doc)
βββ 2025-01-15-02-database-migration/
β βββ Sonnet-4.5--00.md (Main documentation)
β βββ Sonnet-4.5--01.md (Exchange 1: Schema design)
β βββ Sonnet-4.5--02.md (Exchange 2: Migration script)
β βββ Sonnet-4.5--03.md (Exchange 3: Testing)
βββ 2025-01-14-01-api-integration/
β βββ Sonnet-4.5--00.md
β βββ Sonnet-4.5--01.md
β βββ Sonnet-4.5--02.md
βββ archive/
βββ (older session folders - still indexed!)
```
## π MULTI-MODEL COLLABORATION
When multiple AI models work on the same session:
1. Each model creates its OWN file in the SAME folder
2. Models should check for existing files to understand context
3. Models can reference work done by other models
4. This creates a comprehensive record of collaborative AI development
### Example Scenario:
```
Morning: Claude creates folder and starts work
β ai-chats/YYYY-MM-DD-01-react-setup/Opus-4.1--00.md
Afternoon: User switches to Gemini for specific task
β ai-chats/YYYY-MM-DD-01-react-setup/Gemini-Pro-2.5--00.md
Evening: User asks GPT-4 to review and optimize
β ai-chats/YYYY-MM-DD-01-react-setup/GPT-4-Turbo--00.md
```
## π·οΈ HOW TO DETERMINE YOUR MODEL NAME
### For AI Tools - Use This Logic:
```javascript
// Example for different AI tools - ALWAYS INCLUDE VERSION, NO SPACES, DOUBLE DASH:
if (tool === "Claude Code") {
// Use the specific model WITH version, dash for spaces
filename = "Opus-4.1--00.md" // or "Sonnet-3.5--00.md", "Haiku-3--00.md"
} else if (tool === "Gemini CLI") {
// MUST include version number, replace spaces with dashes
filename = "Gemini-Pro-2.5--00.md" // or "Gemini-Ultra-1.5--00.md"
} else if (tool === "Qwen CLI") {
// Include version/variant, no spaces allowed
filename = "Qwen-2.5--00.md" // or "Qwen-2.5-Coder--00.md"
} else if (tool === "GPT-based") {
// Include variant/version, use dashes
filename = "GPT-4-Turbo--00.md" // or "GPT-4o--00.md", "GPT-3.5-Turbo--00.md"
} else {
// ALWAYS include version, NO SPACES, DOUBLE DASH
filename = "[Model-Name]-[Version]--00.md"
}
```
### π΄ MANDATORY: Version Number Rules
1. **ALWAYS include version numbers** - no exceptions!
2. Use the EXACT model name/version you're running on
3. Include sub-versions if relevant (e.g., "2.5", "3.5", "V3")
4. Include variants if applicable (e.g., "Turbo", "Pro", "Ultra", "Coder")
5. **NEVER use spaces** - replace ALL spaces with dashes (`-`)
6. **ALWAYS use double dash** (`--`) before sequence numbers
7. Be consistent - always use the same format for the same model
## π Search and Discovery
### Finding Past Solutions
```bash
# Search all AI chats for a keyword
grep -r "database migration" ai-chats/
# Find sessions by date
ls -la ai-chats/YYYY-MM-*/
# Search for specific errors across all models
grep -r "TypeError" ai-chats/ --include="*.md"
# Find what Gemini worked on
find ai-chats -name "Gemini*--*.md" -exec grep -l "API" {} \;
```
### Using with Git
```bash
# View AI chat history
git log --oneline -- ai-chats/
# See what was discussed in a commit
git show <commit-hash> -- ai-chats/
```
## π Advanced Features
### AI Value Vault Synchronization
- Sessions auto-sync to: `https://github.com/PowerAppsDarren/ai-value-vault`
- Creates shared knowledge base across projects
- Enables cross-project learning
### Session Analytics
Track productivity metrics:
- Sessions per week/month
- Common problem categories
- Solution success rates
- Time saved through reuse
## β‘ Quick Commands
```bash
# Start new session with auto-creation
/_startup
# Wrap up session with commit and sync
/_wrapup
# Resume from previous session
/_resume
# Show session status
/_status
```
## π― Best Practices
### β
DO:
- Create AI chat file IMMEDIATELY when starting
- Update continuously throughout session
- Include complete context and rationale
- Document both successes and failures
- Use descriptive file names
- Preserve full conversation history
### β DON'T:
- Skip creating AI chat files
- Wait until end to document
- Summarize too briefly
- Delete "failed" attempts
- Use generic descriptions
- Forget to commit changes
## π Related Documentation
- **Global Config:** `~/.claude/CLAUDE.md`
- **Project Config:** `.claude/PROJECT.md`
- **AI Value Vault:** `https://github.com/PowerAppsDarren/ai-value-vault`
- **Command System:** Use `/_command help` for details
## β FAQ FOR AI TOOLS v3.2
### Q: Why split into multiple files?
**A:** Large context in single files triggers AI summarization. Split files ensure VERBATIM documentation.
### Q: What goes in --00 vs --01, --02 files?
**A:** --00 = summary/tech/lessons. --01+ = COMPLETE verbatim exchanges, one per file.
### Q: What is INDEX.md and why is it mandatory? (NEW v3.2)
**A:** INDEX.md is the master table of contents for ALL sessions. It provides:
- Quick navigation by date, topic, or model
- Complete file listings
- Statistics and analytics
- Discovery of related sessions
Every AI MUST update it at session end. No exceptions!
### Q: What if INDEX.md doesn't exist?
**A:** Create it immediately using the template in this protocol. It's mandatory!
### Q: Do I need to update INDEX.md if I'm just continuing an existing session?
**A:** YES! Update the file count and timestamp. Keep it accurate.
### Q: How many exchange files can I create?
**A:** Up to 99 per model (--01 through --99). If more needed, consider a new session.
### Q: What if ai-chats/ folder doesn't exist?
**A:** Create it first, then create your session folder inside, then create INDEX.md.
### Q: How do I know what sequence number to use?
**A:** Count existing folders for today's date. Next number = count + 1, formatted as 01, 02, 03, etc.
### Q: What if user's topic doesn't match any existing folder?
**A:** Create a new folder with next sequence number and 2-3 word description.
### Q: Should I read other model's files in the same folder?
**A:** Yes! This provides context and prevents duplicate work.
### Q: What if my model name has special characters or spaces?
**A:** Replace spaces with dashes (-). Other special chars: / β -, : β -, * β -star
### Q: Can I summarize in the exchange files?
**A:** ABSOLUTELY NOT. Exchange files MUST be verbatim. No exceptions.
### Q: Should archived sessions be in INDEX.md?
**A:** YES! All sessions, including archived ones, should be in the index for complete discoverability.
## π QUICK IMPLEMENTATION CHECKLIST v3.2
**For AI Tools - Copy This Checklist:**
```
SESSION START:
β‘ Check if ai-chats/ directory exists
β‘ π Check if ai-chats/INDEX.md exists (create if missing!)
β‘ π Read INDEX.md to understand existing sessions
β‘ Get today's date in YYYY-MM-DD format
β‘ List existing folders for today
β‘ Determine if any folder matches current topic
β‘ Create new folder OR use existing one
β‘ Create [Model-Version]--00.md for main documentation (NO SPACES!)
β‘ Create [Model-Version]--01.md for first exchange (VERBATIM, DOUBLE DASH!)
DURING SESSION:
β‘ Create [Model-Version]--NN.md for each subsequent exchange
β‘ NO SUMMARIZATION in exchange files - VERBATIM ONLY
SESSION END:
β‘ Update --00.md with summary and exchange index
β‘ π UPDATE ai-chats/INDEX.md with this session's info
β‘ π Add session to "By Date" section
β‘ π Add session to "By Topic" section
β‘ π Add session to "By Model" section
β‘ π Add all files to "Complete File Listing"
β‘ π Update statistics (session count, file count)
β‘ π Update "Last Updated" timestamp
```
## π Support
- **Protocol Version:** 3.2 (Split-file system + Master Index)
- **Key Innovations:**
- v3.0: Solves verbatim problem by splitting exchanges
- v3.2: Adds master INDEX.md for complete discoverability
- **Issues:** Report at project repository
- **Questions:** Review this README first
- **Improvements:** Submit PRs with documentation
---
## π― Why v3.2 Works
**The Problem v1:** Large files trigger AI summarization instinct
**The Solution v1:** Split files prevent context pressure
**The Problem v2:** Hard to discover and navigate sessions across projects
**The Solution v2:** Master INDEX.md provides complete table of contents
**The Result:** TRUE VERBATIM DOCUMENTATION + EASY DISCOVERY
*This protocol ensures every AI-assisted development session creates lasting value through COMPLETE documentation AND makes that documentation easily discoverable. The split-file structure eliminates summarization, the master index enables discovery, and multi-model collaboration creates comprehensive knowledge. Your future self (and team) will thank you!*
**Remember:
- --00 = Summary, --01+ = VERBATIM EXCHANGES!
- NO SPACES IN FILENAMES!
- ALWAYS UPDATE INDEX.md!**