MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / GitContextSnapshot

Class GitContextSnapshot

src/context_system/git_context.py:29–40  ·  view source on GitHub ↗

Structured git context for prompt injection.

Source from the content-addressed store, hash-verified

27
28@dataclass
29class GitContextSnapshot:
30 """Structured git context for prompt injection."""
31
32 available: bool
33 repo_root: str | None = None
34 branch: str | None = None
35 default_branch: str | None = None
36 user_name: str | None = None
37 status: str | None = None
38 status_truncated: bool = False
39 recent_commits: str | None = None
40 error: str | None = None
41
42
43# ---------------------------------------------------------------------------

Callers 5

test_unavailableMethod · 0.90
test_full_contextMethod · 0.90
test_clean_treeMethod · 0.90
test_truncated_statusMethod · 0.90
collect_git_contextFunction · 0.85

Calls

no outgoing calls

Tested by 4

test_unavailableMethod · 0.72
test_full_contextMethod · 0.72
test_clean_treeMethod · 0.72
test_truncated_statusMethod · 0.72