Update REA cleanly (npm, Bun, npx)

Last updated: · By the RepoRead editorial team · Unofficial guide
Quick answer

REA releases frequently. Keeping rea-agents current avoids fixed bugs and client catalog drift. This page compresses the upstream Update REA instructions for npm, Bun and npx users.

Global CLI (npm or Bun)

rea update
# equivalent alias:
rea --update

Upstream notes that updater commands retain at most 4 MiB of combined stdout/stderr and reject oversized metadata replies after exit.

Bun version gate

Bun global updates require Bun 1.2.17 or later. On older Bun, upgrade Bun first, then rerun rea update.

npx / bunx users

npx rea-agents@latest setup
# Bun:
bunx rea-agents@latest setup

Review the planned changes, approve, then restart the agent. One-shot CLI:

npx rea-agents@latest doctor --json

After updating

  1. Run the setup refresh command the updater prints (if any).
  2. rea doctor --json or a scoped doctor.
  3. Restart Claude Code / Codex / Cursor / other MCP clients so they load the new registration.
Bun global update errors on old runtime

Fix: Upgrade Bun to 1.2.17+, then rea update again.

Agent still sees old tools after update

Fix: Re-run npx rea-agents@latest setup and fully restart the agent process.

Related: Update or uninstall, Install.

FAQ

What does rea update do?

For a CLI installed with npm install --global or bun add --global, rea update runs the verified updater workflow. rea --update is an alias.

Why does Bun update fail?

Upstream requires Bun 1.2.17 or later for global updates. Upgrade Bun manually, then rerun rea update.

I only use npx — how do I update?

Run npx rea-agents@latest setup, review changes, restart your agent. For one-offs, prefix commands with npx rea-agents@latest.

Do I need to re-run setup after update?

Yes when the updater prints a setup refresh command — that refreshes agent registrations and the matching skill.

Does update purge ~/.rea?

No. Uninstall --purge-data is a separate path. See the update/uninstall guide.

Sources