-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathconfig.yaml.example
More file actions
319 lines (298 loc) · 8.6 KB
/
config.yaml.example
File metadata and controls
319 lines (298 loc) · 8.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
# Main Manifold runtime configuration.
#
# This file is the primary source of truth for runtime behavior.
# Environment variables are still supported, but only because YAML values can
# reference them via ${VAR}. Use example.env for the full set of variables that
# this example references.
#
# Separate files:
# - specialists.yaml / specialists.yml: specialist agents and routing rules
# - mcp.yaml / mcp.yml: MCP server definitions
workdir: .
systemPrompt: ""
# Agent runtime limits.
maxSteps: 1000
maxToolParallelism: 0 # 0=unbounded, 1=sequential, >1=capped
outputTruncateBytes: 131072
agentRunTimeoutSeconds: 0
streamRunTimeoutSeconds: 0
workflowTimeoutSeconds: 0
# Logging.
logPath: manifold.log
logLevel: info
logPayloads: false
logRawPrompts: false
# Tool execution policy.
enableTools: true
# When enabled, allowTools is the bootstrap set and agents can discover
# additional registered tools at runtime via tool_search.
autoDiscover: false
# Caps how many non-bootstrap tools a single run may add when autoDiscover is on.
maxDiscoveredTools: 12
allowTools:
- run_cli
- apply_patch
- llm_transform
- describe_image
- specialists_infer
- web_fetch
- mcp_duckduckgo_search
exec:
maxCommandSeconds: 1200
blockBinaries:
- rm
- sudo
- chown
- chmod
- dd
- mkfs
- mount
- umount
# Chat summarization. This LLM is independent from the primary runtime LLM so
# plain text summaries remain portable when switching providers.
summary:
enabled: true
# Maximum time a single summary-model request may block a chat request.
# Set to 0 to use the built-in default.
callTimeoutSeconds: 120
contextWindowTokens: 32000
# Optional global plain-text summary trigger budget. Set to 0 to fall back
# to the configured summary model's context size.
plainTextContextWindowTokens: 0
reserveBufferTokens: 25000
minKeepLastMessages: 4
maxKeepLastMessages: 12
maxSummaryChunkTokens: 4096
llm_client:
provider: openai
openai:
apiKey: "${OPENAI_API_KEY}"
baseURL: https://api.openai.com/v1
model: gpt-5-nano
api: completions
extraHeaders: {}
extraParams: {}
# Primary LLM provider configuration.
llm_client:
# openai | anthropic | google | local
provider: openai
openai:
apiKey: "${OPENAI_API_KEY}"
baseURL: https://api.openai.com/v1
model: gpt-5-mini
# completions | responses
api: completions
extraHeaders: {}
extraParams:
parallel_tool_calls: true
prompt_cache_key: manifold-
reasoning_effort: medium
anthropic:
apiKey: "${ANTHROPIC_API_KEY}"
model: claude-sonnet-4-6
baseURL: https://api.anthropic.com
maxTokens: 4096
extraParams: {}
promptCache:
enabled: false
cacheSystem: true
cacheTools: true
cacheMessages: false
google:
apiKey: "${GOOGLE_LLM_API_KEY}"
model: gemini-2.5-pro
baseURL: https://generativelanguage.googleapis.com/
timeoutSeconds: 30
extraParams: {}
# Observability.
obs:
serviceName: manifold
serviceVersion: 0.0.1
environment: local
# Optional OTLP export endpoint. Leave empty when running without an
# OpenTelemetry Collector; the dashboard will still use local process
# telemetry when obs.local.enabled is true.
# Use bare host:port here. The current OTLP HTTP exporter code appends
# the default /v1/{traces,metrics,logs} paths for collector endpoints.
otlp: ""
# Local process telemetry is enabled by default and backs the dashboard when
# ClickHouse is not configured or unavailable. It is bounded and resets when
# agentd restarts.
local:
enabled: true
metricsWindowMinutes: 60
metricsBucketSeconds: 30
maxLogs: 5000
maxTraces: 1000
maxSpansPerTrace: 256
clickhouse:
# Optional persistent telemetry backend. Keep CLICKHOUSE_DSN empty for a
# self-contained install that does not run ClickHouse.
dsn: "${CLICKHOUSE_DSN}"
database: otel
metricsTable: metrics_sum
tracesTable: traces
logsTable: logs
timestampColumn: TimeUnix
valueColumn: Value
modelAttributeKey: llm.model
promptMetricName: llm.prompt_tokens
completionMetricName: llm.completion_tokens
lookbackHours: 24
timeoutSeconds: 5
# Optional web search backend used by the internal web_search tool.
web:
searXNGURL: http://localhost:8080
# Optional authentication.
auth:
enabled: false
# oidc | oauth2
provider: oauth2
issuerURL: ""
clientID: "${AUTH_CLIENT_ID}"
clientSecret: "${AUTH_CLIENT_SECRET}"
redirectURL: http://localhost:32180/auth/callback
allowedDomains: []
cookieName: manifold_session
cookieSecure: false
cookieDomain: ""
stateTTLSeconds: 600
sessionTTLHours: 72
oauth2:
authURL: https://github.com/login/oauth/authorize
tokenURL: https://github.com/login/oauth/access_token
userInfoURL: https://api.github.com/user
logoutURL: ""
logoutRedirectParam: redirect_uri
scopes:
- read:user
- user:email
providerName: github
defaultRoles:
- user
emailField: email
nameField: name
pictureField: avatar_url
subjectField: id
rolesField: ""
disablePKCE: false
# Database backends.
databases:
# Docker Compose users can keep embedded=false and use pg-manifold through
# DATABASE_URL. Host-run users can set embedded=true and leave DATABASE_URL
# empty; agentd will start a bundled local PostgreSQL and wire its DSN into
# all database-backed stores at startup.
embedded: false
embeddedPort: 5433
embeddedDataDir: "" # defaults to ~/.manifold/embedded-postgres/data
embeddedVersion: "18"
embeddedExtensions: # extensions installed into embedded PG (default: pgvector, postgis, pgrouting)
- pgvector
- postgis
- pgrouting
embeddedExtensionURL: "" # override for pre-built extension package base URL
defaultDSN: "${DATABASE_URL}"
chat:
backend: postgres # memory | auto | postgres
dsn: "${DATABASE_URL}"
search:
backend: postgres # memory | auto | postgres
dsn: "${DATABASE_URL}"
index: documents
vector:
backend: postgres # memory | auto | postgres | qdrant
dsn: "${DATABASE_URL}"
index: embeddings
dimensions: 1536
metric: cosine
graph:
backend: postgres # memory | auto | postgres
dsn: "${DATABASE_URL}"
# Embedding service, used by vector features and evolving memory.
embedding:
baseURL: https://api.openai.com
model: text-embedding-3-small
apiKey: "${EMBED_API_KEY}"
apiHeader: Authorization
headers: {}
path: /v1/embeddings
timeoutSeconds: 30
# Optional defaults for the describe_image tool. Leave blank to use the
# invoking agent/specialist endpoint and model; per-tool-call base_url/model
# arguments still override these values.
imageTool:
baseURL: ""
model: ""
# Search -> Synthesis -> Evolve memory.
evolvingMemory:
enabled: false
persistDebounceMs: 250
sessionTTLMinutes: 120
janitorIntervalMinutes: 15
storeJanitorIntervalMinutes: 60
llmClient:
provider: local
openai:
apiKey: ""
baseURL: http://localhost:11434/v1
model: qwen-memory
api: completions
extraHeaders: {}
extraParams: {}
maxSize: 2000
topK: 4
windowSize: 20
enableRAG: true
reMemEnabled: false
maxInnerSteps: 3
model: gpt-4o-mini
enableSmartPrune: true
pruneThreshold: 0.97
relevanceDecay: 0.99
minRelevance: 0.05
pruneQualityFloor: 3
promotionAccessThreshold: 5
# Shared durable memory.
transit:
enabled: false
defaultSearchLimit: 10
defaultListLimit: 100
maxBatchSize: 100
enableVectorSearch: true
# Shared belief memory foundations. Phase 0 keeps all runtime behavior disabled
# while the store, schema, and interfaces are available for incremental rollout.
beliefMemory:
enabled: false
enableDistillation: false
enableRetrieval: false
enableConstraintEnforcement: false
maxBeliefsPerPrompt: 5
maxEvidencePerBelief: 3
defaultConfidence: 0.5
promotionThreshold: 0.8
# Optional: blend RAG document retrieval into the belief prompt block as a
# delimited "Retrieved Evidence (untrusted)" sub-section. Disabled by default;
# requires the RAG service to be configured (see embedding/RAG settings).
enableRAGEvidence: false
maxRAGEvidencePerPrompt: 3
ragRetrievalK: 8
ragMinScore: 0.0
# Speech helpers.
tts:
baseURL: https://api.openai.com/v1
model: gpt-4o-mini-tts
voice: alloy
stt:
baseURL: https://api.openai.com
model: gpt-4o-mini-transcribe
# Placeholder for future per-project controls.
projects: {}
# Accurate token counting.
tokenization:
enabled: false
cacheSize: 1000
cacheTTLSeconds: 3600
fallbackToHeuristic: true
# Specialist and MCP configuration live in dedicated files now:
# - specialists.yaml.example
# - mcp.yaml.example