adityahimaone/hermes-agent-rtk-caveman
Hermes Agent RTK + Caveman setup - 90-99% token savings on CLI operations with 35+ pre-configured skills
This project provides a preconfigured setup for Hermes Agent that integrates Rust Token Killer (RTK) and Caveman templating to reduce token consumption during CLI operations. It works by wrapping standard terminal commands and outputting compact data structures, achieving a reported 90-99% reduction in token usage. The repository includes over 40 pre-configured skills covering finance management, GitHub workflows, research tools, and DevOps automation. Users can deploy the environment via an automated installer to gain immediate access to token-optimized aliases for git, linting, and testing tasks.
- Achieves 90-99% token savings using RTK and Caveman templating
- Includes 40+ pre-configured skills for finance, devops, and research
- Automated cross-platform installation for macOS and Linux systems
full readme from github
🤖 Hermes Agent - RTK + Caveman Setup
A complete, ready-to-use Hermes Agent configuration with RTK (Rust Token Killer) and Caveman templating for 90-99% token savings on CLI operations.
✨ Features
- 90-99% token savings with RTK + Caveman
- 40+ pre-configured skills for common workflows
- Automated setup with one command
- Cross-platform support (macOS, Linux)
- Production-ready configuration
🚀 Quick Start
# Clone repository
git clone https://github.com/adityahimaone/hermes-agent.git
cd hermes-agent
# Run installer
chmod +x install.sh
./install.sh
# Reload shell
source ~/.zshrc
# Verify installation
verify-hermes
📊 Token Savings
| Component | Savings | Example |
|---|---|---|
| RTK | 60-90% | rtk git status |
| Caveman | 70-95% | cgs (compact git status) |
| Combined | 90-99% | rtk ~/bin/caveman_wrapper.sh git-status |
📁 Repository Structure
hermes-agent/
├── README.md # This file
├── install.sh # Automated installer
├── .gitignore # Security (no secrets)
│
├── config/ # Core configuration
│ ├── CLAUDE.md # RTK instructions
│ └── default-personality.md # Default AI personality
│
├── skills/ # 40+ skills
│ ├── finance/ # Zenith Finance (5)
│ ├── productivity/ # Productivity tools (13)
│ ├── development/ # Dev tools (2)
│ ├── devops/ # DevOps tools (4)
│ ├── github/ # GitHub workflows (7)
│ ├── note-taking/ # Note tools (1)
│ └── research/ # Research tools (7)
│
├── scripts/ # Wrapper scripts
│ ├── caveman_wrapper.sh # General Caveman
│ ├── zenith_caveman.sh # Finance Caveman
│ ├── verify_setup.sh # Verification
│ └── demo_token_savings.sh # Demo
│
├── templates/ # Caveman templates
│ ├── git_status.txt
│ ├── lint_results.txt
│ └── test_results.txt
│
└── docs/ # Documentation
├── SETUP_GUIDE.md
├── CAVEMAN_INTEGRATION.md
└── TOKEN_OPTIMIZATION.md
🛠️ Included Skills
Finance (5)
zenith-finance- Main finance managerzenith-finance-caveman-optimization- Token-efficient reportszenith-finance-gsheets-sync- Google Sheets synczenith-finance-maintenance- File maintenancezenith-finance-sync- Auto-sync
Productivity (13)
google-workspace- Gmail, Calendar, Drivegoogle-workspace-setup- OAuth2 setupnotion- Notion APIobsidian- Obsidian vaultlinear- Linear issuesnano-pdf- PDF editingpowerpoint- PowerPoint creationocr-and-documents- OCR for PDFs- And more...
Development (2)
caveman-rtk-integration- RTK + Caveman (90-99% savings)context-optimization- Memory management
DevOps (4)
syncthing-setup- Folder syncmysql-service-manager- MySQL managementgit-ssh-custom-host- SSH configwebhook-subscriptions- Webhooks
GitHub (7)
github-auth- Authenticationgithub-code-review- Code reviewgithub-issues- Issue managementgithub-pr-workflow- Pull requestsgithub-repo-management- Repositories- And more...
Research (7)
arxiv- Academic papersblogwatcher- Blog monitoringmarket-alpha-scout- Stock scannerpolymarket- Prediction markets- And more...
🔧 Configuration
RTK (Rust Token Killer)
RTK is configured in ~/.claude/CLAUDE.md:
## Golden Rule
**Always prefix commands with `rtk`**
## Examples
rtk git status # 75% savings
rtk pnpm install # 90% savings
rtk next build # 87% savings
Caveman Templates
Templates are in ~/templates/:
cgs # Git status (compact)
cgl 20 # Git log (last 20)
clint src/ # Lint results
ctest 'npx vitest run' # Test results
Shell Aliases
Add to ~/.zshrc:
# Caveman shortcuts
alias cgs='~/bin/caveman_wrapper.sh git-status'
alias cgl='~/bin/caveman_wrapper.sh git-log'
alias clint='~/bin/caveman_wrapper.sh lint'
alias ctest='~/bin/caveman_wrapper.sh test-results'
# RTK shortcuts
alias gs='rtk git status'
alias gl='rtk git log --oneline -10'
alias gd='rtk git diff'
📖 Usage Examples
Git Operations
# Instead of:
git status # 500-2000 tokens
# Use:
rtk git status # 100-400 tokens (80% savings)
# Or:
cgs # 50-200 tokens (90% savings)
Finance Reports
# Recent transactions
zrt 10
# Monthly summary
zms 2026-04
# Net worth
znw
Development
# Run tests
ctest 'npx vitest run'
# Build project
rtk next build
# Lint code
clint src/
🎨 Customization
Change Personality
Edit config/default-personality.md:
## Communication Style
- **Language**: English
- **Tone**: Professional
- **Pronouns**: I/you
Add Custom Skills
# Create skill directory
mkdir -p ~/.hermes/skills/custom/my-skill
# Create SKILL.md
cat > ~/.hermes/skills/custom/my-skill/SKILL.md << 'EOF'
---
name: my-skill
description: My custom skill
category: custom
---
# My Skill
...
EOF
Create Custom Templates
# Create template
cat > ~/templates/my_template.txt << 'EOF'
{{- for d.items as item }}
{{item}}
{{- end }}
EOF
# Use template
~/bin/caveman ~/templates/my_template.txt /tmp/data.json
🔒 Security
- ✅ No API keys in repository
- ✅ No personal data exposed
- ✅
.gitignoreconfigured - ✅ All secrets excluded
📊 Performance
| Metric | Value |
|---|---|
| RTK Coverage | 100% |
| Avg Savings | 92.4% |
| Commands | 196 |
| Tokens Saved | 41.2K |
🆘 Troubleshooting
Command Not Found
# Check PATH
echo $PATH | grep ~/bin
# Add to PATH
export PATH="$HOME/bin:$PATH"
source ~/.zshrc
RTK Not Working
# Check RTK
which rtk
rtk gain
Templates Not Found
# Check templates
ls -la ~/templates/
# Reinstall
./install.sh
📚 Documentation
🤝 Contributing
- Fork repository
- Create feature branch
- Make changes
- Test thoroughly
- Submit pull request
📄 License
MIT License - Free to use and modify.
👤 Author
Hermes Agent Community
🔗 Links
Version: 1.0.0 Last Updated: 2026-04-13 Status: Production-ready ✅