PureCode AI
  • PureCode AI Extension
  • Getting Started
    • Getting Started
  • Features
    • Chat
      • @Features
        • @Docs
        • @Files
        • @Folder
        • @Code
        • @Git
        • @Terminal
        • @UI
    • Dual Operation Modes
      • Normal Mode [ Chat ]
      • Agent Mode
      • Switching Between Modes
    • Context Awareness
      • Normal Indexing
      • Advance Indexing
    • Human-like Code Understanding with @codebase
    • Interactive Planning Mode
    • Adaptive Learning Preferences
    • Global and Project Custom Instructions
      • Global Instructions
      • Project Chat Instructions:
    • Docs Indexes and UI Docs Indexes
      • Docs Indexes
      • UI Docs Indexes
    • "Reject" and "Accept"
    • Image-to-Code
    • Video Tutorial's
    • Prompting Techniques
    • Chat Vs Codebase Chat
    • Solving Errors
  • Frequently Asked Questions
  • Changelog
Powered by GitBook
On this page
  1. Features

Human-like Code Understanding with @codebase

PreviousAdvance IndexingNextInteractive Planning Mode

Last updated 2 months ago

PureCodeAI leverages its @codebase feature to develop a sophisticated, human-like understanding of your entire codebase. It models the relationships between different components, functions, and business logic in the same way a senior developer would. This enables the AI to provide more accurate, relevant, and context-aware suggestions.

Key Features of @codebase Understanding:

  1. Advanced Codebase Indexing:

  • Enabling this feature by typing @Codebase in your chat allows PureCodeAI to analyze and index your entire project.

  • This indexing process builds an internal, comprehensive summary of your codebase, helping the AI understand not just individual lines of code, but the larger project structure.

  1. Broad Codebase Summary:

  • Summary of Entire Codebase: The AI creates a high-level summary of your project’s overall architecture, key features, and business logic. This helps it understand how different components of the project work together and the purpose of each.

  • Key Features and Approaches: The AI identifies and stores important features, design approaches, and methodologies used in your codebase, similar to how a senior developer would quickly grasp the core ideas behind the system.

  1. File-Level Summaries:

  • Summarized Understanding of Each File: In addition to understanding the entire project, PureCodeAI creates summaries for individual files. This improves the AI’s natural language understanding and enables it to provide context-aware suggestions based on specific files or functions.

  • Efficient Retrieval: When you make a query, PureCodeAI will use these file summaries to pull the most relevant part of the code, along with the broader context from the entire codebase.

  1. Context-Aware Suggestions:

  • When you ask the AI for help, it leverages its understanding of the relationships between components and files. It doesn't just suggest random code snippets but pulls from the most relevant part of the code, ensuring that its suggestions are aligned with the overall architecture and business logic of the project.

How This Helps You:

  • Improved Accuracy: Since the AI understands the full context of your project, its suggestions are more relevant and accurate.

  • Faster Development: With a deep understanding of your codebase, PureCode AI helps you resolve issues more efficiently and avoid writing repetitive or unnecessary code.

  • Clearer Insights: The AI’s ability to grasp the relationships between components means it can provide more insightful and helpful advice, whether you're debugging or adding new features