commit
Snapshot the memory graph to a portable file for migration, restore drills, or offline archive. Supports validated .abhi, raw JSON backup, or context bundle formats.
Instructions
Snapshot the current memory graph to a portable file (waggle commit). Exports a JSON backup for migration, restore drills, or offline archive. Use commit_format='abhi' (default) for a full .abhi export, or 'backup' for a raw JSON backup. Returns the output path, schema version, and object counts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Bundle mode: prime exports scoped memory, query exports query-focused context. | prime |
| force | No | Override the secret-scan refusal if transcript records contain likely secrets. Use only after deliberate review. | |
| query | No | Optional query used when commit_format='bundle' and mode='query'. | |
| format | No | Context bundle output format. | both |
| project | No | Optional project or workspace name used to partition memory. | |
| agent_id | No | Optional agent or client identifier used to partition memory. | |
| audience | No | Target audience for bundle formatting. | llm |
| max_depth | No | Relationship traversal depth for context bundle retrieval. | |
| max_nodes | No | Maximum number of nodes to include in a context bundle. | |
| session_id | No | Optional conversation or run identifier used to partition memory. | |
| output_path | No | Optional destination file path. If omitted, Waggle chooses an export path. | |
| commit_format | No | 'abhi' (default) exports a validated .abhi memory file; 'backup' exports a raw JSON backup; 'bundle' exports a portable Markdown/JSON context bundle. | abhi |
| include_edges | No | Whether context bundles should include graph edges. | |
| retrieval_mode | No | Retrieval strategy for query-mode context bundles. | hybrid |
| include_timestamps | No | Whether context bundles should include timestamps. | |
| include_source_prompt | No | Whether context bundles should include stored source prompts. | |
| include_low_confidence_edges | No | When true, include RELATES_TO edges with edge_confidence < 0.7 that are normally filtered from exports. |