7ca8caeecb
Add new skill for semantic search across personal state files and external documentation using ChromaDB and sentence-transformers. Components: - search.py: Main search interface (--index, --top-k flags) - index_personal.py: Index ~/.claude/state files - index_docs.py: Index external docs (git repos) - add_doc_source.py: Manage doc sources - test_rag.py: Test suite (5/5 passing) Features: - Two indexes: personal (116 chunks) and docs (k0s: 846 chunks) - all-MiniLM-L6-v2 embeddings (384 dimensions) - ChromaDB persistent storage - JSON output with ranked results and metadata Documentation: - Added to component-registry.json with triggers - Added /rag command alias - Updated skills/README.md - Resolved fc-013 (vector database for agent memory) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
State Files
Shared state for the multi-agent system. JSON format for machine readability.
Top-Level State
| File | Purpose | Writer |
|---|---|---|
system-instructions.json |
Central process definitions | master-orchestrator |
future-considerations.json |
Deferred features/decisions | master-orchestrator |
model-policy.json |
Model selection rules | master-orchestrator |
autonomy-levels.json |
Autonomy level definitions | master-orchestrator |
component-registry.json |
Skills, commands, agents for routing | master-orchestrator |
personal-assistant-preferences.json |
PA persistent config | personal-assistant |
kb.json |
Shared knowledge base | personal-assistant |
Subdirectories
personal-assistant/
| File | Purpose |
|---|---|
general-instructions.json |
User memory (via /pa --remember) |
session-context.json |
Session context override |
kb.json |
PA-specific knowledge base |
history/index.json |
Session history index |
memory/decisions.json |
Recorded decisions |
memory/preferences.json |
Learned preferences |
memory/projects.json |
Project context |
memory/facts.json |
Environment facts |
sysadmin/
| File | Purpose |
|---|---|
session-autonomy.json |
Per-session autonomy override |
programmer/
| File | Purpose |
|---|---|
projects/*.json |
Registered project configurations |
usage/
| File | Purpose |
|---|---|
config.json |
Usage tracking configuration |
File Format
All state files use JSON:
{
"version": "1.0",
"description": "What this file contains",
"data": {}
}
Reading State
Agents read state at session start:
cat ~/.claude/state/system-instructions.json
Writing State
- master-orchestrator: Primary writer for top-level state
- personal-assistant: Override authority, writes to PA state
- linux-sysadmin: Writes to
sysadmin/state
Principles
- No duplication - Each fact in one place only
- JSON format - Machine readable
- Clear ownership - Each file has one primary writer
- Override authority - PA can override master-orchestrator