---
title: "Discussion on \"The Name Index Pattern: Cutting Agent Context 99.2% on Tools and Skills Alike\" | Hashnode"
description: "Discussion on \"The Name Index Pattern: Cutting Agent Context 99.2% on Tools and Skills Alike\". There's a pattern I keep reaching for whenever an agent's context gets crowded, and it took me too long to notice it applies in two places at once.\nThe pattern is small: keep names resident, fetch bod"
url: "https://hashnode.com/posts/the-name-index-pattern-cutting-agent-context-99-2-on-tools-and-skills-alike/6abdda086a038ff28d8584d6"
---

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

Discussion

# [The Name Index Pattern: Cutting Agent Context 99.2% on Tools and Skills Alike](https://mcptoon.hashnode.dev/the-name-index-pattern-cutting-agent-context-99-2-on-tools-and-skills-alike?utm_source=hashnode&utm_medium=feed)

There's a pattern I keep reaching for whenever an agent's context gets crowded, and it took me too long to notice it applies in two places at once. The pattern is small: keep names resident, fetch bod

Oct 1 · 4 min read · mcptoon.hashnode.dev  
Read the article

-   [#artificial-intelligence](https://hashnode.com/tag/artificial-intelligence)
-   [#developer-tools](https://hashnode.com/tag/developer-tools)
-   [#python](https://hashnode.com/tag/python)

## Written by

[San zhang](https://hashnode.com/@mcptokensaver)

@mcptokensaver · San Francisco, CA

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

Building tools for AI agent token optimization and MCP development.

Developer building AI tools and MCP servers. Interested in token optimization and agent workflows.

## Responses 1

Markdown supported · ⌘↵ to post

[Adam Lewis](https://hashnode.com/@nark3d)

[Oct 6](https://hashnode.com/posts/the-name-index-pattern-cutting-agent-context-99-2-on-tools-and-skills-alike/6abdda086a038ff28d8584d6/comment/6ac4b7b2f6d63791de8f006e)

Keeping names resident and fetching bodies on demand is hard. We run jscpd in our quality gates through GitHub Actions. The rule names stay in front of you, the detail waits until something trips. Two places at once sounds right. I suspect a third.
