Skip to main content
Discover how the codebase feature transforms your repository into a searchable, context-aware knowledge base. By querying your entire project structure, you can quickly locate configuration blocks, data-processing routines, and CLI commands—boosting developer productivity and easing onboarding.

Complete Application Example

Below is a sample Flask application (app.py) that we’ll use to demonstrate codebase queries:
Be sure to replace app.config['SECRET_KEY'] with a secure, random value before deploying to production.

Querying the Codebase

Leverage natural-language queries to pinpoint exactly what you need:

1. Finding the Database Connection

Ask: “Show me all the code used to connect to the database.”
Configuration line:
Teardown registration:
Ask: “Which parts of the code deal with CSV files?”

3. How the Database Is Initialized

Ask: “How does our application initialize a database?”
And the CLI command:

Advanced Codebase Queries

Use @codebase filters to refine searches by file type or pattern:

Why Use This Feature?

  • Rapidly locate configuration and connection logic
  • Explore data-processing functions (e.g., CSV import)
  • Inspect CLI commands and initialization routines
  • Simplify refactoring by searching specific patterns
Combine multiple filters and search terms to focus on specific modules or code patterns across your project.
Whether you’re migrating from SQLite to PostgreSQL, integrating an ORM like SQLAlchemy, or diving into an unfamiliar codebase, the codebase feature provides instant, context-aware insights into your entire repository.

Watch Video