The wiki memory
An agent needs memory across tasks. Covey keeps it as an LLM-maintained wiki of linked Markdown pages with a pgvector index.
Wiki instead of a snippet store
What makes an agent competent are the relationships between entities (customer → ticket → solution, customer → colleague), not mere text similarity. Instead of loose free-text snippets, the agent maintains linked pages — one per entity — with [[wikilinks]]. The links form the graph.
Three operations
- Ingest (in the
donestep): file insights onto the right page. - Query (in the
triagestep): vector search returns relevant pages, plus the compact index of the whole wiki. - Consolidation: a scheduled maintenance job merges duplicates, so knowledge condenses instead of only growing.
Hybrid storage
Pages live twice: as .md files in the sandbox home and as the source of truth in the control plane.
For humans too
The same model carries the memory of human employees: the Companion app gives a person the same apparatus, only with human_id instead of agent_id as the owner.