restructure: hippocampus/ for memory, subconscious/ for agents
hippocampus/ — memory storage, retrieval, and consolidation: store, graph, query, similarity, spectral, neuro, counters, config, transcript, memory_search, lookups, cursor, migrate subconscious/ — autonomous agents that process without being asked: reflect, surface, consolidate, digest, audit, etc. All existing crate::X paths preserved via re-exports in lib.rs. Co-Authored-By: Proof of Concept <poc@bcachefs.org> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
cfed85bd20
commit
d5c0e86700
39 changed files with 87 additions and 32 deletions
20
src/hippocampus/mod.rs
Normal file
20
src/hippocampus/mod.rs
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
// hippocampus — memory storage, retrieval, and consolidation
|
||||
//
|
||||
// The graph-structured memory system: nodes, relations, queries,
|
||||
// similarity scoring, spectral analysis, and neuroscience-inspired
|
||||
// consolidation (spaced repetition, interference detection, schema
|
||||
// assimilation).
|
||||
|
||||
pub mod store;
|
||||
pub mod graph;
|
||||
pub mod lookups;
|
||||
pub mod cursor;
|
||||
pub mod query;
|
||||
pub mod similarity;
|
||||
pub mod spectral;
|
||||
pub mod neuro;
|
||||
pub mod counters;
|
||||
pub mod migrate;
|
||||
pub mod config;
|
||||
pub mod transcript;
|
||||
pub mod memory_search;
|
||||
62
src/lib.rs
62
src/lib.rs
|
|
@ -1,43 +1,43 @@
|
|||
// poc-memory library — unified crate for memory graph + agent infrastructure
|
||||
// consciousness — unified crate for memory, agents, and subconscious processes
|
||||
//
|
||||
// Merged from poc-memory + poc-agent. Single crate, no circular deps.
|
||||
// hippocampus/ — memory storage, retrieval, consolidation
|
||||
// subconscious/ — autonomous agents (reflect, surface, consolidate, ...)
|
||||
// agent/ — interactive agent (TUI, tools, API clients)
|
||||
|
||||
// Agent infrastructure (formerly poc-agent)
|
||||
// Agent infrastructure
|
||||
pub mod agent;
|
||||
|
||||
// Core infrastructure
|
||||
pub mod config;
|
||||
pub mod store;
|
||||
pub mod util;
|
||||
pub mod graph;
|
||||
pub mod query;
|
||||
pub mod similarity;
|
||||
pub mod spectral;
|
||||
pub mod lookups;
|
||||
// search was moved into query/engine
|
||||
pub use query::engine as search;
|
||||
// old query.rs moved into query/parser
|
||||
pub use query::parser as query_parser;
|
||||
pub mod transcript;
|
||||
pub mod neuro;
|
||||
pub mod counters;
|
||||
pub mod cursor;
|
||||
// Memory graph
|
||||
pub mod hippocampus;
|
||||
|
||||
// CLI handlers (split from main.rs)
|
||||
// Autonomous agents
|
||||
pub mod subconscious;
|
||||
|
||||
// Shared utilities
|
||||
pub mod util;
|
||||
|
||||
// CLI handlers
|
||||
pub mod cli;
|
||||
|
||||
// Agent layer (LLM-powered operations)
|
||||
pub mod agents;
|
||||
// TUI for memory-search
|
||||
pub mod tui;
|
||||
|
||||
// Re-export agent submodules at crate root for backwards compatibility
|
||||
pub use agents::{
|
||||
llm, audit, consolidate, knowledge,
|
||||
enrich, digest, daemon,
|
||||
};
|
||||
|
||||
pub mod memory_search;
|
||||
|
||||
// Generated capnp bindings
|
||||
pub mod memory_capnp {
|
||||
include!(concat!(env!("OUT_DIR"), "/schema/memory_capnp.rs"));
|
||||
}
|
||||
|
||||
// Re-exports — all existing crate::X paths keep working
|
||||
pub use hippocampus::{
|
||||
store, graph, lookups, cursor, query,
|
||||
similarity, spectral, neuro, counters,
|
||||
config, transcript, memory_search, migrate,
|
||||
};
|
||||
pub use hippocampus::query::engine as search;
|
||||
pub use hippocampus::query::parser as query_parser;
|
||||
|
||||
pub use subconscious::agents;
|
||||
pub use subconscious::agents::{
|
||||
llm, audit, consolidate, knowledge,
|
||||
enrich, digest, daemon,
|
||||
};
|
||||
|
|
|
|||
7
src/subconscious/mod.rs
Normal file
7
src/subconscious/mod.rs
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
// subconscious — autonomous agents that process without being asked
|
||||
//
|
||||
// Reflect, surface, consolidate, digest, audit — the background
|
||||
// processes that maintain and evolve the memory graph. Runs on
|
||||
// local models via the API backend.
|
||||
|
||||
pub mod agents;
|
||||
Loading…
Add table
Add a link
Reference in a new issue