Navigating Claude Code: Subagents Done Right

https://hackernoon.imgix.net/images/7GxDfl4wtJPkTNIEiNlRFbrUwgV2-bo83brx.png

Previously in the series

Introduction

Every tool call, file read, and exploratory detour in Claude Code's main conversation eats into the same context window. Do a codebase research pass that comes back with 4,000 tokens of findings, and that's 4,000 fewer tokens available for everything that follows — do it three or four times, and you're already compacting history before you've touched a single file.

Subagents are the mechanism for keeping that cost out of your main conversation. Each subagent runs in its own isolated context window, does its work, and returns only the result. The main session sees the summary, not the journey.

In the previous article, I covered skills — reusable slash commands that run inside your main conversation context....

Copyright of this story solely belongs to hackernoon.com. To see the full text click HERE

Read more