الانتقال إلى المحتوى
Claude وأدوات الـ AI للبرمجةSkills و Hooks و Subagents· 6 دقائق للقراءة

Subagents Don't See Your Conversation: Brief Them Like a New Teammate

A subagent starts fresh, with only the task message Claude writes for it. Only a fork inherits what you discussed.

ReadIn

مقال كل يوم يفرق معاك

21 نوفمبر 2026
  • كاتب موثّق
  • Claude Code 2.x
محتويات المقال

You've spent an hour with Claude on a flaky HTTP client. Together you've established that the bug is in the retry loop, not the cache, that fetchWithRetry must keep its public signature because two other teams call it, and that vendor/ is generated. You type "use a subagent to review my changes". The review comes back with three findings: change the signature of fetchWithRetry, add a response cache, and fix the formatting in vendor/. Every one of them is something the conversation already settled. The reviewer wasn't there for any of it.

The common misconception

"A subagent is a copy of the current session, so it already knows everything we've discussed." It's easy to see why:

  • It runs inside your session, starts from your prompt and works on the same repository.
  • Claude starts it, and Claude clearly knows the context, so it seems natural that the context comes along.
  • Since fork mode became the default, Claude can start forks, which really do inherit the whole conversation.
  • The results come back sounding confident and fluent, so a missing piece of background is easy to miss.

The half-truth is the fork. A fork does carry your conversation. But the Explore agent Claude uses for broad searches, the general-purpose agent, your custom subagents and skills that run with context: fork all start fresh.

What actually happens

A fresh context window, on purpose

The docs are explicit: each "starts with a fresh, isolated context window. It doesn't see your conversation history, the skills you've already invoked, or the files Claude has already read." What it does start with is short:

  • Its own system prompt, not the Claude Code system prompt
  • The task message Claude writes when it hands off the work
  • Your CLAUDE.md files and a git status snapshot, except for the built-in Explore and Plan agents, which skip both
  • The full text of any skills its definition preloads

Your output style and auto memory don't reach it either. That isolation is the point. The subagent can read fifty files in its own and hand back a summary, and none of those reads fill yours.

The task message is the whole briefing

"Claude composes a delegation message that summarizes the task, and the subagent works from there." Even when you @-mention a specific subagent, your full message goes to Claude, which writes the subagent's prompt from what you asked. So your words shape the brief. "Review my changes" becomes a brief with no decisions in it, and a reviewer with no decisions to respect.

Forks are the exception

A inherits the whole conversation: the same system prompt, tools, model and history. Because its first request matches the parent's, it reuses the parent's prompt cache, so it costs less than a fresh subagent for a task that needs the same context. You can start one yourself with /subtask followed by the task.

Don't confuse it with a skill's context: fork setting. Despite the name, such a skill runs in a fresh subagent that "doesn't see your conversation history", so its instructions have to stand on their own.

ForkCustom or general-purpose subagentExplore and Plan
Your conversationAll of itOnly the task messageOnly the task message
CLAUDE.mdAlready in the historyLoadedNot loaded
System promptSame as your sessionFrom its definitionBuilt in
Prompt cacheShared with your sessionIts ownIts own
Best forSide tasks that need the historyFocused work, a reviewer with fresh eyesSearching and planning research

Only the result comes back

The subagent's own tool calls stay out of your conversation; its final result is what returns. That cuts both ways. Ask for a long report and you get a long report in your context. Run several subagents in parallel that each return details, and the docs warn that they "can consume significant context".

The same delegation, briefed two ways

text prompt
use a subagent to review my changes

The second prompt costs a minute and carries everything the reviewer can't infer: the goal, the decisions, what to skip and the size of the answer. It also keeps what makes a fresh reviewer valuable. The docs point out that a reviewer who didn't write the code "isn't swayed by the reasoning that produced the code"; you want it to know your constraints, not your conclusions.

When you brief the same kind of worker every week, move the standing parts into a definition in .claude/agents/. The body becomes the subagent's system prompt:

Markdown .claude/agents/http-reviewer.md
---name: http-reviewerdescription: Reviews changes to src/http/. Use after edits there.tools: Read, Grep, Glob, Bash---You review a diff you didn't write, with no chat history.- Public signatures in src/http/index.ts are frozen.- Ignore vendor/ (generated) and formatting.Report at most 10 findings as file:line plus one sentence.If you find nothing, say so; don't invent issues.

How to apply it in your project

  1. Pick fork or freshIf the task needs the history, fork it with /subtask. If it needs independence, such as a review, use a fresh subagent.
  2. Write the briefSay the goal, what's decided or ruled out, where to look, what to skip and which tools or commands to use.
  3. Size the answerAsk for a format and a limit, such as ten findings as file:line, so the result doesn't flood your context.
  4. Save standing briefs as definitionsPut repeated instructions, a tool list and the output format in .claude/agents/<name>.md, and keep the description short.
  5. Check what they costRun /usage to see what share each subagent type takes, and set model: haiku for simple jobs like collecting files.

Key takeaways

  • A non-fork subagent starts with a fresh context window, not a copy of your session.
  • The task message Claude writes is the whole briefing, so what you ask shapes what it knows.
  • Explore and Plan also skip CLAUDE.md; restate rules they must follow.
  • A fork inherits the conversation; a skill's context: fork doesn't.
  • Brief for the goal, the decisions, the scope and the size of the answer.

📚 المصادر

  1. Create custom subagents — Claude Code Docs
  2. Explore the context window — Claude Code Docs
  3. Best practices for Claude Code — Claude Code Docs
  4. Extend Claude with skills — Claude Code Docs

التعليقات (0)