Windows forensic artifactGeminiCLI
Google Gemini CLI chat session logs, prompt history, shell history, checkpoints, and configuration
Look for projects.json, settings.json, trustedFolders.json, installation_id, google_accounts.json, mcp-server-enablement.json
in %UserProfile%\.gemini\tmp, %UserProfile%\.gemini, %UserProfile%\.gemini\commands and 7 more folders.
- 17 paths
- Per-user data
- Version 1.0
- Eric Capuano
Paths on disk
17 paths
Notes
Gemini CLI stores its state under %USERPROFILE%\.gemini\ (override: GEMINI_CLI_HOME). The root, projects.json, tmp\<slug>\.project_root
and history\<slug>\ were confirmed on Windows Server 2025 with Gemini CLI 0.58.0. Chat logs are written as
tmp\<project>\chats\session-<YYYY-MM-DDTHH-MM>-<first 8 of sessionId>.jsonl (first line is session metadata, then one JSON
record per message including tool calls). Older builds wrote a single session-*.json object and named the project folder
by sha256 of its path; both patterns are covered by the recursive tmp\ entry.
Deliberately not collected: oauth_creds.json, mcp-oauth-tokens.json, a2a-oauth-tokens.json and .env (credentials),
cli-browser-profile\ (Chrome profile for the browser agent, large).
References
6 links
- github.com/google-gemini/gemini-cli/blob/main/packages/core/src/config/storage.ts%20-%20All%20path%20definitions%20(getGlobalGeminiDir,%20getProjectTempDir,%20getHistoryDir,%20getSystemConfigDir)(opens in new tab)
- github.com/google-gemini/gemini-cli/blob/main/packages/core/src/utils/paths.ts%20-%20GEMINI_DIR%20and%20GEMINI_CLI_HOME%20override(opens in new tab)
- github.com/google-gemini/gemini-cli/blob/main/packages/core/src/services/chatRecordingService.ts%20-%20chats/session-*.jsonl%20format(opens in new tab)
- github.com/google-gemini/gemini-cli/blob/main/packages/core/src/config/projectRegistry.ts%20-%20projects.json%20slug%20registry%20and%20.project_root%20marker(opens in new tab)
- github.com/google-gemini/gemini-cli/blob/main/docs/cli/session-management.md(opens in new tab)
- github.com/google-gemini/gemini-cli/blob/main/docs/cli/checkpointing.md(opens in new tab)
Related artifacts
Often collected in the same investigation
- ClaudeCodeClaude Code (Anthropic agentic coding CLI) session transcripts, prompt history, configuration, hooks, and IDE integration artifacts
- ClineCline (VS Code AI coding agent) task conversation histories, MCP settings, checkpoints, and global state
- CursorCursor AI editor agent chat history, composer data, local file history, MCP and hook configuration, and logs
- GitHubCopilotGitHub Copilot CLI and Copilot Chat (VS Code) agent sessions, prompt history, configuration, and MCP settings
- OpenAICodexOpenAI Codex CLI (agentic coding CLI) session rollouts, prompt history, state databases, and configuration
- OpenCodeOpenCode (open-source terminal coding agent) session database, logs, snapshots, and configuration
- RooCodeRoo Code (VS Code AI coding agent, archived May 2026) task conversation histories, MCP settings, custom modes, and checkpoints
- VisualStudioCodeVisual Studio Code artifacts