Attributes
classes
codeowners
current_commit
default_branch
directories
exports
external_modules
functions
github
global_vars
imports
interfaces
language
name
repo_path
symbols
types
Methods
ai
Generates a response from the AI based on the provided prompt, target, and context.checkout
Checks out a git branch or commit and syncs the codebase graph to the new state.commit
Commits all staged changes to the codebase graph and synchronizes the graph with the filesystem if specified.create_directory
Creates a directory at the specified path.create_file
Creates a new file in the codebase with specified content.create_pr
Creates a pull request from the current branch to the repository’s default branch.create_pr_comment
Create a comment on a pull requestcreate_pr_review_comment
Create a review comment on a pull request.files
A list property that returns all files in the codebase.find_by_span
Finds editable objects that overlap with the given source code span.from_files
Creates a Codebase instance from multiple files.from_repo
Fetches a codebase from GitHub and returns a Codebase instance.from_string
Creates a Codebase instance from a string of code.get_class
Returns a class that matches the given name.get_directory
Returns Directory bydir_path, or full path to the directory from codebase root.