Documentation
¶
Overview ¶
Package git provides lightweight git metadata for the agent's system prompt.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Context ¶
Context returns a human-readable summary of the git state for cwd. Returns "" if cwd is not in a git repo or git is not available. Never returns an error — failures are silent.
Uncommitted porcelain is intentionally omitted: it changes as the agent works, and GPT-5.6 implicit prompt cache misses the entire prefix when any earlier instructions byte changes. Branch and last commit are enough to orient the model; it can run git status for the dirty tree.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.