estimate_codebase
Clone a Git repository and analyze its structure to get estimated token count, file count, and project layout. Useful for LLM context planning.
Instructions
Get statistics about a Git repository without downloading all content.
This tool clones a git repository from the provided URL, analyzes its structure,
and returns statistical information useful for LLM processing, including:
- Estimated token count
- Total file count
- Repository structure
Args:
repo_url (str): The URL of the Git repository to clone
use_token (bool, optional): Whether to use the GitLab token for authentication.
Defaults to True.
Returns:
str: A formatted text representation of the repository statistics
Raises:
GitCommandError: If there is an error during the git clone operation
Exception: For any other errors that occur during processing
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_url | Yes | ||
| use_token | No |