20k command result limit is far too little

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Command output is being prematurely truncated. It apparently now has a 20k limit (I believe it was much larger before?) which means it cannot accurately run git diffs on large sets of changes. Why is there this limit? should be able to handle up to the remaining context window size at least..

Steps to Reproduce

have the agent do a git diff on anything remotely interesting and the git will be truncated

Expected Behavior

do not truncate – 640k was a barrier long ago, 20k is silly low.

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.3.21
VSCode Version: 1.105.1
Commit: 68e0a0385b87408d050869ea543e3778ad53f780
Date: 2026-01-02T23:46:13.381Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Darwin arm64 24.6.0

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

Most likely limited to 1000 lines.
Tell Agent to export the git diff to a file if it needs to read it. I run this in PowerShell

git diff > temporary/git_diff.txt && git add . && git status >> temporary/git_diff.txt

hi @charles thank you for the post. It is not a bug in that sense as it’s not broken. We do have to limit context size as long terminal output confuses agents and they perform worse but also consume much more tokens.

We have a fix for that with dynamic context discovery that will roll out soon.

Also doesn’t the Agent find relevant info from logs by itself? that works for me already.

No it tries to read the git diff as requested, sees its truncated and goes a bit wild trying to overcome it. Shouldnt be all these hard limits in Cursor, they’re sloppy. It should scale to infinity unless literally constrained by a hard resource like memory (or token context lengths). Causes problems when none would occur.

Say Goodbye to AI’s “Goldfish Memory”! MCP Git Server Deep Integration Guide - Discussions - Cursor - Community Forum

Try using this MCP tool. Have it save each modification to a change log, and then let it view the change list before pushing the final update.