# LangChain finds agent traces are mostly tool output, not user messages

> Original title: AI Search reads each trajectory within a fixed token budget.

- Source: LangChain
- Published: 2026-10-16T17:00:00.000Z
- Bad Influence: https://badinfluence.news/items/vohr5fdc2a0ekmhrclr7jz3nf
- Original: https://x.com/LangChain/status/2111140114131046507

## Summary

LangChain says its AI Search reads each agent trajectory within a fixed token budget, since most behavior questions need only a small slice. In a check of 150 Open SWE coding agent conversations, the median run used 84K tokens. About 1.5K of that was user messages and the final reply, while roughly three-quarters was tool output such as file reads, shell commands, and test logs.

## Post

AI Search reads each trajectory within a fixed token budget.

Most questions about behavior only need a small slice, and we checked that on 150 conversations from Open SWE, the coding agent our team uses every day.

✅ The median ran 84K tokens
✅ About 1.5K of that was the user’s messages and the agent’s final reply
✅ Roughly 3/4 was tool output: file reads, shell commands, test logs 

https://www.langchain.com/blog/agent-traces-ai-search-langsmith
