Expand description
Semantic, hash-chained memory for long-running agents.
thoughtchain provides an append-only, adapter-backed memory log for
durable, queryable cognitive state. Thoughts are timestamped, hash-chained,
typed, optionally connected to prior thoughts, and exportable as prompts or
Markdown memory snapshots. The current default backend is JSONL, but the
chain model is intentionally independent from any single storage format.
Structs§
- Binary
Storage Adapter - Append-only binary storage adapter for ThoughtChain.
- Jsonl
Storage Adapter - Append-only JSONL storage adapter for ThoughtChain.
- Thought
- A single durable thought record.
- Thought
Chain - Append-only, hash-chained semantic memory store.
- Thought
Input - Builder-like input struct used to append rich thoughts.
- Thought
Query - Retrieval filter for semantic memory queries.
- Thought
Relation - Typed edge in the thought graph.
Enums§
- Storage
Adapter Kind - Supported durable storage formats for ThoughtChain.
- Thought
Relation Kind - Why a thought points to another thought.
- Thought
Role - Operational role of a thought inside the system.
- Thought
Type - Semantic category describing what changed in the agent’s internal model.
Traits§
- Storage
Adapter - Persistence interface for ThoughtChain storage backends.
Functions§
- chain_
filename - Stable filename derived from a chain key rather than mutable agent profile data.
- chain_
key_ from_ storage_ filename - Recover the stable chain key portion from a ThoughtChain storage filename.
- chain_
storage_ filename - Stable filename derived from a chain key and storage adapter kind.