gemini_analyze_codebase
Analyze entire codebases using a 1M-token context to uncover architecture, patterns, security risks, performance bottlenecks, and dependency issues. Accepts directories, file paths, or file contents.
Instructions
Analyze entire codebase using 1M token context. Supports directory path, file paths, or file contents. Provides architecture overview, identifies patterns, security issues, performance bottlenecks, and dependency problems.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | List of files with their content (for backward compatibility). Use directory or filePaths for easier usage. | |
| focus | No | Optional: Analysis focus area | |
| model | No | Gemini model to use (optional, default: gemini-3.1-pro-preview) | |
| exclude | No | Glob patterns to exclude files (e.g., ["node_modules/**", "**/*.test.ts"]). Only used with directory parameter. | |
| include | No | Glob patterns to include files (e.g., ["**/*.ts", "**/*.tsx"]). Only used with directory parameter. | |
| deepThink | No | Enable Deep Think mode for complex analysis (default: false) | |
| directory | No | Directory path to analyze (e.g., "./src" or "C:/Project/src"). The tool will automatically read files from this directory. | |
| filePaths | No | List of file paths to analyze (e.g., ["./src/index.ts", "./src/utils/helper.ts"]). The tool will automatically read these files. | |
| outputFormat | No | Output format (default: markdown) | markdown |
| thinkingLevel | No | Thinking depth: low for speed, high for complex analysis (default: high) | high |