gather_context
Get a comprehensive overview of any codebase—structure, frameworks, entry points, file types, and more—in a single call. Ideal for quickly orienting yourself in an unfamiliar project.
Instructions
One-shot codebase orientation: structure, file types, project type, frameworks, entry points, test layout, config files. Prefer this over Glob-based recon at session start — Reflex returns a single consolidated overview instead of multiple glob calls. By default (no parameters) all context types are gathered; pass individual flags (structure, framework, entry_points, etc.) for a focused slice. Use depth to control tree depth (default 2) and path to focus on a subdirectory.
Use this for: getting oriented in an unfamiliar codebase; locating entry points; confirming which frameworks/languages are in use. For finding where a specific symbol/pattern lives, use search_code or find_references instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Focus on specific directory path | |
| depth | No | Tree depth for structure (default: 2) | |
| framework | No | Detect frameworks and conventions | |
| structure | No | Show directory structure | |
| file_types | No | Show file type distribution | |
| test_layout | No | Show test organization pattern | |
| config_files | No | List important configuration files | |
| entry_points | No | Show entry point files | |
| project_type | No | Detect project type (CLI/library/webapp/monorepo) |