# changed_snapshots

> **Function** in `deepagents_code`

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

Compare successful observations, including newly created checkouts.

## Signature

```python
changed_snapshots(
    before: Sequence[GitSnapshot],
    after: Sequence[GitSnapshot],
) -> list[GitSnapshot]
```

## Returns

`list[GitSnapshot]`

Changed snapshots in discovery order, excluding unchanged preexisting dirt.

---

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