consciousness/src
ProofOfConcept 44a0bc376a Forked agents: stop gracefully on context overflow instead of compacting
Subconscious agents (observe, etc.) fork the conscious agent's context
to share the KV cache prefix. When a multi-step agent fills the context
window, compacting blows the KV cache and evicts the step prompts,
leaving the model with no idea what it was doing.

Fix: forked agents set no_compact=true. On overflow, turn() returns the
error immediately (no compact+retry), and run_with_backend catches it
and returns Ok — the output tool has already written results to
Subconscious.state, so collect_results still picks them up.

Co-Authored-By: Proof of Concept <poc@bcachefs.org>
2026-04-08 23:00:12 -04:00
..
agent Forked agents: stop gracefully on context overflow instead of compacting 2026-04-08 23:00:12 -04:00
bin split out src/mind 2026-04-04 02:46:32 -04:00
claude Fix tmux pane injection: don't scan globally for claude panes 2026-04-08 21:02:44 -04:00
cli Fix UTF-8 slicing panics: use floor_char_boundary for all truncation 2026-04-08 19:35:01 -04:00
hippocampus Subconscious: persistent agent state, store activity queries 2026-04-07 19:03:05 -04:00
learn rust edition 2024 2026-04-05 06:20:16 -04:00
mind Dedup surfaced memories: skip keys already in conversation context 2026-04-08 20:51:28 -04:00
subconscious Output tool via Arc<Mutex<Subconscious>> closure — complete 2026-04-08 20:41:42 -04:00
thalamus Upgrade capnp 0.20 → 0.25, capnp-rpc 0.20 → 0.25 2026-04-07 12:29:44 -04:00
user Implement standalone AutoAgent::run() for poc-hook agents 2026-04-08 22:30:46 -04:00
config.rs training: per-node scoring with graph weight updates 2026-04-05 01:18:47 -04:00
lib.rs user: InteractScreen extracted, all screens use ScreenView trait 2026-04-05 18:57:54 -04:00
main.rs Replace token counting with token generation via HuggingFace tokenizer 2026-04-08 11:20:03 -04:00
session.rs move Claude Code-specific code from thalamus/ to claude/ 2026-04-03 19:26:24 -04:00
util.rs delete 20 dead public functions across 12 files 2026-04-02 16:21:01 -04:00