Skip to content
maenifold
GitHub

GetConfig

Returns Maenifold system configuration for debugging and troubleshooting.

Returns Maenifold system configuration for debugging and troubleshooting.

Parameters

None - zero-parameter diagnostic tool.

Returns

Use Cases

  • Troubleshooting: Verify paths when tools fail
  • Debugging: Check auto-sync and debug flags
  • Environment validation: Confirm config before major operations
  • Path verification: Ensure directories resolve correctly
  • Decay tuning: Verify grace periods and half-life before running sleep cycle
  • Community detection tuning: Check Louvain resolution and sibling thresholds

Integration

Pairs with:

  • MemoryStatus: System health metrics and file counts
  • GetHelp: Tool documentation lookup
  • Sync: Verify auto-sync before manual sync

Environment Variables

All configuration is read from environment variables at startup. Unset variables use the defaults shown below.

Core

VariableDefaultDescription
MAENIFOLD_ROOT~/maenifoldRoot directory for all maenifold data
MAENIFOLD_DATABASE_PATH$MAENIFOLD_ROOT/memory.dbCustom database file location

Sync & Watcher

VariableDefaultDescription
MAENIFOLD_DEBOUNCE_MS150File watcher debounce interval in milliseconds
MAENIFOLD_AUTO_SYNCtrueEnable/disable incremental sync on file changes
MAENIFOLD_WATCHER_BUFFER65536FileSystemWatcher internal buffer size in bytes
MAENIFOLD_INCREMENTAL_OPTIMIZE_EVERY40Run FTS5 OPTIMIZE after this many file changes
MAENIFOLD_INCREMENTAL_VACUUM_MINUTES720Auto-vacuum interval in minutes (default: 12 hours)
MAENIFOLD_SYNC_LOGGINGtrueEnable logging of sync operations

Session Management

VariableDefaultDescription
MAENIFOLD_SESSION_ABANDON_MINUTES30Inactivity threshold for session abandonment detection
MAENIFOLD_SESSION_CLEANUPtrueEnable session cleanup during sync

Decay

VariableDefaultDescription
MAENIFOLD_DECAY_GRACE_DAYS_SEQUENTIAL7Grace period in days for thinking/sequential/ content
MAENIFOLD_DECAY_GRACE_DAYS_WORKFLOWS14Grace period in days for thinking/workflows/ content
MAENIFOLD_DECAY_GRACE_DAYS_DEFAULT28Grace period in days for all other memory
MAENIFOLD_DECAY_HALF_LIFE_DAYS30Half-life in days after grace period expires
MAENIFOLD_DECAY_FUNCTIONpower-lawDecay function type: power-law or exponential

Community Detection

VariableDefaultDescription
MAENIFOLD_LOUVAIN_GAMMA1.0Louvain resolution parameter controlling community granularity
MAENIFOLD_COMMUNITY_MIN_SHARED3Minimum shared neighbors for community sibling inclusion
MAENIFOLD_COMMUNITY_MIN_OVERLAP0.4Minimum normalized overlap score for community siblings
MAENIFOLD_COMMUNITY_MAX_SIBLINGS10Maximum community siblings returned by BuildContext
MAENIFOLD_COMMUNITY_DEBOUNCE_MS2000DB watcher debounce for community recomputation in milliseconds

Diagnostics

VariableDefaultDescription
MAENIFOLD_SNIPPET_LENGTH1000RecentActivity snippet truncation length in characters
MAENIFOLD_SQLITE_BUSY_TIMEOUT5000SQLite busy timeout in milliseconds
MAENIFOLD_EMBEDDING_LOGSfalseEnable verbose embedding operation logging
MAENIFOLD_VECTOR_LOGSfalseEnable verbose vector search logging