A two-pass method for understanding large repositories: first feed the skeleton to get an architecture map, then fill in named files for a full call chain.
Disclaimer: The content shown on this page is generated by an AI model and is for reference only. It does not constitute any guarantee of results. Actual output and Credits consumption are subject to "Usage Details" in the console.
asyncio package of CPython 3.13 (33 modules / about 15000 lines / 519 KB) to run through the two-pass survey method: the most time-consuming part of taking over an unfamiliar repo is first figuring out how it runs. Real projects run tens of thousands of lines — you can't and shouldn't stuff it all in at once. The right approach is to first give the structural skeleton so the model can point the way and name key files, then fill in the full text of those named files. The first pass takes only a tenth of the input.
Call chain: qwen3.8-max (two calls). (1) Feed only the signature skeleton (52 KB, about 10% of the source) to get an architecture map and named files → (2) feed the full text of the named files to get a precise call chain.
Step 1: Give only the skeleton, get an architecture map and named files
Use ast to walk *.py, taking only class and function signatures plus the first docstring line, dropping the bodies. Generate the signature skeleton and send it along with the instruction below to qwen3.8-max:
Step 2: Fill in the named files for a call chain
Send back the full text of the files the model named, and have it draw the core call chain based on the real code:
View actual output · asyncio survey report excerpt (qwen3.8-max)
View actual output · asyncio survey report excerpt (qwen3.8-max)
Notes
- Consumption: This playbook involves long context + deep reasoning (
qwen3.8-max). Two-round actual usage: Round 1 input about 14000 / output about 20000 (of which thinking about 12000); Round 2 input about 70000 / output about 23000 (thinking about 15000). Thinking consumption is often close to or even exceeds the prose output — don't estimate cost by the report word count alone. - Where the two-pass method saves: Putting 519 KB of source directly into context is roughly hundreds of thousands of tokens, whereas feeding the 52 KB skeleton first costs only about 14000 input; filling in the full text after the first round names the files is far cheaper than stuffing everything in at once.
- Sensitive information: Code entering the context means content is sent to the server side. Files containing keys, intranet addresses, or customer data must be removed or desensitized first.