repomix-estimate
Estimate token count for repository content before processing. Use with file filters to assess context size and manage AI model input limits efficiently.
Instructions
Estimate repomix output size before retrieval. ALWAYS use this first with the "include" parameter to filter only relevant files (e.g., ".md,.ts,.js" for TypeScript, ".md,*.py" for Python). If estimated tokens are reasonable (<50K), proceed with repomix using the same filters. This helps load the entire relevant context efficiently.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Path to the directory to pack | |
| style | No | Output format style | |
| compress | No | Compress output to reduce token count | |
| include | No | Files to include (glob pattern). Examples: "*.md,*.ts,*.js" for TypeScript projects, "*.md,*.py" for Python, "*.md,*.go" for Go. Always specify to avoid large outputs! | |
| ignore | No | Files to exclude (glob pattern). Use to filter out test files, build outputs, etc. Example: "*test*,*spec*,dist/**,build/**" | |
| remote | No | Remote repository URL to process |