Troubleshooting
Common issues and solutions for AI Context System.
Commands Not Working
Slash Commands Don't Execute
Symptoms:
- Type
/saveand nothing happens - No command suggestions when typing
/ - Commands not recognized
Cause: Multiple .claude directories in parent folders.
Check:
# Search for all .claude directories
find ~ -name ".claude" -type d 2>/dev/null
# Output (problematic):
/Users/you/projects/.claude # Parent
/Users/you/projects/my-app/.claude # Your projectSolution:
# Remove .claude from parent directories
rm -rf /Users/you/projects/.claude
# Keep only your project's .claude
# Keep: /Users/you/projects/my-app/.claudeException: Meta-projects intentionally have .claude in parent. This is normal if configured as meta-project in .context-config.json.
Commands Can't Find Context Files
Symptoms:
Error: Cannot find context directoryCause: Running commands from too deep in directory tree.
Check:
pwd
# Output: /Users/you/projects/my-app/src/components/auth/forms
# Too deep (>3 levels from context/)Solution:
# Move closer to project root
cd /Users/you/projects/my-app
# Or run from any level (system searches up to 3 parents)
/save # Auto-finds context/Context Files
Quick Reference Not Generated
Symptoms:
- STATUS.md has empty Quick Reference section
- "Quick Reference" header exists but no content below
Cause: Missing or invalid .context-config.json
Check:
cat context/.context-config.json
# Should see JSON with project infoSolution:
# If file missing, reinitialize
/init-context
# If file exists but invalid, check JSON syntax
# Then regenerate Quick Reference
/saveSESSIONS.md Growing Too Large
Symptoms:
- SESSIONS.md exceeds 25,000 tokens
/review-contextslow or fails- File takes long to read
Cause: Many sessions accumulated over time.
Solution: System handles this automatically with progressive loading:
- <1000 lines: Reads full file
- 1000-5000 lines: Strategic loading (first, last, key sections)
- >5000 lines: Indexed loading (headers + recent entries)
Manual archive (optional):
# Create archive directory
mkdir -p context/archive/
# Move old sessions (keep recent 10)
# Edit SESSIONS.md, move sessions 1-50 to:
# context/archive/SESSIONS-2024-Q1.mdGit Integration
Git Status Blank
Symptoms:
ℹ️ Not a git repository (skipping git data)But you have a .git directory:
ls -la .git/ # Exists!Cause 1: Running from subdirectory of non-git parent.
Check:
pwd
# /Users/you/projects/my-app/backend
git rev-parse --git-dir
# .git # Git repo exists hereSolution: This is expected if parent is meta-project. See meta-project documentation.
Cause 2: .git file instead of directory (submodule).
Check:
cat .git
# Output: gitdir: ../.git/modules/my-appSolution: This is a git submodule. Commands work but git status handled differently.
Git Operations Not Auto-Logged
Symptoms:
- Run
/save-full - SESSIONS.md has no "Git Operations" section
- Recent commits not listed
Cause: No commits since last session.
Check:
git log --since="1 day ago"
# Shows recent commits
# If empty, no commits to logSolution: This is expected if you haven't committed yet. Git operations only logged if commits exist since last session.
Installation Issues
Install Script Fails
Symptoms:
curl: (404) Not FoundCause: Trying to install from wrong URL or network issue.
Solution:
# Use correct URL:
curl -sL https://raw.githubusercontent.com/rexkirshner/ai-context-system/main/install.sh | bash
# Or download and inspect first:
curl -sL https://raw.githubusercontent.com/rexkirshner/ai-context-system/main/install.sh -o install.sh
bash install.shCommands Installed But Not Available
Symptoms:
.claude/commands/directory exists- Files like
save.mdare there - But
/savedoesn't work
Cause: Claude Code not detecting commands.
Solution:
# Restart Claude Code session
# Exit and reopen project
# Or:
# Open Claude Code settings
# Verify custom commands path is .claude/commands/Performance Issues
/save-full Takes Too Long
Symptoms:
/save-fulltakes >20 minutes- Should be 10-15 minutes
Cause: Helper script analyzing too many files.
Check:
# See what files changed
git status
# If hundreds of files:
# - Large refactor?
# - node_modules/ not in .gitignore?Solution:
# Add to .gitignore:
node_modules/
.next/
dist/
build/
coverage/
# Commit .gitignore
git add .gitignore
git commit -m "Add gitignore"
# Then /save-full should be faster/review-context Slow
Symptoms:
/review-contexttakes >30 seconds- Should be 2-3 seconds
Cause: SESSIONS.md too large (see above).
Solution: System auto-handles with progressive loading. If still slow, archive old sessions manually.
Configuration Issues
Wrong Project Name in Quick Reference
Symptoms:
Project: example-projectBut your project is called "my-app".
Cause: .context-config.json has wrong project name.
Solution:
# Edit config
nano context/.context-config.json
# Update:
{
"project": {
"name": "my-app", # Change this
...
}
}
# Regenerate Quick Reference
/saveCommands Using Wrong Paths
Symptoms:
- Commands can't find files
- Errors about missing directories
Cause: Working directory changed or project moved.
Check:
# From project root:
ls -la context/
ls -la .claude/
ls -la scripts/
# All should existSolution:
# Ensure you're in project root
cd /path/to/your/project
# Verify structure
pwd # Should be project rootVersion Issues
System Version Outdated
Symptoms:
⚠️ Update available: v3.2.2 (you have v3.0.0)Solution:
/update-context-system
# Upgrades commands and scripts from GitHubUpgrade Fails
Symptoms:
❌ Installation failed
🔄 Restoring from backup...Cause: Network issue, wrong URL, or validation failure.
Check:
# Check network
ping github.com
# Check backup exists
ls -la .claude-backup-*Solution:
# If backup exists, system auto-restored
# Try upgrade again with better network
# Or manually upgrade:
git clone https://github.com/rexkirshner/ai-context-system.git
cp -r ai-context-system/.claude/* .claude/
cp -r ai-context-system/scripts/* scripts/Common Workflow Issues
Can't Resume After Break
Symptoms:
- Run
/review-context - Don't know where to start
- Last session unclear
Cause: Didn't run /save-full before break.
Solution:
# Always before breaks:
/save-full
# This creates comprehensive SESSIONS.md entry
# With "Next Session" sectionLost Work
Symptoms:
- Made changes yesterday
- STATUS.md doesn't reflect them
- Can't remember what was done
Cause: Didn't save before ending session.
Prevention:
# Build habit:
# 1. Work on code
# 2. /save every 30-60 min
# 3. /save-full before breaks
# 4. /save-full at end of day
# Every session ends with:
/save-fullBlockers Not Captured
Symptoms:
- Hit blocker yesterday
- Forgot what it was
- No record in STATUS.md
Solution:
# When blocker appears:
/save
# AI prompts for blocker details
# Documents in STATUS.md immediatelyMeta-Project Issues
Sub-Repo Commands Not Working
Symptoms:
- Run
/savefrom backend/ - Error: Commands not found
Cause: System checking wrong .claude directory.
Solution:
# Ensure only one .claude in hierarchy
ls -la .claude/ # Should not exist in sub-repo
ls -la ../.claude/ # Should exist in parent
# Remove if in sub-repo:
rm -rf backend/.claudeGit Status Shows Wrong Repo
Symptoms:
- Working in
backend/ - Git status shows
frontend/changes
Cause: Running from wrong directory.
Solution:
# Check current directory
pwd
# /projects/portfolio/frontend # Wrong!
# Go to correct repo
cd ../backend/
/saveGetting Help
Where to Get Support
Documentation:
GitHub:
Reporting Bugs
Include:
- What you were trying to do
- What command you ran
- What error you got
- Your system info:bash
# Version cat VERSION # OS uname -a # Directory structure ls -la .claude/commands/ ls -la context/
Feature Requests
File an issue with:
- Use case (what are you trying to do?)
- Current workaround (if any)
- Proposed solution
- Examples from other systems
Emergency Recovery
System Completely Broken
Symptoms:
- No commands work
- Context files corrupted
- Can't recover
Nuclear Option - Reinstall:
# 1. Backup current context
cp -r context/ context-backup/
# 2. Remove system
rm -rf .claude/ scripts/ templates/
# 3. Reinstall
curl -sL https://raw.githubusercontent.com/rexkirshner/ai-context-system/main/install.sh | bash
# 4. Initialize
/init-context
# 5. Restore content from backup
cp -r context-backup/* context/
# 6. Verify
/review-contextContext Files Corrupted
Symptoms:
- SESSIONS.md won't open
- STATUS.md has invalid format
- Can't read context files
Recovery:
# 1. Check git history (if tracked)
git log context/SESSIONS.md
git checkout HEAD~1 context/SESSIONS.md
# 2. Or restore from backup
ls -la .claude-backup-*/
cp .claude-backup-*/context/SESSIONS.md context/
# 3. Or recreate from templates
cp templates/sessions-template.md context/SESSIONS.md
# Manually add recent sessionsStill Stuck?
If none of these solutions work:
- Check GitHub Issues for similar problems
- Search documentation for your specific error
- File a new issue with details
- Ask in GitHub Discussions
Remember: When in doubt, /save!