Skip to main content

Crate codewhale_memory

Crate codewhale_memory 

Source
Expand description

CodeWhale memory: a local library, not a second agent loop.

Hosts construct Access from their trusted runtime, never model arguments. Captures are candidates. Only a trusted reviewer can promote them. Search filters scope, status, expiry, and repository freshness before ranking. The synchronous SQLite owner belongs on a blocking worker, not the UI thread.

Re-exports§

pub use auth::Access;
pub use auth::Capability;
pub use context::ByteCounter;
pub use context::ContextBudget;
pub use context::ContextPacket;
pub use context::TokenCounter;
pub use context::compile_context;
pub use store::MemoryBackend;
pub use store::Store;
pub use model::*;

Modules§

auth
context
hooks
Typed, pure hook planning. Hooks return intentions, not shell commands. Permission checks remain with the host. Completion receipts are recorded only AFTER the host finishes an operation; retries use that operation’s own key.
import
Additive migration: source files are never rewritten, renamed, or deleted. Imported notes are candidates. Export imports receive new local memory IDs.
lens
Engine-owned Context Lens and Whalesong event projection.
model
policy
protocol
Local MCP stdio compatibility adapter for protocol revisions 2025-06-18 and 2025-11-25. This is NOT the stateless 2026-07-28 transport. Native hosts may call invoke() and tools() without using the protocol adapter at all.
runtime
Host-side opt-in gate. No store, index, or model tools are opened when off. Construct this from trusted application configuration, not tool arguments.
store
workspace
Host-side freshness collection. A model never supplies a trusted Snapshot.

Enums§

Error

Type Aliases§

Result