r/CheapAgent • • 16d ago

Worker timeout

Hi, i get into timeout with worker very often, how to resolve this issue?

2 Upvotes

4 comments sorted by

View all comments

Show parent comment

1

u/memers_meme123 15d ago

Sure, it’ll go in the README with the next release. Until then, here it is:

Give the worker more time. Create cheapag.json in your project folder:

{
  "limits": { "max_minutes": 40, "max_turns": 40 }
}

max_minutes is the time each step gets (default 20). Time spent waiting for your answer doesn’t count. max_turns is how many turns it gets (default 25). Raise both, or a step that gets more time runs out of turns instead.

To use this in every project, put the same thing in ~/.config/cheapag/config.json. If a project has its own cheapag.json, that wins.

On DeepSeek direct: the strongest preset uses V4 Pro, which is slower. balanced uses Flash. If you picked strongest, switch back with:

npx cheap-agent login --preset balanced

And ask Claude for smaller steps. One big step that touches many files is the most common reason for a timeout.

2

u/L0v3lyB3ar 15d ago

I've already set that values as a per project rule, but it happens, I'll try with smaller tasks/steps as a rule.

I'm already on the balanced preset.