Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save aslamdoctor/dd43ef75ecdf00b1e2ae8dc670c3f6c7 to your computer and use it in GitHub Desktop.

Select an option

Save aslamdoctor/dd43ef75ecdf00b1e2ae8dc670c3f6c7 to your computer and use it in GitHub Desktop.
Speed up Claude Code with modern CLI tools (bun, ripgrep, fd, sd, jq, parallel)

Speed up Claude Code with modern CLI tools

Claude Code runs shell commands constantly — finding files, searching code, processing JSON, running scripts. The default Unix tools (find, grep, sed, node) work, but modern replacements written in Rust and Zig are significantly faster.

Installing these tools and telling Claude Code to prefer them can noticeably speed up your workflow.

The tools

Default tool Modern replacement Speedup Purpose
node / npm bun 4-25x Run JS/TS, install packages
grep ripgrep (rg) 5-10x Search file contents
find fd 5-10x Find files by name/pattern
sed sd 2-5x Find-and-replace in files
n/a jq n/a JSON processing (essential, often missing)
n/a GNU parallel n/a Run shell tasks concurrently

Install on macOS

# Install bun (has its own installer)
curl -fsSL https://bun.sh/install | bash

# Install the rest via Homebrew
brew install ripgrep fd sd jq parallel

Install on Windows

Note: The Windows instructions below were verified against package registries but not tested on a live machine. If you hit any issues, please leave a comment — I'd love to get these right.

Windows has three package managers. Pick one approach and stick with it.

Option A: winget (built into Windows 11)

winget install Oven-sh.Bun
winget install BurntSushi.ripgrep.MSVC
winget install sharkdp.fd
winget install jqlang.jq

Note: sd is not available via winget. Install it with scoop (scoop install sd) or cargo (cargo install sd).

Option B: scoop (popular with developers, no admin rights needed)

First install scoop if you don't have it:

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression

Then install the tools:

scoop install bun ripgrep fd sd jq

GNU parallel on Windows

GNU parallel is a Unix tool with no native Windows version. Use it through WSL:

wsl --install

Then inside your WSL terminal:

sudo apt-get install parallel

Tell Claude Code to use them

The key step: add these tools to your ~/.claude/CLAUDE.md file so Claude Code knows they're available. Without this, Claude Code will fall back to the slower defaults.

Add this section to your CLAUDE.md:

## Installed CLI tools

- **bun** is installed — prefer over `node`/`npm` for running scripts, installing packages, and executing JS/TS
- **ripgrep** (`rg`) is installed — prefer over `grep` for shell searches
- **fd** is installed — prefer over `find` for file finding by name/pattern
- **sd** is installed — prefer over `sed` for find-and-replace in files
- **jq** is installed — use for JSON processing in shell pipelines
- **GNU parallel** is installed — use for concurrent shell tasks when beneficial

Why this works

Claude Code reads CLAUDE.md at the start of every session. When it sees these instructions, it will reach for the faster tool every time it needs to search, find, or process something in the shell.

The speed gains compound quickly. A typical coding session involves dozens of file searches, content greps, and script executions. Shaving milliseconds off each one adds up.

Verify your setup

After installing, confirm everything works:

bun --version
rg --version
fd --version
sd --version
jq --version
parallel --version

Start a new Claude Code session and ask it to find a file or search for a pattern — it should use the modern tools automatically.


Written and tested with Claude Code — the same AI I teach with and build with every day.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment