Skip to content
Go back

Tips to make Claude Code work faster!

Tips to make Claude Code work faster!

Since the last few weeks, I spent most of my day observing what Claude Code is doing… it’s basically become the Operating System of my computer. I notice that it spends most of the time running shell commands—searching files, processing text, navigating directories. At this point, I’m pretty sure it knows my filesystem better than I do.

So I don’t use the shell directly anymore—I always use Claude Code as my interface. Yesterday I asked it where I left my car keys and was genuinely disappointed when it couldn’t grep those.

At first I thought it was a bug, so I tried to intervene and grep it myself. But then I noticed I was in a virtual machine (I run Claude Code in Docker for security reasons) and I didn’t have my ripgrep tool. On my actual machine, I have customized the shell to use these better tools. This got me thinking: Why not give high quality tools to Claude Code (or Gemini CLI) as well?

The tip is to replace all traditional GNU tools with their Rust alternatives, so you can make these operations 5-20x faster, dramatically improving your Claude Code performance.

Old school tools

When Claude Code executes commands like searching for a function across your codebase, it runs:

find . -name "*.ts" -o -name "*.tsx" | xargs grep "useState"

These traditional tools process files sequentially. In large projects, this means waiting seconds or even minutes for results, multiplying across dozens of commands per session.

Rust is fast!

Modern Rust tools use parallel processing, smarter algorithms, and respect .gitignore by default:

File Search & Text Processing

File Management

System Monitoring

Development Tools

Navigation

How to make Claude Code Use Them Automatically

The key: shell aliases. When Claude Code calls standard commands, it’ll use the faster versions:

# Add to ~/.zshrc or ~/.bashrc
alias grep='rg'
alias find='fd'
alias ls='eza'
alias cat='bat'
alias sed='sd'
alias du='dust'
alias top='btm'
alias ps='procs'
alias cd='z'  # for zoxide

# Also add this line for zoxide initialization
eval "$(zoxide init zsh)"  # or bash

Now when Claude Code searches your codebase, it automatically benefits from:

Real Impact Example

Before: Claude Code searching a React codebase

$ time find . -name "*.tsx" | xargs grep "useState"
# 4.2 seconds

After: Same search with Rust tools

$ time fd -e tsx | xargs rg "useState"  
# 0.3 seconds

That’s 14x faster for a single operation. Across a full Claude Code session with dozens of searches, file operations, and text processing commands, you’ll save minutes of waiting.

Quick Setup

  1. Install the tools (Homebrew: brew install ripgrep fd eza bat sd dust bottom procs git-delta hyperfine tokei zoxide starship)
  2. Add the aliases to your shell config
  3. Restart your terminal
  4. Claude Code automatically uses the faster versions

Worth Noting

By spending 5 minutes on this setup, every Claude Code session becomes noticeably faster. Less waiting, more coding.


Share this post on:

Next Post
How to Orchestrate an Army of Software Engineers using UPER