This is a 5-minute setup guide to implement the token-efficient three-tier documentation system in your own repository.
git init)# Copy the TEMPLATES directory to your repository
cp -r /path/to/AI-agents/TEMPLATES /path/to/your-repo/
# Navigate to your repository
cd /path/to/your-repo
# Run the setup script
bash TEMPLATES/setup-three-tier.sh
# Follow the prompts to create your first project
# In your repository, create the structure
mkdir -p docs projects agents
# Copy Tier 1 files
cp TEMPLATES/tier1-claude-template.md docs/docs-claude.md
cp TEMPLATES/tier1-session-template.md docs/docs-session-summary.md
# Copy Tier 2 files
cp TEMPLATES/tier2-claude-template.md projects/projects-claude.md
cp TEMPLATES/tier2-session-template.md projects/projects-session-summary.md
# Copy the agent
cp TEMPLATES/close-and-commit-agent-template.md agents/close_and_commit_GIT.md
# Create your first project (replace "MyProject" with your project name)
mkdir -p projects/MyProject
cp TEMPLATES/tier3-claude-template.md projects/MyProject/MyProject-claude.md
cp TEMPLATES/tier3-session-template.md projects/MyProject/MyProject-session-summary.md
Open these files and fill in the placeholders:
docs/docs-claude.md/path/to/your/repo with your actual pathagents/close_and_commit_GIT.mdprojects/MyProject/ → My Project
projects/Website/ → Website Project
projects/MyProject/MyProject-claude.md[Project Name] with your project nameMake a small change to test the system:
# Make a small edit to any file in your repository
echo "# Test" >> README.md
# Tell your AI assistant to run the agent
# (In your AI chat, type:)
@agents/close_and_commit_GIT.md
The agent should:
From now on, follow this workflow:
Working on a specific project?
Tell AI: "Read projects/MyProject/MyProject-claude.md and MyProject-session-summary.md"
Working on multiple projects?
Tell AI: "Read projects/projects-claude.md and projects-session-summary.md"
Quick context (fastest)?
Tell AI: "Run git log -5 --oneline --stat and summarize recent changes"
Tell AI: "@agents/close_and_commit_GIT.md"
The agent handles everything automatically!
docs/docs-claude.md, docs/docs-session-summary.mdprojects/projects-claude.md, projects/projects-session-summary.mdprojects/MyProject/MyProject-claude.md, MyProject-session-summary.mdOld way (flat structure):
New way (three-tier):
# Create a new project directory
PROJECT_NAME="NewProject"
mkdir -p "projects/$PROJECT_NAME"
# Copy templates
cp TEMPLATES/tier3-claude-template.md "projects/$PROJECT_NAME/${PROJECT_NAME}-claude.md"
cp TEMPLATES/tier3-session-template.md "projects/$PROJECT_NAME/${PROJECT_NAME}-session-summary.md"
# Edit the files to fill in project details
Then update:
agents/close_and_commit_GIT.md - Add project to detection mapdocs/docs-claude.md - Add to active projects listprojects/projects-claude.md - Add project overviewFor small repos (1-2 projects): Use 2 tiers (Tier 1 + Tier 3, skip Tier 2)
For medium repos (3-10 projects): Use all 3 tiers (recommended)
For large repos (10+ projects): Consider adding Tier 4 for sub-projects
No problem! Run it whenever you remember. You can manually update the session files if needed.
Absolutely! The templates are yours to modify. Change the structure, add sections, remove what you don’t need.
Yes! Any AI that can:
Examples: Claude Code, Cursor, Aider, Codex, custom setups
agents/close_and_commit_GIT.md Project Detection Mapprojects/YourProject/*For complete details, see:
This system is battle-tested and actively used. The templates include:
After you set this up, share it with others! The three-tier system is designed to be:
Help other developers save tokens and stay organized! 🎉
Questions? Issues? Improvements?
The templates are designed to be self-explanatory, but if you get stuck:
Happy documenting! 📚✨