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
28
Cargo.lock
generated
28
Cargo.lock
generated
|
|
@ -467,6 +467,7 @@ dependencies = [
|
||||||
"iana-time-zone",
|
"iana-time-zone",
|
||||||
"js-sys",
|
"js-sys",
|
||||||
"num-traits",
|
"num-traits",
|
||||||
|
"serde",
|
||||||
"wasm-bindgen",
|
"wasm-bindgen",
|
||||||
"windows-link",
|
"windows-link",
|
||||||
]
|
]
|
||||||
|
|
@ -2758,6 +2759,33 @@ dependencies = [
|
||||||
"time",
|
"time",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "poc-agent"
|
||||||
|
version = "0.4.0"
|
||||||
|
dependencies = [
|
||||||
|
"anyhow",
|
||||||
|
"base64 0.22.1",
|
||||||
|
"chrono",
|
||||||
|
"clap",
|
||||||
|
"crossterm",
|
||||||
|
"dirs",
|
||||||
|
"figment",
|
||||||
|
"futures",
|
||||||
|
"glob",
|
||||||
|
"json5",
|
||||||
|
"libc",
|
||||||
|
"ratatui",
|
||||||
|
"reqwest",
|
||||||
|
"serde",
|
||||||
|
"serde_json",
|
||||||
|
"tiktoken-rs",
|
||||||
|
"tokio",
|
||||||
|
"tui-markdown",
|
||||||
|
"tui-textarea-2",
|
||||||
|
"unicode-width",
|
||||||
|
"walkdir",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "poc-daemon"
|
name = "poc-daemon"
|
||||||
version = "0.4.0"
|
version = "0.4.0"
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
[workspace]
|
[workspace]
|
||||||
members = ["poc-daemon"]
|
members = ["thalamus", "agent"]
|
||||||
resolver = "2"
|
resolver = "2"
|
||||||
|
|
||||||
[workspace.package]
|
[workspace.package]
|
||||||
|
|
|
||||||
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;
|
pub mod agent;
|
||||||
|
|
||||||
// Core infrastructure
|
// Memory graph
|
||||||
pub mod config;
|
pub mod hippocampus;
|
||||||
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;
|
|
||||||
|
|
||||||
// CLI handlers (split from main.rs)
|
// Autonomous agents
|
||||||
|
pub mod subconscious;
|
||||||
|
|
||||||
|
// Shared utilities
|
||||||
|
pub mod util;
|
||||||
|
|
||||||
|
// CLI handlers
|
||||||
pub mod cli;
|
pub mod cli;
|
||||||
|
|
||||||
// Agent layer (LLM-powered operations)
|
// TUI for memory-search
|
||||||
pub mod agents;
|
|
||||||
pub mod tui;
|
pub mod tui;
|
||||||
|
|
||||||
// Re-export agent submodules at crate root for backwards compatibility
|
// Generated capnp bindings
|
||||||
pub use agents::{
|
|
||||||
llm, audit, consolidate, knowledge,
|
|
||||||
enrich, digest, daemon,
|
|
||||||
};
|
|
||||||
|
|
||||||
pub mod memory_search;
|
|
||||||
|
|
||||||
pub mod memory_capnp {
|
pub mod memory_capnp {
|
||||||
include!(concat!(env!("OUT_DIR"), "/schema/memory_capnp.rs"));
|
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