// troubleshooting guide · zed

Zed Agent 'Max Tokens Reached' Error

Status
Workaround available
platforms:
All
updated:
November 15, 2026
reports:
2
Method
how we research
Share

RUNBOOK · zed/max-tokens-reached4 FIXES

// quick answer

Start a new thread, pick a larger-context model, or split the task.

Most likely fix: New thread

How to fix it

// try these in order, the most common fix is first

  1. FIX 1New thread

    1. 01Start a new agent thread
    Did this fix it?
  2. FIX 2Switch model

    1. 01Choose a larger-context model in AI settings
    Did this fix it?
  3. FIX 3Split task

    1. 01Break the request into smaller tasks
    Did this fix it?
  4. FIX 4Trim context

    1. 01Clear tool outputs or older messages in thread controls
    Did this fix it?

Symptoms

Agent stops with Max tokens reached.

Why it happens

  • C-01Long thread
  • C-02Model token limit

// this guide also covers

  • zed max tokens reached
  • zed agent error

Still not working?

If Zed keeps failing, you're not alone. See every Zed problem users report or the alternatives people switch to.

Have an app idea? Our small team builds any software: web and mobile apps, games, desktop, AI tools. Price agreed together.

Talk to us

Watch Zed Get an email when its price changes, it has an outage, or we publish a new fix. No spam.

Fixed it? Share this guide

The same problem in other apps

All not loading, error messages & connection guides →

Other Zed errors

All 11 Zed errors and fixes →