Skip to main content
ArcSight

← HomepageAll repository proofValidation recordState of TS Architecture 2026

Repository proof

gemini-cli architecture

Changing packages/cli/src/ui/constants in gemini-cli reaches 446 modules. 28 files call it directly. Snapshot 4ed06ed.

The first file to open in gemini-cli is packages/cli/src/ui/constants. A change there reaches 446 of 1,240 modules.

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

ui/constants446 · 28 fan-in
themes/theme431 · 30 fan-in
themes/semantic-tokens431 · 8 fan-in
ui/types393 · 106 fan-in
utils/textUtils374 · 33 fan-in

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

Download the finding

Project: gemini-cli · Score: 68.5/100 (Moderate technical debt) · 1,240 modules · 4,767 edges · TypeScript · 77 of 94 · Language score median 80.1

Cycles
100+
Duplicate authorities
254
God modules
50
Layer violations
23
arc impact packages/cli/src/ui/constants

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

README badge

ArcSight architecture proof for gemini-cli
[![ArcSight architecture proof for gemini-cli](https://arcsight.ai/badge/proof/gemini-cli/)](https://arcsight.ai/repositories/gemini-cli/)

Blast radius paths

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

gemini-cli · 4ed06ed

RankFileFan-inBlastShare
1packages/cli/src/ui/constants

concentrates too many responsibilities, shared utility hub

2844636%
2packages/cli/src/ui/themes/theme

concentrates too many responsibilities, shared utility hub, sits on a dependency cycle

3043135%
3packages/cli/src/ui/themes/semantic-tokens843135%
4packages/cli/src/ui/types10639332%
5packages/cli/src/ui/utils/textUtils3337430%
All ranked files
RankFileFan-inBlastShare
6packages/cli/src/config/settings9735829%
7packages/cli/src/config/trustedFolders1535829%

Highest fan-in

packages/core/src/utils/debugLoggerfan-in 165

Circular dependencies

This snapshot records 100+ dependency cycles.

Nearby proofs

Snapshot notes

In google-gemini gemini-cli, a change that begins in ui constants keeps traveling until it reaches themes theme, with themes semantic-tokens as the third file on that walk and the evals-test-helper group as the group around them, snapshot mark ceccaceedc.

ui types is worth opening beside ui constants because utils textUtils still participates when ui types moves, and config settings stays in view for google-gemini gemini-cli, snapshot mark ceccaceedc.

Review config trustedFolders only after themes theme and utils debugLogger are both on the table, since the link from agent types back to themes semantic-tokens belongs to google-gemini gemini-cli under snapshot mark ceccaceedc.

utils terminalSerializer and agents types are later stops, and a reviewer who has already seen ui constants should still look at services modelConfigService before treating the evals-test-helper group as understood for google-gemini gemini-cli, snapshot mark ceccaceedc.

confirmation-bus types closes the file list after services sandboxManager and ui constants, which keeps the google-gemini gemini-cli note tied to snapshot mark ceccaceedc, and the files named in this paragraph are the ones the review is willing to stand on.

Subsystem overview

  • evals-test-helper (40 modules)
  • src-types (19 modules)
  • config-settings (110 modules)
  • ui-semantic-colors (399 modules)
  • themes-theme (27 modules)
  • config-config (438 modules)
  • graph-types (35 modules)
  • src-types (3 modules)
  • src-types (8 modules)
  • src-diff-manager (3 modules)
  • src-types (3 modules)
  • db-db_interface.py (3 modules)
  • metrics-types (10 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 google-gemini gemini-cli: ui constants?
Start with ui constants, because the rest of the google-gemini gemini-cli walk leaves from that file and themes theme is the next file in the same review. Commit ceccaceedc records it.
What else is on the google-gemini gemini-cli walk besides ui constants and themes semantic-tokens?
themes semantic-tokens and ui types stay on the walk with utils textUtils, which are different files from ui constants inside the evals-test-helper group for google-gemini gemini-cli. Commit ceccaceedc records it.
How should a reviewer use config settings in the google-gemini gemini-cli snapshot?
Keep config settings, config trustedFolders, and utils debugLogger open together, then check agent types before merging the google-gemini gemini-cli change. Commit ceccaceedc records it.
Where does the google-gemini gemini-cli review stop after utils terminalSerializer?
Stop after utils terminalSerializer, agents types, and services modelConfigService have been compared with ui constants, leaving the evals-test-helper group until those google-gemini gemini-cli files are clear. Commit ceccaceedc 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/gemini-cli/" width="320" height="180" frameborder="0"></iframe>

Explore

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