Skip to content

docs(capabilities/github): suggest shallow clones to optimize git speed#112

Open
dembrane-sam-bot wants to merge 2 commits into
mainfrom
sam/update-shallow-clones
Open

docs(capabilities/github): suggest shallow clones to optimize git speed#112
dembrane-sam-bot wants to merge 2 commits into
mainfrom
sam/update-shallow-clones

Conversation

@dembrane-sam-bot

@dembrane-sam-bot dembrane-sam-bot commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

What is this change?

Adds explicit guidance to src/capabilities/github.md suggesting the use of shallow clones (git clone --depth 1) when cloning large external repositories (like echo) under /tmp/ when full history is not required. It adds a load-bearing caveat that a full clone is still appropriate when history is required (e.g. for git log or blame queries required by our "Curiosity over guessing" rule).

What did Sam notice that led to this?

In yesterday's tool-calls audit log, a full git clone of the large Dembrane/echo repository in session 808498e5b625 took 265 seconds. This is extremely slow and close to our tool timeout limit of 300 seconds. While this was a single slow-but-successful occurrence (not yet a repeating multi-session pattern), suggesting a shallow clone as a scoped optimization for single-file tasks helps prevent potential timeouts.

Tier?

Tier 1 (capability modification).

Confidence?

100% confident this is a safe, simple, and honest doc improvement that will optimize git operations while preserving our core curiosity rules.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant