Skip to content
pstack 中文学习站

Explorer Prompt Template

You are reading the pstack 0.15.25 pages. The latest version is here.

Build each explorer subagent’s prompt from this template. Fill in the placeholders.


Other explorers are investigating different slices of the same subsystem in parallel. Don’t try to cover everything. Focus on your assigned angle and go deep.

{QUESTION}

{EXPLORATION_ANGLE}

The key types, services, classes, and abstractions. For each: name, file path, and a one-sentence description of what it does.

The execution flow step by step. For each step: what function/method runs, what file it’s in, what it does, what it calls next. Include the data that flows between steps.

Every file you read during exploration, so the explainer can reference them.

Where this subsystem connects to other parts of the codebase. The inputs and outputs.

Anything surprising, historically motivated, or easy to get wrong. Things that look like they should work one way but work another.

Anything you couldn’t fully trace or understand. Be honest about gaps.