system-overview

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

System Overview

系统概述

Show users how Continuous Claude works - the opinionated setup with hooks, memory, and coordination.
向用户展示Continuous Claude的工作原理——包含钩子、记忆和协调功能的专属定制配置。

When to Use

适用场景

  • User asks "how does this work?"
  • User asks "what can you remember?"
  • User asks "what's different about this setup?"
  • User runs
    /system_overview
  • 用户询问“这是如何工作的?”
  • 用户询问“你能记住什么?”
  • 用户询问“这个配置有什么不同?”
  • 用户运行
    /system_overview
    命令

Response

响应内容

CONTINUOUS 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)
CONTINUOUS 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)

Key Files

关键文件

ComponentLocation
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
组件位置
Hook注册
.claude/settings.json
Hook实现
.claude/hooks/src/*.ts
规则(自动注入)
.claude/rules/*.md
Skills
.claude/skills/*/SKILL.md
配置向导
opc/scripts/setup/wizard.py
召回脚本
opc/scripts/recall_temporal_facts.py
学习内容存储
opc/scripts/core/store_learning.py
符号索引构建器
opc/scripts/build_symbol_index.py

Environment Variables

环境变量

VariablePurpose
CONTINUOUS_CLAUDE_DB_URL
PostgreSQL connection
VOYAGE_API_KEY
Embeddings (optional)
BRAINTRUST_API_KEY
Tracing (optional)
CLAUDE_PROJECT_DIR
Auto-set by Claude Code
变量用途
CONTINUOUS_CLAUDE_DB_URL
PostgreSQL连接地址
VOYAGE_API_KEY
嵌入向量服务(可选)
BRAINTRUST_API_KEY
追踪服务(可选)
CLAUDE_PROJECT_DIR
由Claude Code自动设置