pack_repo
Fetch a GitHub repository and return it as one agent-ready context blob: text files concatenated with clear "==== path ====" headers, binaries/lockfiles/build dirs stripped, with a token estimate. Use include/exclude globs to focus, and max_tokens to fit a budget.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Optional branch, tag or commit SHA (defaults to the default branch). | |
| repo | Yes | A GitHub repo as "owner/repo" or a github.com URL. | |
| exclude | No | Optional glob patterns (support **, *, ?). | |
| include | No | Optional glob patterns (support **, *, ?). | |
| max_tokens | No | Stop adding files once the estimate exceeds this many tokens. |