Skip to main content
ArcSight

← HomepageAll repository proofValidation recordState of TS Architecture 2026

Repository proof

prompt_toolkit architecture

Changing src/prompt_toolkit/keys.py in prompt_toolkit reaches 111 modules. 19 files call it directly. Snapshot 6c7fbc1.

The first file to open in prompt_toolkit is src/prompt_toolkit/keys.py. A change there reaches 111 of 145 modules.

This lead file reaches 77% of the graph. The median published proof reaches 60%.

prompt_toolkit/keys.py111 · 19 fan-in
…ompt_toolkit/data_structures.py111 · 17 fan-in
layout/dimension.py110 · 13 fan-in
filters/__init__.py109 · 34 fan-in
key_binding/key_bindings.py109 · 27 fan-in

Median 60%. Thick bar is blast share. Thin bar is fan-in.

Download the finding

Project: prompt_toolkit · Score: 70.1/100 (Moderate technical debt) · 145 modules · 684 edges · Python · 44 of 54 · Language score median 78.9

Cycles
100+
Duplicate authorities
0
God modules
15
Layer violations
0
arc impact src/prompt_toolkit/keys.py

Under 3 minutes to first arc impact on a TypeScript monorepo (internal runs).

README badge

ArcSight architecture proof for prompt_toolkit
[![ArcSight architecture proof for prompt_toolkit](https://arcsight.ai/badge/proof/prompt-toolkit/)](https://arcsight.ai/repositories/prompt-toolkit/)

Blast radius paths

Ranked by blast radius. Fan-in is direct dependents. Blast radius is downstream modules reachable from that file.

prompt_toolkit · 6c7fbc1

RankFileFan-inBlastShare
1src/prompt_toolkit/keys.py

concentrates too many responsibilities, shared utility hub

1911177%
2src/prompt_toolkit/data_structures.py

concentrates too many responsibilities

1711177%
3src/prompt_toolkit/layout/dimension.py

concentrates too many responsibilities

1311076%
4src/prompt_toolkit/filters/__init__.py

concentrates too many responsibilities

3410975%
5src/prompt_toolkit/key_binding/key_bindings.py2710975%
All ranked files
RankFileFan-inBlastShare
6src/prompt_toolkit/application/current.py2610975%
7src/prompt_toolkit/key_binding/key_processor.py2610975%

Circular dependencies

This snapshot records 100+ dependency cycles.

Nearby proofs

Snapshot notes

In prompt-toolkit prompt-toolkit, a change that begins in prompt_toolkit keys.py keeps traveling until it reaches prompt_toolkit data_structures.py, with layout dimension.py as the third file on that walk and the ROOT_CLUSTER group as the group around them, snapshot mark bbebddeadb.

filters __init__.py is worth opening beside prompt_toolkit keys.py because key_binding key_bindings.py still participates when filters __init__.py moves, and application current.py stays in view for prompt-toolkit prompt-toolkit, snapshot mark bbebddeadb.

Review key_binding key_processor.py only after prompt_toolkit data_structures.py and prompt_toolkit utils.py are both on the table, since the link from prompt_toolkit keys.py back to layout dimension.py belongs to prompt-toolkit prompt-toolkit under snapshot mark bbebddeadb.

prompt_toolkit data_structures.py and layout dimension.py are later stops, and a reviewer who has already seen prompt_toolkit keys.py should still look at filters __init__.py before treating the ROOT_CLUSTER group as understood for prompt-toolkit prompt-toolkit, snapshot mark bbebddeadb.

key_binding key_bindings.py closes the file list after application current.py and prompt_toolkit keys.py, which keeps the prompt-toolkit prompt-toolkit note tied to snapshot mark bbebddeadb, and the files named in this paragraph are the ones the review is willing to stand on.

Subsystem overview

  • ROOT_CLUSTER (134 modules)

CLI workflow

Impact, then scan, fix, finish, and watch.

  • arc impact <file>See what a change breaks
  • arc scanFind issues
  • arc fixApply fixes
  • arc finishResolve remaining
  • arc watchKeep clean

More commands (explain, guard…) →

FAQ

Which file should change first in prompt-toolkit prompt-toolkit: prompt_toolkit keys.py?
Start with prompt_toolkit keys.py, because the rest of the prompt-toolkit prompt-toolkit walk leaves from that file and prompt_toolkit data_structures.py is the next file in the same review. Commit bbebddeadb records it.
What else is on the prompt-toolkit prompt-toolkit walk besides prompt_toolkit keys.py and layout dimension.py?
layout dimension.py and filters __init__.py stay on the walk with key_binding key_bindings.py, which are different files from prompt_toolkit keys.py inside the ROOT_CLUSTER group for prompt-toolkit prompt-toolkit. Commit bbebddeadb records it.
How should a reviewer use application current.py in the prompt-toolkit prompt-toolkit snapshot?
Keep application current.py, key_binding key_processor.py, and prompt_toolkit utils.py open together, then check prompt_toolkit keys.py before merging the prompt-toolkit prompt-toolkit change. Commit bbebddeadb records it.
Where does the prompt-toolkit prompt-toolkit review stop after prompt_toolkit data_structures.py?
Stop after prompt_toolkit data_structures.py, layout dimension.py, and filters __init__.py have been compared with prompt_toolkit keys.py, leaving the ROOT_CLUSTER group until those prompt-toolkit prompt-toolkit files are clear. Commit bbebddeadb records it.

Run ArcSight on your repo

Install locally, then run arc impact on the file you plan to change — before merge.

npx arcsight init
arc impact <path>
Install ArcSight →

Embed this report

Use this iframe to show the architecture badge on your site.

<iframe src="https://arcsight.ai/embed/prompt-toolkit/" width="320" height="180" frameborder="0"></iframe>

Explore

Evidence-backed analysis snapshot. snapshot.json · How ArcSight measures blast radius · Install · Homepage demo