consciousness/poc-memory/src/agents
ProofOfConcept 91878d17a0 agents: port knowledge agents to .agent files with visit tracking
The four knowledge agents (observation, extractor, connector,
challenger) were hardcoded in knowledge.rs with their own node
selection logic that bypassed the query pipeline and visit tracking.

Now they're .agent files like the consolidation agents:
- extractor: not-visited:extractor,7d | sort:priority | limit:20
- observation: uses new {{CONVERSATIONS}} placeholder
- connector: type:semantic | not-visited:connector,7d
- challenger: type:semantic | not-visited:challenger,14d

The knowledge loop's run_cycle dispatches through defs::run_agent
instead of calling hardcoded functions, so all agents get visit
tracking automatically. This means the extractor now sees _facts-*
and _mined-transcripts nodes that it was previously blind to.

~200 lines of dead code removed (old runner functions, spectral
clustering for node selection, per-agent LLM dispatch).

New placeholders in defs.rs:
- {{CONVERSATIONS}} — raw transcript fragments for observation agent
- {{TARGETS}} — alias for {{NODES}} (challenger compatibility)

Co-Authored-By: Kent Overstreet <kent.overstreet@linux.dev>
2026-03-10 17:04:44 -04:00
..
audit.rs move LLM-dependent modules into agents/ subdir 2026-03-08 21:27:41 -04:00
consolidate.rs agent visits: track when agents successfully process nodes 2026-03-10 14:30:53 -04:00
daemon.rs daemon: add run-agent RPC for queuing agent jobs 2026-03-10 17:04:30 -04:00
defs.rs agents: port knowledge agents to .agent files with visit tracking 2026-03-10 17:04:44 -04:00
digest.rs move LLM-dependent modules into agents/ subdir 2026-03-08 21:27:41 -04:00
enrich.rs experience-mine: per-segment dedup keys, retry backoff 2026-03-09 02:27:51 -04:00
fact_mine.rs extract shared transcript parser and similarity matching helpers 2026-03-08 21:42:53 -04:00
knowledge.rs agents: port knowledge agents to .agent files with visit tracking 2026-03-10 17:04:44 -04:00
llm.rs split agent: parallel execution, agent-driven edges, no MCP overhead 2026-03-10 03:21:33 -04:00
mod.rs agents: self-contained agent files with embedded prompts 2026-03-10 15:29:55 -04:00
prompts.rs agents: remove hardcoded dispatch, clean up pub wrappers 2026-03-10 15:53:53 -04:00
transcript.rs extract shared transcript parser and similarity matching helpers 2026-03-08 21:42:53 -04:00