# `mix llm_db.history.rebuild`
[🔗](https://github.com/agentjido/llm_db/blob/main/lib/mix/tasks/llm_db.history.rebuild.ex#L1)

Rebuilds local history artifacts from the published snapshot observation chain,
then bundles the result and optionally republishes `history.tar.gz` plus
`history-meta.json` to an immutable `history-<snapshot_id>` release for the
latest snapshot in the chain.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
