Skip to main content

Troubleshooting

This guide covers common issues you may encounter with RTK and how to resolve them.
If you’re experiencing issues with RTK, first verify you have the correct package installed by running rtk gain. If this command doesn’t exist, you may have the wrong “rtk” package.

Common Issues

Symptom

Root Cause

You installed Rust Type Kit (reachingforthejack/rtk) instead of Rust Token Killer (rtk-ai/rtk). These are two completely different projects with the same name.

Solution

1. Uninstall the wrong package:
2. Install the correct one (Token Killer):
3. Verify installation:
The rtk gain command is the definitive way to verify you have the correct package.

Symptom

After running rtk init -g, Claude Code still doesn’t use rtk automatically.

Checklist

1. Verify rtk is installed and correct:
2. Check hook is registered:
3. Verify settings.json manually:
4. Restart Claude Code (critical step!)Settings changes require a full restart of Claude Code to take effect.5. Test with a command:

Manual Hook Installation

If automatic installation failed:
Then add to ~/.claude/settings.json:
Use absolute path in settings.json, not ~/.claude/...

Symptom

rtk init -g reports an error when trying to patch settings.json.

Solutions

Check if settings.json is valid JSON:
Use manual patching:
Restore from backup:
Check permissions:
RTK creates ~/.claude/settings.json.bak before making changes. You can always restore from this backup.

Symptom

Root Cause

~/.cargo/bin is not in your PATH.

Solution

1. Check if cargo bin is in PATH:
2. If not found, add to PATH:For bash (~/.bashrc):
For zsh (~/.zshrc):
For fish (~/.config/fish/config.fish):
3. Reload shell config:
4. Verify:

Symptom

Claude Code doesn’t seem to be using rtk, outputs are verbose.

Checklist

1. Verify rtk is installed and correct:
2. Initialize rtk for Claude Code:
3. Verify CLAUDE.md or RTK.md file exists:
4. Install auto-rewrite hook (recommended):
5. Test it works:

Symptom

Solutions

1. Update Rust toolchain:
2. Clean and rebuild:
3. Check Rust version (minimum required):
4. If still fails, report issue:

Symptom

RTK traces remain after running rtk init -g --uninstall.

Manual Cleanup

For local projects: Manually remove RTK instructions from ./CLAUDE.mdBinary removal:

Need More Help?

Run the diagnostic script:
This script will check:
  • ✅ RTK installed and in PATH
  • ✅ Correct version (Token Killer, not Type Kit)
  • ✅ Available features (pnpm, vitest, next, etc.)
  • ✅ Claude Code integration (CLAUDE.md files)
  • ✅ Auto-rewrite hook status
The script provides specific fix commands for any issues found. Report issues: