ai newsFr., 4. Dez.
EilmeldungAlibaba Releases Qwen4-35B-A3B: Open-Weight MoE Model With 1M Context

Claude-Code-Subagenten im Test: Was sie aus CLAUDE.md wirklich mitbekommen

Ein Claude-Code-Session delegiert viel Arbeit an Subagenten. Ein Experiment verteilte Codewoerter an sechs Stellen, die eine Session einliest, und fragte danach fuenf Arten von Subagenten, welche ihnen vorlagen: Explore und Plan hatten das Codewort aus CLAUDE.md nie gesehen.

dev.toDonnerstag 05:17 · 03.12.DE4 Min. Lesezeit
Bild: dev.to

Eine Claude-Code-Sitzung übergibt einen großen Teil ihrer Arbeit an Subagents: die Suche, den Plan, die Review. Wir wollten wissen, womit ein Subagent startet. Am 3. Dezember 2026 versteckten wir sechs Codewörter an sechs Stellen, von denen eine Sitzung Dinge aufnimmt, und fragten dann fünf Arten von Subagents, welche davon sie besaßen. Unsere KI-Agent-Sitzungen führten den Test unter Anleitung eines Gründers durch.

Eine frische Hauptsitzung mit ausgeschalteten Tools antwortete mit PEAR, KIWI, DATE. Die drei Startquellen wurden also alle geladen.

Die Läufe verwendeten Claude Code 2.1.335 im nicht-interaktiven Modus auf Sonnet 5.5, wobei unsere Nutzereinstellungen außen vor blieben. Die Hauptsitzung erhielt diesen Prompt:

Das Codewort für diese Konversation ist MANGO. Lies zuerst notes.txt. Starte dann einen Subagent vom Typ general-purpose mit exakt diesem Prompt, ohne etwas zu ändern: 'Ohne eine Datei zu lesen oder einen Befehl auszuführen, liste jedes Codewort auf, das in irgendetwas vorkommt, das dir übergeben wurde. Antworte nur mit den Codewörtern oder mit NONE.' Wenn er antwortet, gib seine Antwort Wort für Wort und nichts sonst wieder. Wir wechselten den Typ bei jedem Durchlauf: general-purpose, unser eigener Checker-Agent, die eingebauten Agenten Explore und Plan sowie ein Fork. Vier Läufe pro Typ, zwei für den Fork. Die gespeicherten Transkripte zeigen, dass jede Hauptsitzung den Prompt Wort für Wort weitergab und kein Subagent ein Tool benutzte.

Jeder Lauf eines Typs lieferte dieselbe Antwort.

Explore und Plan antworteten in allen acht Läufen mit NONE. Nach dem Copilot-Ergebnis aus unserem früheren Test nehmen wir die Aussage eines Modells dafür nicht ab. Claude Code speichert ein Transkript pro Subagent, und es zeichnet die Anfrage auf, die gesendet wurde. Keines der sechs Codewörter erscheint irgendwo in den Explore- oder Plan-Anfragen. In denen vom Typ general-purpose listet der Anweisungsblock drei Dateien auf: CLAUDE.md, die Regeldatei und den Speicherindex.

Wir führten zusätzlich eine einfachere Prüfung durch. Eine CLAUDE.md mit dem Inhalt "We deploy on Fridays." und die Frage "What day do we deploy?" Der general-purpose-Subagent sagte beide Male Fridays. Explore und Plan sagten beide Male "I do not know."

Das ist dokumentiert. Anthropics Subagent-Dokumentation sagt, dass Explore und Plan ohne deine CLAUDE.md-Dateien starten, um die Recherche schnell und günstig zu halten, und dass die Hauptkonversation sie weiterhin hat, wenn sie das Ergebnis liest. Beide Agenten liefen hier auf demselben Modell wie die Hauptsitzung, es ratete also kein kleineres Modell.

In der Praxis bedeutet das: Eine Zeile in der CLAUDE.md wie "ignoriere den Vendor-Ordner" oder "das alte Billing-Modul ist eingefroren" steht nicht vor dem Agenten, der deine Codebase durchsucht oder deinen Plan entwirft. Der eigene Rat der Dokumentation lautet, eine solche Regel beim Delegieren im Prompt zu wiederholen. Dort heißt es auch, dass die CLAUDE.md eines Unterordners weiterhin geladen wird, wenn einer dieser Agenten dort mit Dateien arbeitet. Das haben wir nicht getestet.

MANGO und FIG erreichten nur den Fork. Ein gewöhnlicher Subagent startet frisch. Er erhält seinen eigenen System-Prompt, die Anweisungsdateien und das, was die Hauptsitzung in den Delegierungs-Prompt schreibt. Was du der Sitzung vor einer Stunde gesagt hast, bleibt zurück. Ebenso die Dateien, die sie seitdem gelesen hat.

Der Fork ist die Ausnahme. Er erbt die gesamte Konversation, und beide Fork-Läufe antworteten mit PEAR, KIWI, DATE, MANGO, FIG.

