# pi-brain configuration for this project/customer instance.
#
# This is the per-instance rulebook: org name, active repos, connector
# settings, and template version. The shared mechanism lives in AGENTS.md
# and the pi-brain package.

# Human-readable organisation or customer name.
org: "pi-brain"

# Repositories this pi-brain actively tracks.
# Paths are resolved relative to $BRAIN_PROJECTS_ROOT (default: ~/projects/)
# or as absolute paths.
active_repos: []

# If true, autonomous mode may run configured pull connectors at session start.
auto_connect: false

# Optional enola architecture intelligence integration.
# Adjust args to match your installed enola binary variant.
enola.enabled: true
enola.check_args: "--generate --explain --no-dashboard"
enola.baseline_args: "--generate --no-dashboard"
enola.query_args: "--generate --explain --no-dashboard"
enola.impact_args: "--generate --explain --no-dashboard"
enola.gate_build: false
enola.gate_sync_code: false
enola.auto_baseline: false

# Repos that were tracked once and are now archived.
archived_repos: []

# Connector configuration (all pull-only, off until configured).
# Credentials live in .env (read-only-scoped tokens), never in this file.
connectors:
  github:
    repos: []
  notion:
    pages: []
  slack:
    channels: []
  datadog:
    site: ""
  langfuse:
    host: ""
  structure:
    repos: []

# Extract decisions/constraints/open questions before pi compacts context.
harvest_compaction: true
harvest_compaction_max_items: 5
harvest_compaction_min_score: 1

# Inject relevant brain records/constraints into agent context.
inject_context: true
inject_context_max_records: 2
inject_context_min_score: 0

# Enrich tool results with citations, related records, and size warnings.
enrich_tool_results: true
enrich_tool_results_max_related: 2
enrich_tool_results_large_threshold: 4000

# Register pi-brain keyboard shortcuts and CLI flags.
brain_shortcuts: true

# Publish lightweight state events on pi.events for cross-extension use.
brain_event_bus: true

# Clean up session-scoped state on shutdown.
brain_session_shutdown: true

# pi-brain template version this clone was created from or last updated to.
# Used by /brain:update to diff against upstream releases.
template_version: "v0.4.0"
