GEMINI.md
packages/devtools/GEMINI.mdGEMINI.md
Quality
74/100
Scores the file, not the repository.Length
362 words
10 headings · 3 code blocksRepository
106k
— · pushed 0 days agoLast changed
3 days ago
First indexed 3 days ago.1# Gemini CLI DevTools23Integrated Developer Tools for Gemini CLI, providing a Chrome DevTools-like4interface for Network and Console inspection. Launched automatically when the5`general.devtools` setting is enabled.67## Features89- **Network Inspector**: Real-time request/response logging with streaming10 chunks and duration tracking11- **Console Inspector**: Real-time console log viewing12 (log/warn/error/debug/info)13- **Session Management**: Multiple CLI session support with live connection14 status15- **Import/Export**: Import JSONL log files, export current session logs1617## How It Works1819When `general.devtools` is enabled, the CLI's `devtoolsService` automatically:20211. Probes port 25417 for an existing DevTools instance222. If found, connects as a WebSocket client233. If not, starts a new DevTools server and connects to it244. If another instance races for the port, the loser connects to the winner2526No environment variables needed for normal use.2728## Architecture2930```31gemini.tsx / nonInteractiveCli.ts32 │ (dynamic import)33 ▼34 devtoolsService.ts ← orchestration + DevTools lifecycle35 │ (imports)36 ▼37 activityLogger.ts ← pure logging (capture, file, WebSocket transport)38 │ (events)39 ▼40 DevTools server (:25417) ← this package (HTTP + WebSocket + SSE)41 │ (SSE /events)42 ▼43 DevTools UI (React) ← client/ compiled by esbuild44```4546## Environment Variables4748| Variable | Description |49| -------------------------------- | --------------------------------------------- |50| `GEMINI_CLI_ACTIVITY_LOG_TARGET` | File path for JSONL mode (optional, fallback) |5152## API Endpoints5354| Endpoint | Method | Description |55| ----------------------- | --------- | --------------------------------------------------------------------------- |56| `/ws` | WebSocket | Log ingestion from CLI sessions (register, network, console) |57| `/events` | SSE | Pushes snapshot on connect, then incremental network/console/session events |58| `/api/trigger-debugger` | POST | Triggers the Node.js debugger for a specific CLI session via WebSocket |5960## Development6162```bash63# Build everything (client + server)64npm run build6566# Rebuild client only after UI changes67npm run build:client68```6970### Project Structure7172```73packages/devtools/74├── src/75│ └── index.ts # DevTools server (HTTP, WebSocket, SSE)76├── client/77│ ├── index.html78│ └── src/79│ ├── main.tsx # React entry80│ ├── App.tsx # DevTools UI81│ └── hooks.ts # Data fetching hooks82├── esbuild.client.js # Client build script83└── dist/ # Build output84 ├── src/index.js # Compiled server85 └── client/ # Bundled client assets86```87
Also in google-gemini/gemini-cli
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| google-gemini/gemini-cliGEMINI.md · 106k | GEMINI.md | setupbuildtestlint-format+6 | 91/100 | 3 days ago | |
| google-gemini/gemini-clipackages/a2a-server/GEMINI.md · 106k | GEMINI.md | test | 37/100 | 3 days ago | |
| google-gemini/gemini-clipackages/cli/GEMINI.md · 106k | GEMINI.md | teststyleui | 47/100 | 3 days ago | |
| google-gemini/gemini-clipackages/core/GEMINI.md · 106k | GEMINI.md | teststyle | 63/100 | 3 days ago | |
| google-gemini/gemini-clipackages/sdk/GEMINI.md · 106k | GEMINI.md | teststyle | 41/100 | 3 days ago | |
| google-gemini/gemini-clipackages/test-utils/GEMINI.md · 106k | GEMINI.md | testarchtesting-strategy | 58/100 | 3 days ago | |
| google-gemini/gemini-clipackages/vscode-ide-companion/GEMINI.md · 106k | GEMINI.md | buildtest | 41/100 | 3 days ago |
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| google-gemini/gemini-cliGEMINI.md · 106k | GEMINI.md | setupbuildtestlint-format+6 | 91/100 | 3 days ago | |
| diegosouzapw/OmniRouteGEMINI.md · 38k | GEMINI.md | testlint-formatarchsecurity+2 | 87/100 | 3 days ago | |
| compozy/gographGEMINI.md · 9 | GEMINI.md | setuptestlint-formatarch+4 | 86/100 | 3 days ago | |
| nordeim/misc1/GEMINI.md · 0 | GEMINI.md | setupbuildtestlint-format+3 | 81/100 | 3 days ago | |
| firebase/flutterfireGEMINI.md · 9.2k | GEMINI.md | lint-formatstylearchdo-not+1 | 80/100 | 3 days ago | |
| nodejs/nodedeps/v8/GEMINI.md · 119k | GEMINI.md | buildteststylearch+4 | 77/100 | 3 days ago | |
| abpframework/abpnpm/ng-packs/packages/schematics/src/commands/ai-config/files/gemini/.gemini/GEMINI.md · 14k | GEMINI.md | testlint-formatstylearch+8 | 76/100 | 2 days ago | |
| zyx77550/spardaGEMINI.md · 4 | GEMINI.md | testlint-formatgitapi+2 | 75/100 | 3 days ago |
