watch_directories: ["code_flow"]
ignored_patterns: ["venv", "**/__pycache__"]
ignored_filenames: ["package-lock.json", "yarn.lock", "pnpm-lock.yaml", "uv.lock"] # Specific files to ignore
chromadb_path: "./code_vectors_chroma"
max_graph_depth: 3
embedding_model: "all-MiniLM-L6-v2"
max_tokens: 256
language: "python"
call_graph_confidence_threshold: 0.8
# Background cleanup configuration
cleanup_interval_minutes: 30
# Cortex memory configuration
memory_enabled: true
memory_collection_name: "cortex_memory_v1"
memory_similarity_weight: 0.7
memory_score_weight: 0.3
memory_min_score: 0.1
memory_cleanup_interval_seconds: 3600
memory_grace_seconds: 86400
memory_half_life_days:
TRIBAL: 180.0
EPISODIC: 7.0
FACT: 30.0
memory_decay_floor:
TRIBAL: 0.1
EPISODIC: 0.01
FACT: 0.05
# Cortex memory resources (MCP)
memory_resources_enabled: true
memory_resources_limit: 10
memory_resources_filters: {}
# Summary Generation (Meta-RAG)
summary_generation_enabled: false
llm_config:
api_key_env_var: "OPENAI_API_KEY"
base_url: "https://openrouter.ai/api/v1"
model: "x-ai/grok-4.1-fast"
max_tokens: 256 # Max tokens in LLM response per summary
concurrency: 5
# Smart filtering to reduce costs
min_complexity: 3 # Only summarize functions with complexity >= 3
min_nloc: 5 # Only summarize functions with >= 5 lines of code
skip_private: true # Skip functions starting with _ (private)
skip_test: true # Skip test functions (test_*, *_test)
prioritize_entry_points: true # Summarize entry points first
# Depth control
summary_depth: "standard" # "minimal", "standard", "detailed"
max_input_tokens: 2000 # Truncate function body if longer
# Drift detection configuration
drift_enabled: false
drift_granularity: "module" # module | file
drift_min_entity_size: 3
drift_cluster_algorithm: "hdbscan"
drift_numeric_features:
- complexity_mean
- complexity_variance
- nloc_mean
- nloc_variance
- decorator_count_mean
- dependency_count_mean
- exception_count_mean
- incoming_degree_mean
- outgoing_degree_mean
drift_textual_features:
- decorators
- external_dependencies
- catches_exceptions
drift_ignore_path_patterns:
- "**/tests/**"
- "**/__pycache__/**"
- "**/node_modules/**"
drift_confidence_threshold: 0.6