# `mix llm_db.history.rebuild`
[🔗](https://github.com/agentjido/llmdb/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 publishes `history.tar.gz` plus
`history-meta.json` to one immutable `history-latest-<generation>` release.

By default, the task installs the latest published checkpoint and processes
only new snapshots. Use `--full` for an audit or repair rebuild.

---

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