Show users how Continuous Claude works - the opinionated setup with hooks, memory, and coordination
Show users how Continuous Claude works - the opinionated setup with hooks, memory, and coordination.
/system_overviewCONTINUOUS CLAUDE SYSTEM OVERVIEW
=================================
MEMORY LAYER (PostgreSQL + pgvector)
------------------------------------
- 78,000+ temporal facts from past sessions
- Learnings extracted automatically at session end
- Semantic search with embeddings
RECALL: uv run python opc/scripts/recall_temporal_facts.py --query "your topic"
HOOKS (9 event types registered)
--------------------------------
SessionStart → Load continuity ledger, rebuild symbol index
UserPromptSubmit → Skill activation check, context injection
PreToolUse → Smart search routing (Grep → TLDR for code)
PostToolUse → File claims, compiler feedback
PreCompact → Save state before context compaction
Stop → Extract learnings, create handoffs
SubagentStart → Register spawned agents
SubagentStop → Coordination, handoff creation
SessionEnd → Cleanup
CONTINUITY SYSTEM
-----------------
Ledger: thoughts/ledgers/CONTINUITY_CLAUDE-{session}.md
Handoffs: thoughts/shared/handoffs/{session}/*.yaml
Commands:
/resume_handoff <path> - Continue from handoff
/create_handoff - Create snapshot for transfer
TLDR CODE INTELLIGENCE
----------------------
5-layer analysis: AST → Call Graph → CFG → DFG → PDG
95% token savings vs reading raw files
Auto-intercepts Grep for .py/.ts/.go/.rs files
Pre-built index: /tmp/claude-symbol-index/symbols.json
SETUP
-----
Run: uv run python opc/scripts/setup/wizard.py
Options:
[1] SQLite only (simple, offline)
[2] PostgreSQL + pgvector (semantic search)
| Component | Location |
|-----------|----------|
| Hook registration | .claude/settings.json |
| Hook implementations | .claude/hooks/src/*.ts |
| Rules (auto-injected) | .claude/rules/*.md |
| Skills | .claude/skills/*/SKILL.md |
| Setup wizard | opc/scripts/setup/wizard.py |
| Recall script | opc/scripts/recall_temporal_facts.py |
| Store learning | opc/scripts/core/store_learning.py |
| Symbol index builder | opc/scripts/build_symbol_index.py |
| Variable | Purpose |
|----------|---------|
| CONTINUOUS_CLAUDE_DB_URL | PostgreSQL connection |
| VOYAGE_API_KEY | Embeddings (optional) |
| BRAINTRUST_API_KEY | Tracing (optional) |
| CLAUDE_PROJECT_DIR | Auto-set by Claude Code |
BluOS CLI (blu) for discovery, playback, grouping, and volume.
Delegate coding tasks to Codex, Claude Code, or Pi agents via background process. Use when: (1) building/creating new features or apps, (2) reviewing PRs (spawn in temp dir), (3) refactoring large codebases, (4) iterative coding that needs file exploration. NOT for: simple one-liner fixes (just edit), reading code (use read tool), thread-bound ACP harness requests in chat (for example spawn/run Codex or Claude Code in a Discord thread; use sessions_spawn with runtime:"acp"), or any work in ~/clawd workspace (never spawn agents here). Claude Code: use --print --permission-mode bypassPermissions (no PTY). Codex/Pi/OpenCode: pty:true required.
Query Google Places API (New) via the goplaces CLI for text search, place details, resolve, and reviews. Use for human-friendly place lookup or JSON output for scripts.
Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.
Search and analyze your own session logs (older/parent conversations) using jq.
Best practices for using the oracle CLI (prompt + file bundling, engines, sessions, and file attachment patterns).
Category:developer