---
title: "Discussion on \"Where the tokens go in an agent session\" | Hashnode"
description: "Discussion on \"Where the tokens go in an agent session\". Most of what an agent session costs isn't the answer it produced — it's the same context, re-sent on every turn. Here's the one lever that matters."
url: "https://hashnode.com/posts/where-the-tokens-go-in-an-agent-session/6a70e3a277aa6e54117da7f7"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Where the tokens go in an agent session](https://codebase-memory.hashnode.dev/where-the-tokens-go-in-an-agent-session?utm_source=hashnode&utm_medium=feed)

Most of what an agent session costs isn't the answer it produced — it's the same context, re-sent on every turn. Here's the one lever that matters.

Aug 3 · 7 min read · codebase-memory.hashnode.dev  
Updated Aug 9  
Read the article

-   [#codebase-memory](https://hashnode.com/tag/codebase-memory)
-   [#persistent-ai-memory](https://hashnode.com/tag/persistent-ai-memory)
-   [#tokens-in-ai](https://hashnode.com/tag/tokens-in-ai)

## Written by

[Akash Goenka](https://hashnode.com/@akashgoenka)

@akashgoenka · Bengaluru, India

  
[View profile](https://hashnode.com/@akashgoenka)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
