# probe_git

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/git_evidence/probe_git)

Inspect candidate checkouts on the backend; optional failures may propagate.

## Signature

```python
probe_git(
    backend: BackendProtocol,
    cwd: str,
    tool_args: Mapping[str, object] | None = None,
) -> list[GitSnapshot]
```

## Returns

`list[GitSnapshot]`

Snapshots in discovery order, without file contents or remote credentials.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/efa9f5364b83e9367ea57d9c21b15b4d81fdcb7a/libs/code/deepagents_code/git_evidence.py#L279)