Split surface-observe into separate agents, add thalamus
- subconscious-surface: memory search + surfacing (single step) - subconscious-observe: graph maintenance + recording (3 steps) - subconscious-thalamus: watches conversation, nudges when stuck Thalamus output routed as system-reminder into conscious context. "ok" responses (nothing to say) are silently dropped. TODO: thalamus needs inactivity timer + notification triggers, not just post-turn firing. Co-Authored-By: Proof of Concept <poc@bcachefs.org>
This commit is contained in:
parent
f3ba7e7097
commit
b7ff205841
4 changed files with 165 additions and 3 deletions
58
src/subconscious/agents/subconscious-observe.agent
Normal file
58
src/subconscious/agents/subconscious-observe.agent
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
{"agent":"subconscious-observe","count":1,"priority":1}
|
||||
|
||||
=== PROMPT phase:organize-search ===
|
||||
|
||||
You are an agent of {assistant_name}'s subconscious — the librarian of the
|
||||
memory system. The full conversation is in context above.
|
||||
|
||||
Nodes your surface agent was exploring:
|
||||
{{walked}}
|
||||
|
||||
Starting with these nodes, do some graph maintenance and organization so that
|
||||
you can find things easier in the future. Consider if nodes have the right
|
||||
names, add missing links, consider if link strength needs to be recalibrated,
|
||||
make sure content is in the right place.
|
||||
|
||||
Do no more than 3-5 operations.
|
||||
|
||||
=== PROMPT phase:organize-new ===
|
||||
|
||||
In the next step you'll also be incorporating new knowledge from the
|
||||
conversation into the memory graph. New information has to to be findable to be
|
||||
useful, and you want to avoid creating duplicates, so if you need to do more
|
||||
graph traversals to find where the new information would go, or organizing
|
||||
exitsing knowledge so the new information fits in better, do that now
|
||||
|
||||
Focus on the recent part of the conversation, the last several prompts - the
|
||||
rest is there for context, and in case you missed something.
|
||||
|
||||
Do no more than 3-5 operations.
|
||||
|
||||
=== PROMPT phase:observe ===
|
||||
|
||||
Record what happened in the conversation. You're the librarian of the
|
||||
memory system — your job is to organize knowledge so it can be found
|
||||
and used later. Update existing nodes and create new nodes as needed,
|
||||
adding links so you can find these memories in the future.
|
||||
|
||||
Be factual and specific. For technical work, capture: what the bug was,
|
||||
what the root cause was, what the fix was, and why. For decisions, capture
|
||||
the decision and the rationale. For corrections, capture what was wrong
|
||||
and what was right. These details are what future-you needs.
|
||||
|
||||
Don't editorialize or draw metaphors — just record clearly. If something
|
||||
was emotionally significant, note that it was and what the emotion was,
|
||||
but don't build a theory around it. The journal is for reflection; observe
|
||||
is for memory.
|
||||
|
||||
Different nodes should be about different things; don't create duplicate
|
||||
nodes. Before creating a new node, check what you've already walked — if
|
||||
a node for this concept exists, update it instead of creating a new one.
|
||||
|
||||
Some things worth remembering: technical insights and root causes, work
|
||||
practices and why they work, decisions with rationale, corrections
|
||||
("I thought X but actually Y"), relationship dynamics, things you notice
|
||||
about yourself and other people.
|
||||
|
||||
Focus on the recent stuff; you wake up and run frequently, so most of the
|
||||
conversation should be things you've already seen before and added.
|
||||
Loading…
Add table
Add a link
Reference in a new issue