config/moraine.toml
1 [clickhouse]
2 url = "http://127.0.0.1:8123"
3 database = "moraine"
4 username = "default"
5 password = ""
6 timeout_seconds = 30.0
7 async_insert = true
8 wait_for_async_insert = true
9
10 [ingest]
11 batch_size = 4000
12 flush_interval_seconds = 0.5
13 state_dir = "~/.moraine/ingestor"
14 backfill_on_start = true
15 max_file_workers = 8
16 max_inflight_batches = 64
17 debounce_ms = 50
18 reconcile_interval_seconds = 30.0
19 heartbeat_interval_seconds = 5.0
20
21 [[ingest.sources]]
22 name = "codex"
23 provider = "codex"
24 enabled = true
25 glob = "~/.codex/sessions/**/*.jsonl"
26 watch_root = "~/.codex/sessions"
27
28 [[ingest.sources]]
29 name = "claude"
30 provider = "claude"
31 enabled = true
32 glob = "~/.claude/projects/**/*.jsonl"
33 watch_root = "~/.claude/projects"
34
35 [mcp]
36 max_results = 25
37 preview_chars = 320
38 default_context_before = 3
39 default_context_after = 3
40 default_include_tool_events = false
41 default_exclude_codex_mcp = true
42 async_log_writes = true
43 protocol_version = "2024-11-05"
44
45 [bm25]
46 k1 = 1.2
47 b = 0.75
48 default_min_score = 0.0
49 default_min_should_match = 1
50 max_query_terms = 32
51
52 [monitor]
53 host = "127.0.0.1"
54 port = 8080
55
56 [runtime]
57 root_dir = "~/.moraine"
58 logs_dir = "logs"
59 pids_dir = "run"
60 service_bin_dir = "~/.local/bin"
61 managed_clickhouse_dir = "~/.local/lib/moraine/clickhouse/current"
62 clickhouse_start_timeout_seconds = 30.0
63 healthcheck_interval_ms = 500
64 clickhouse_auto_install = true
65 clickhouse_version = "v25.12.5.44-stable"
66 start_monitor_on_up = true
67 start_mcp_on_up = false