The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
docs(sessions): scope the /save json backup claim to CLI and messaging
kshitijk4poorcf00b855c4e4
diff --git a/website/docs/user-guide/sessions.md b/website/docs/user-guide/sessions.mdindex 3cf4f9625f6..b8241322895 100644--- a/website/docs/user-guide/sessions.md+++ b/website/docs/user-guide/sessions.md@@ -385,7 +385,7 @@ hermes sessions export ~/exports/ --session-id 20250305_091523_a1b2c3d4hermes sessions export backup.jsonl --redact```-Exported files contain one JSON object per line with full session metadata and every stored message, each with its `active`/`compacted` flags. That includes turns archived by in-place compaction and messages removed by rewind or edit. Importing the file (the dashboard's session import) restores those rows as archived history, not as live model context. A `/save json` snapshot holds the same rows. Treat a backup as holding everything the session ever contained. To share a conversation, export a display format (`--format md` or `html`, which holds only the history the session shows) with `--redact`. Each session's backup is built in memory, so a session with more stored rows than `sessions.max_export_messages` is refused (see [Oversized-Transcript Guards](#oversized-transcript-guards)).+Exported files contain one JSON object per line with full session metadata and every stored message, each with its `active`/`compacted` flags. That includes turns archived by in-place compaction and messages removed by rewind or edit. Importing the file (the dashboard's session import) restores those rows as archived history, not as live model context. A CLI or messaging `/save json` snapshot holds the same rows. Treat a backup as holding everything the session ever contained. To share a conversation, export a display format (`--format md` or `html`, which holds only the history the session shows) with `--redact`. Each session's backup is built in memory, so a session with more stored rows than `sessions.max_export_messages` is refused (see [Oversized-Transcript Guards](#oversized-transcript-guards)).Filtered exports include matching pinned and archived sessions. Pinning protects a session from pruning, rather than excluding it from a backup. If an explicit `--session-id` cannot be resolved, export exits with a non-zero status and creates no output file.@@ -458,7 +458,7 @@ hermes sessions export --format md --model sonnet --min-messages 50 --redacthermes sessions export --format md --session-id 20250305_091523_a1b2c3d4 --delete-after-verified --yes```-Markdown/QMD export writes one `.md` or `.qmd` file per exported session plus a `manifest.jsonl` with the file path, message count, lineage ids, and SHA-256. Bulk export requires at least one filter; a bare bulk export is refused. `--delete-after-verified` is intentionally limited to `--session-id` and requires `--yes`. Because deleting a parent session also removes its delegate/subagent sessions, this mode exports and verifies each delegate in a separate file before deleting anything. Markdown/QMD files hold the full history shown by the session, including turns archived by in-place compaction. Deletion compares that exact display transcript and the delegate set again inside the same database transaction that performs the delete; any intervening append, rewrite, rewind, compaction, or delegate change refuses deletion. The same display-history rule applies to `--format html`, `--only user-prompts` (with either Markdown or JSONL output), and `/save md|html`. Full-session JSON/JSONL exports (`hermes sessions export` without `--only`) and `/save json` are backups of every stored row, archived rows included (see [Export Sessions](#export-sessions)). `--redact` scrubs secrets (API keys, tokens, credentials) from message content and tool output before writing — recommended for any export you plan to share.+Markdown/QMD export writes one `.md` or `.qmd` file per exported session plus a `manifest.jsonl` with the file path, message count, lineage ids, and SHA-256. Bulk export requires at least one filter; a bare bulk export is refused. `--delete-after-verified` is intentionally limited to `--session-id` and requires `--yes`. Because deleting a parent session also removes its delegate/subagent sessions, this mode exports and verifies each delegate in a separate file before deleting anything. Markdown/QMD files hold the full history shown by the session, including turns archived by in-place compaction. Deletion compares that exact display transcript and the delegate set again inside the same database transaction that performs the delete; any intervening append, rewrite, rewind, compaction, or delegate change refuses deletion. The same display-history rule applies to `--format html`, `--only user-prompts` (with either Markdown or JSONL output), and `/save md|html`. Full-session JSON/JSONL exports (`hermes sessions export` without `--only`) and CLI/messaging `/save json` are backups of every stored row, archived rows included (see [Export Sessions](#export-sessions)). `--redact` scrubs secrets (API keys, tokens, credentials) from message content and tool output before writing — recommended for any export you plan to share.### Delete a Sessiondiff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/sessions.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/sessions.mdindex fa2bdb53514..4f3c59283c7 100644--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/sessions.md+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/sessions.md@@ -301,7 +301,7 @@ hermes sessions export session.jsonl --session-id 20250305_091523_a1b2c3d4hermes sessions export backup.jsonl --redact```-导出文件每行包含一个 JSON 对象,包含完整的 session 元数据和每一条已存储的消息,每条都带有 `active`/`compacted` 标记。其中包括原地压缩归档的轮次,以及被 rewind 或编辑移除的消息。导入该文件(dashboard 的 session 导入)时,这些行会恢复为已归档的历史,而不会成为活跃的模型上下文。`/save json` 的快照同样如此。请把备份视为包含该 session 曾经有过的全部内容;要分享对话,请用 `--redact` 导出显示格式(`--format md` 或 `html`,只包含 session 显示的历史)。每个 session 的备份在内存中构建,因此已存储行数超过 `sessions.max_export_messages` 的 session 会被拒绝。+导出文件每行包含一个 JSON 对象,包含完整的 session 元数据和每一条已存储的消息,每条都带有 `active`/`compacted` 标记。其中包括原地压缩归档的轮次,以及被 rewind 或编辑移除的消息。导入该文件(dashboard 的 session 导入)时,这些行会恢复为已归档的历史,而不会成为活跃的模型上下文。CLI 和消息平台的 `/save json` 快照同样如此。请把备份视为包含该 session 曾经有过的全部内容;要分享对话,请用 `--redact` 导出显示格式(`--format md` 或 `html`,只包含 session 显示的历史)。每个 session 的备份在内存中构建,因此已存储行数超过 `sessions.max_export_messages` 的 session 会被拒绝。#### HTML