Entelecheia — Agent Platform and Memory

Entelecheia is the agent platform: the scepter runtime that orchestrates specialized agents (the "souls"), maintains long-term memory (PhiLia), provides semantic search, and hosts the industrial integration layer. Behind the capabilities of Arona and Chest stands this platform. This guide is organized by capability: agents, memory, search, knowledge and connections.

Architecture at a glance

text
1
2
3
4
5
6
7
8
9
10
Clients: Arona (gateway) · Shittim Chest (chat/panels) · TUI/CLI
        │  JSON-RPC 2.0 over WebSocket (token or API key)
        ▼
   scepter runtime (node-3:8424)
   ├─ Agent manager: L1 souls (PhiLia, Skopeo, Hubris, Kalos, …)
   ├─ Skill chains: pipelines of LLM + tool calls with RAG prefetch
   ├─ PhiLia: long-term memory (vector + graph, pgvector-backed)
   ├─ ApoRia: knowledge base + workspace index (semantic search)
   ├─ OreXis: policy / safety gates on tool execution
   └─ Reflection: lesson store re-injected into prompts

1. Agents (souls)

Each soul is a specialized agent with its own identity document, tools (MCP-style), and skills. Skill chains compose LLM calls with tool execution; before each call, relevant long-term memories and knowledge-base content are prefetched and injected into the system prompt.

Safety: tool execution passes through OreXis policy gates, and industrial writes require explicit approval flows.

2. Long-term memory (PhiLia)

PhiLia is the memory service behind Arona's memory gateway:

Embedding: configured via OLLAMA_HOST + OLLAMA_EMBED_MODEL (e.g. nomic-embed-text), or a remote API, falling back to a local ONNX model.

3. Semantic search

Sync.SearchRequest fuses two stores into one ranked list:

4. Knowledge base

Create knowledge bases, add documents and subscribe to rag subscriptions — all persisted in Postgres. Documents are embedded into the ApoRia store and retrievable through the same search surface.

5. Reflection

Lessons learned are stored in a lesson store (pgvector) and re-injected into future prompts — a second, lightweight persistent memory alongside PhiLia.

6. Connecting clients

Env reference (subset)

VariablePurpose
SERVER_BIND_ADDRESSBind address (default 127.0.0.1; set 0.0.0.0:8424 for remote clients)
DATABASE_URLPostgres (config.toml or env)
OLLAMA_HOST / OLLAMA_EMBED_MODELEmbedding backend
JWT_SECRETPersistent auth tokens (random per session when unset)
connection_tokenScepter connection token file