Core concepts
Architecture
RAYS-CORE is a terminal-first orchestration layer around static indexing, embeddings, LLM-guided analysis, planning, permission negotiation, code generation, optional shell execution and session memory.
High-level pipeline (edit mode)
- Config —
config.yaml(bundled + user defaults). - Indexing — populates
.rays/with symbol/relationship registries. - Vector DB — Chroma-compatible store for semantic candidate lookup.
- Task analysis — classifies intent, extracts keywords/tools.
- Symbol workflow — retrieval, merging, explicit-mention parsing.
- Planning — structured implementation plans within permission envelopes.
- Permissions — negotiates scopes before edits.
- Anchoring — resolves where new symbols/files belong.
- Execution — emits and applies edits.
- Terminal engine — optional command intents with safety modes.
- Memory — summaries and embeddings tied to
.rays.
Alternate paths
- Default prompt — agent orchestrator (skills + MCP).
/code— full coding pipeline (indexing, symbols, planning, execution)./chat— read-only retrieval and answer synthesis./mcp— list configured MCP servers and connection status.
Agent orchestrator flow
- Discover skills from
skills/and~/.rays/skills/. - Connect MCP servers from config /
~/.rays/mcp.json. - LLM selects required skills and MCP servers.
- LLM builds a spawn plan with a per-step
spawn_reason.