Der eigene Agent erhielt zusätzlich zu den drei gemeinsamen noch PLUM aus seiner eigenen Datei. Kein anderer Typ sah PLUM.

Dieselbe Dokumentationsseite sagt, dass das Auto-Memory der Hauptkonversation nicht in einen Subagent geladen wird, der kein Fork ist. In unseren Läufen war es das. Die general-purpose- und die eigenen Subagents antworteten in acht von acht Läufen mit DATE, und ihre aufgezeichneten Anfragen enthalten den MEMORY.md-Index des Projekts, gekennzeichnet als Auto-Memory.

Wir wissen nicht, was beabsichtigt ist. Unsere Läufe waren Version 2.1.335, nicht-interaktiver Modus, auf Windows, und es war nur der einzeilige Indexeintrag beteiligt, nicht die vollständige Notiz dahinter. Wenn es für dich wichtig ist, ob ein Subagent dein Auto-Memory sieht, prüfe deine eigene Version.

Was Claude Code mit dem Rest eines Teams teilt und was auf einem Rechner bleibt, steht in unserem Guide: Is Claude Code's memory shared with your team?.

Wir entwickeln KoalaFix, ein geteiltes Gedächtnis für die KI-Coding-Agenten eines Teams, wir haben also ein Interesse an diesem Thema. Wäge ab, was wir sagen, mit diesem Hintergrund.

Dieser Beitrag wurde mit KI-Unterstützung entworfen und von einem Gründer geprüft.

Automatisch übersetzt. Das Original auf Englisch ist unten aufklappbar.

Original (Englisch) anzeigen

A Claude Code session hands a lot of its work to subagents: the search, the plan, the review. We wanted to know what a subagent starts with. On 3 December 2026 we hid six codewords in six places a session picks things up from, then asked five kinds of subagent which ones they had. Our AI agent sessions ran the test under a founder's direction.

A fresh main session with its tools off answered PEAR, KIWI, DATE. So the three startup sources all loaded.

The runs used Claude Code 2.1.335 in non-interactive mode on Sonnet 5.5, with our user settings kept out. The main session got this prompt:

The codeword for this conversation is MANGO. First read notes.txt. Then start one subagent of type general-purpose with exactly this prompt, changing nothing: 'Without reading any file or running any command, list every codeword that appears in anything you were given. Reply with the codewords only, or NONE.' When it answers, reply with its answer word for word and nothing else. Enter fullscreen mode Exit fullscreen mode We swapped the type each time: general-purpose, our custom checker agent, the built-in Explore and Plan agents, and a fork. Four runs per type, two for the fork. The saved transcripts show every main session passed the prompt on word for word, and no subagent used a tool.

Every run of a type gave the same answer.

Explore and Plan answered NONE in all eight runs. After the Copilot result in our earlier test we don't take a model's word for that. Claude Code saves a transcript per subagent, and it records the request that was sent. None of the six codewords appears anywhere in the Explore or Plan requests. In the general-purpose ones, the instructions block lists three files: CLAUDE.md, the rules file and the memory index.

We ran a plainer check as well. A CLAUDE.md that says "We deploy on Fridays." and the question "What day do we deploy?" The general-purpose subagent said Fridays both times. Explore and Plan said "I do not know." both times.

This is documented. Anthropic's subagent docs say Explore and Plan start without your CLAUDE.md files to keep research fast and cheap, and that the main conversation still has them when it reads the result. Both agents ran on the same model as the main session here, so this was not a smaller model guessing.

In practice, a line in CLAUDE.md such as "ignore the vendor folder" or "the old billing module is frozen" is not in front of the agent doing your codebase search or drafting your plan. The docs' own advice is to restate a rule like that in the prompt when delegating. They also say a subfolder's CLAUDE.md still loads when one of these agents works with files there. We did not test that.

MANGO and FIG reached only the fork. An ordinary subagent starts fresh. It gets its own system prompt, the instruction files, and whatever the main session writes into the delegation prompt. What you told the session an hour ago stays behind. So do the files it has read since.

A fork is the exception. It inherits the whole conversation, and both fork runs answered PEAR, KIWI, DATE, MANGO, FIG.

The custom agent got PLUM from its own file on top of the shared three. No other type saw PLUM.

The same docs page says the main conversation's auto memory is not loaded into a subagent that is not a fork. In our runs it was. The general-purpose and custom subagents answered DATE in eight runs out of eight, and their recorded requests include the project's MEMORY.md index, labelled as auto memory.

We don't know which is intended. Our runs were version 2.1.335, non-interactive mode, on Windows, and only the one-line index entry was involved, not the full note behind it. If it matters to you whether a subagent sees your auto memory, check your own version.

What Claude Code shares with the rest of a team, and what stays on one machine, is in our guide, Is Claude Code's memory shared with your team?.

We build KoalaFix, a shared memory for a team's AI coding agents, so we have an interest in this topic. Weigh what we say with that in mind.

This post was drafted with AI assistance and checked by a founder.

Originaltitel: We asked Claude Code's subagents for the codeword in CLAUDE.md. Explore and Plan had never seen it.Quelle: dev.to (dev.to). Original öffnen