SynapsesOS
Reference

Configuration Reference

Overview

Synapses is configured through a synapses.json file in your project root. Running synapses init creates this file with sensible defaults.

Top-Level Fields

FieldTypeDefaultDescription
versionstring"1"Schema version identifier
modestring"full""full" (code graph + memory) or "knowledge" (memory-only, non-code)
rulesRule[][]Architectural constraints enforced by the rule engine
edge_weightsmapdefaultsRelevance weights for context carving per edge type
context_carveobjectsee belowBFS ego-graph extraction defaults
linkedstring[][]Paths to other indexed projects merged into graph
embeddingsstring"builtin"Embedding mode: "builtin", "ollama", or "off"
embedding_modelstring"nomic-embed-text"Ollama model for embeddings
embedding_endpointstring""OpenAI-compatible HTTP endpoint for semantic search
embed_pool_sizeint3ONNX inference workers (1-8)
brainobject{}Thinking Brain (LLM enrichment) configuration
sessionobject{}Agent session memory behavior
federationobject[][]Cross-project federation entries
federation_aclobject{}ACL for cross-project read access
rate_limitsobject{}Per-session token-bucket rate limiting
constitutionobject{}Project-wide principles injected in all sessions
api_entriesobject[][]Custom API entry point detection patterns
use_go_typesboolfalseType-checked CALLS resolution for Go
use_ts_typesboolfalseTypeScript compiler API for CALLS resolution
metrics_daysint90Git history window for churn computation
coverage_profilestring""Path to go test -coverprofile output
pprof_profilestring""Path to Go CPU profile for per-function metrics
data_flow_sourcesobject[][]Custom source patterns for data flow tracking
data_flow_sinksobject[][]Custom sink patterns for data flow tracking
data_flow_max_hopsint4Maximum BFS depth for source-to-sink tracing
use_flat_graphboolfalseEnable FlatGraph SoA layout for fast PPR BFS
pulseobject{}Synapses-pulse analytics sidecar
recallobject{}Quad-channel retrieval pipeline behavior
content_safetyobject{}Prompt injection scanner configuration

Minimal Example

{
"version": "1",
"mode": "full"
}

That’s it — Synapses works with zero configuration. Everything below is optional tuning.

Full Example

{
"version": "1",
"mode": "full",
"context_carve": {
"default_depth": 2,
"token_budget": 4000,
"decay_factor": 0.6
},
"brain": {
"enabled": true,
"intelligence_mode": "optimal"
},
"embeddings": "builtin",
"federation": [
{ "path": "../shared-lib", "alias": "shared" }
]
}

See the individual configuration sections for detailed documentation of each subsystem.