Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
{
"golden": {
"commandAgnosticConnectBranches": [
"readOnlyTimeoutMs !== null"
],
"commands": {
"access": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [],
"thinClient": "refuse",
"thinClientRoutedSubcommands": []
},
"advisor": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [],
"thinClient": "refuse",
"thinClientRoutedSubcommands": []
},
"agent": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [
{
"condition": "command === 'agent' && args[0] === 'register' && !hasHelpFlag(args)",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": false,
"thinClientCheck": true,
"unconditionalFor": []
}
],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"anomalies": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [
{
"condition": "(command === 'salience' || command === 'anomalies' || command === 'graph-query' || command === 'whoknows' || command === 'founder') && isThinClient(loadConfig())",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": true,
"unconditionalFor": []
}
],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"append": {
"hasSwitchCase": false,
"phase": "pre-connect-own-engine",
"preConnectRules": [
{
"condition": "command === 'append'",
"connectsEngine": true,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": [
"append"
]
}
],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"apply-migrations": {
"hasSwitchCase": false,
"phase": "pre-connect",
"preConnectRules": [
{
"condition": "command === 'apply-migrations'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": [
"apply-migrations"
]
}
],
"thinClient": "refuse",
"thinClientRoutedSubcommands": []
},
"auth": {
"hasSwitchCase": false,
"phase": "pre-connect",
"preConnectRules": [
{
"condition": "command === 'auth'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": [
"auth"
]
},
{
"condition": "command === 'auth'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": [
"auth"
]
}
],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"autopilot": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [
{
"condition": "command === 'autopilot'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": false,
"thinClientCheck": false,
"unconditionalFor": [
"autopilot"
]
}
],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"backfill": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"backup": {
"hasSwitchCase": false,
"phase": "pre-connect-own-engine",
"preConnectRules": [
{
"condition": "command === 'backup'",
"connectsEngine": true,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": [
"backup"
]
}
],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"beliefs": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [],
"thinClient": "route-then-refuse",
"thinClientRoutedSubcommands": [
"changes"
]
},
"bench": {
"hasSwitchCase": false,
"phase": "pre-connect",
"preConnectRules": [
{
"condition": "command === 'bench'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": [
"bench"
]
}
],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"book-mirror": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"bootstrap": {
"hasSwitchCase": false,
"phase": "pre-connect",
"preConnectRules": [
{
"condition": "command === 'bootstrap'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": [
"bootstrap"
]
}
],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"brainstorm": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"bundled-skill": {
"hasSwitchCase": false,
"phase": "pre-connect",
"preConnectRules": [
{
"condition": "command === 'bundled-skill'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": [
"bundled-skill"
]
}
],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"cache": {
"hasSwitchCase": false,
"phase": "pre-connect",
"preConnectRules": [
{
"condition": "command === 'cache'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": [
"cache"
]
}
],
"thinClient": "route-then-refuse",
"thinClientRoutedSubcommands": [
"stats"
]
},
"calibration": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"call": {
"hasSwitchCase": false,
"phase": "pre-connect-own-engine",
"preConnectRules": [
{
"condition": "command === 'capture' || command === 'forget' || command === 'call' || command === 'sources' && ['writer', 'reconcile', 'add', 'remove', 'archive', 'restore', 'purge', 'set-path', 'reclone'].includes(args[0]) || command === 'takes' && ['add', 'update', 'supersede', 'resolve', 'remove', 'rebuild'].includes(args[0]) && !hasHelpFlag(args)",
"connectsEngine": true,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": [
"capture",
"forget",
"call"
]
}
],
"thinClient": "refuse",
"thinClientRoutedSubcommands": []
},
"capture": {
"hasSwitchCase": false,
"phase": "pre-connect-own-engine",
"preConnectRules": [
{
"condition": "command === 'capture' || command === 'forget' || command === 'call' || command === 'sources' && ['writer', 'reconcile', 'add', 'remove', 'archive', 'restore', 'purge', 'set-path', 'reclone'].includes(args[0]) || command === 'takes' && ['add', 'update', 'supersede', 'resolve', 'remove', 'rebuild'].includes(args[0]) && !hasHelpFlag(args)",
"connectsEngine": true,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": [
"capture",
"forget",
"call"
]
},
{
"condition": "command === 'capture' && (args.includes('--help') || args.includes('-h'))",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": []
}
],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"check-backlinks": {
"hasSwitchCase": false,
"phase": "pre-connect",
"preConnectRules": [
{
"condition": "command === 'check-backlinks'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": [
"check-backlinks"
]
}
],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"check-resolvable": {
"hasSwitchCase": false,
"phase": "pre-connect",
"preConnectRules": [
{
"condition": "command === 'check-resolvable'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": [
"check-resolvable"
]
}
],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"check-update": {
"hasSwitchCase": false,
"phase": "pre-connect",
"preConnectRules": [
{
"condition": "command === 'check-update'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": [
"check-update"
]
}
],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"claw-test": {
"hasSwitchCase": false,
"phase": "pre-connect",
"preConnectRules": [
{
"condition": "command === 'claw-test'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": [
"claw-test"
]
}
],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"code-callees": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [],
"thinClient": "refuse",
"thinClientRoutedSubcommands": []
},
"code-callers": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [],
"thinClient": "refuse",
"thinClientRoutedSubcommands": []
},
"code-def": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [],
"thinClient": "refuse",
"thinClientRoutedSubcommands": []
},
"code-refs": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [],
"thinClient": "refuse",
"thinClientRoutedSubcommands": []
},
"compile-context": {
"hasSwitchCase": false,
"phase": "pre-connect-own-engine",
"preConnectRules": [
{
"condition": "command === 'compile-context'",
"connectsEngine": true,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": [
"compile-context"
]
}
],
"thinClient": "refuse",
"thinClientRoutedSubcommands": []
},
"config": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [
{
"condition": "command === 'config'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": false,
"thinClientCheck": false,
"unconditionalFor": [
"config"
]
}
],
"thinClient": "refuse",
"thinClientRoutedSubcommands": []
},
"connect": {
"hasSwitchCase": false,
"phase": "pre-connect",
"preConnectRules": [
{
"condition": "command === 'connect'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": [
"connect"
]
}
],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"connectors": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"conversation-parser": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [
{
"condition": "command === 'conversation-parser' && (args.length === 0 || args[0] === '--help' || args[0] === '-h' || args[0] === 'list-builtins' || args[0] === 'validate')",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": []
}
],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"core": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"creds": {
"hasSwitchCase": false,
"phase": "pre-connect",
"preConnectRules": [
{
"condition": "command === 'creds'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": [
"creds"
]
}
],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"db-repair": {
"hasSwitchCase": false,
"phase": "pre-connect",
"preConnectRules": [
{
"condition": "command === 'db-repair'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": [
"db-repair"
]
}
],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"decide": {
"hasSwitchCase": false,
"phase": "pre-connect-own-engine",
"preConnectRules": [
{
"condition": "command === 'decide'",
"connectsEngine": true,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": [
"decide"
]
}
],
"thinClient": "refuse",
"thinClientRoutedSubcommands": []
},
"diag": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [],
"thinClient": "refuse",
"thinClientRoutedSubcommands": []
},
"doctor": {
"hasSwitchCase": false,
"phase": "pre-connect-own-engine",
"preConnectRules": [
{
"condition": "command === 'doctor'",
"connectsEngine": true,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": true,
"unconditionalFor": [
"doctor"
]
}
],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"dream": {
"hasSwitchCase": false,
"phase": "pre-connect-own-engine",
"preConnectRules": [
{
"condition": "command === 'dream'",
"connectsEngine": true,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": [
"dream"
]
}
],
"thinClient": "refuse",
"thinClientRoutedSubcommands": []
},
"edge-proposals": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [],
"thinClient": "refuse",
"thinClientRoutedSubcommands": []
},
"edges-backfill": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"embed": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [
{
"condition": "command === 'embed' && args.includes('--facts')",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": false,
"thinClientCheck": false,
"unconditionalFor": []
}
],
"thinClient": "refuse",
"thinClientRoutedSubcommands": []
},
"embeddings": {
"hasSwitchCase": false,
"phase": "pre-connect",
"preConnectRules": [
{
"condition": "command === 'embeddings'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": [
"embeddings"
]
}
],
"thinClient": "refuse",
"thinClientRoutedSubcommands": []
},
"engine": {
"hasSwitchCase": false,
"phase": "pre-connect",
"preConnectRules": [
{
"condition": "command === 'engine'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": [
"engine"
]
}
],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"enrich": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [
{
"condition": "command === 'enrich' && (args.includes('--help') || args.includes('-h'))",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": []
}
],
"thinClient": "refuse",
"thinClientRoutedSubcommands": []
},
"errors": {
"hasSwitchCase": false,
"phase": "pre-connect",
"preConnectRules": [
{
"condition": "command === 'errors'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": [
"errors"
]
}
],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"eval": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [
{
"condition": "command === 'eval' && args[0] === 'cross-modal'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": []
},
{
"condition": "command === 'eval' && args[0] === 'run-all'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": []
},
{
"condition": "command === 'eval' && args[0] === 'takes-quality' && args[1] === 'replay'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": []
},
{
"condition": "command === 'eval' && args[0] === 'brainbench'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": []
},
{
"condition": "command === 'eval' && args[0] === 'longmemeval'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": []
},
{
"condition": "command === 'eval' && args[0] === 'chronicle'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": []
},
{
"condition": "command === 'eval' && args[0] === 'synthesize-concepts'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": []
},
{
"condition": "command === 'eval' && args[0] === 'conversation-parser'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": []
},
{
"condition": "command === 'eval' && args[0] === 'whoknows'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": false,
"thinClientCheck": true,
"unconditionalFor": []
},
{
"condition": "command === 'eval' && (args.includes('--help') || args.includes('-h'))",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": []
}
],
"thinClient": "refuse",
"thinClientRoutedSubcommands": []
},
"export": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [],
"thinClient": "refuse",
"thinClientRoutedSubcommands": []
},
"extract": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [
{
"condition": "command === 'extract' && (args.includes('--help') || args.includes('-h'))",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": []
},
{
"condition": "command === 'extract' && args.includes('--stale') && !hasHelpFlag(args) && await (await import('../commands/extract-stale-delegate.ts')).maybeDelegateExtractStale(loadConfig(), args)",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": []
}
],
"thinClient": "refuse",
"thinClientRoutedSubcommands": []
},
"extract-conversation-facts": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [],
"thinClient": "refuse",
"thinClientRoutedSubcommands": []
},
"facts": {
"hasSwitchCase": false,
"phase": "pre-connect-own-engine",
"preConnectRules": [
{
"condition": "command === 'facts'",
"connectsEngine": true,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": [
"facts"
]
}
],
"thinClient": "refuse",
"thinClientRoutedSubcommands": []
},
"features": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"feedback": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [],
"thinClient": "refuse",
"thinClientRoutedSubcommands": []
},
"files": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [],
"thinClient": "refuse",
"thinClientRoutedSubcommands": []
},
"forget": {
"hasSwitchCase": false,
"phase": "pre-connect-own-engine",
"preConnectRules": [
{
"condition": "command === 'capture' || command === 'forget' || command === 'call' || command === 'sources' && ['writer', 'reconcile', 'add', 'remove', 'archive', 'restore', 'purge', 'set-path', 'reclone'].includes(args[0]) || command === 'takes' && ['add', 'update', 'supersede', 'resolve', 'remove', 'rebuild'].includes(args[0]) && !hasHelpFlag(args)",
"connectsEngine": true,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": [
"capture",
"forget",
"call"
]
}
],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"founder": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [
{
"condition": "(command === 'salience' || command === 'anomalies' || command === 'graph-query' || command === 'whoknows' || command === 'founder') && isThinClient(loadConfig())",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": true,
"unconditionalFor": []
}
],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"friction": {
"hasSwitchCase": false,
"phase": "pre-connect",
"preConnectRules": [
{
"condition": "command === 'friction'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": [
"friction"
]
}
],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"frontmatter": {
"hasSwitchCase": false,
"phase": "pre-connect",
"preConnectRules": [
{
"condition": "command === 'frontmatter'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": [
"frontmatter"
]
}
],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"git": {
"hasSwitchCase": false,
"phase": "pre-connect",
"preConnectRules": [
{
"condition": "command === 'git'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": [
"git"
]
}
],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"google": {
"hasSwitchCase": false,
"phase": "pre-connect",
"preConnectRules": [
{
"condition": "command === 'google'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": [
"google"
]
}
],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"graph-query": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [
{
"condition": "(command === 'salience' || command === 'anomalies' || command === 'graph-query' || command === 'whoknows' || command === 'founder') && isThinClient(loadConfig())",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": true,
"unconditionalFor": []
}
],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"guests": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [],
"thinClient": "refuse",
"thinClientRoutedSubcommands": []
},
"hook": {
"hasSwitchCase": false,
"phase": "pre-connect",
"preConnectRules": [
{
"condition": "command === 'hook'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": [
"hook"
]
}
],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"import": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"init": {
"hasSwitchCase": false,
"phase": "pre-connect",
"preConnectRules": [
{
"condition": "command === 'init'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": [
"init"
]
}
],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"integrations": {
"hasSwitchCase": false,
"phase": "pre-connect",
"preConnectRules": [
{
"condition": "command === 'integrations'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": [
"integrations"
]
}
],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"integrity": {
"hasSwitchCase": false,
"phase": "pre-connect",
"preConnectRules": [
{
"condition": "command === 'integrity'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": [
"integrity"
]
}
],
"thinClient": "refuse",
"thinClientRoutedSubcommands": []
},
"jobs": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [
{
"condition": "command === 'jobs'",
"connectsEngine": false,
"refusesThinClient": true,
"routesThinClient": true,
"terminates": false,
"thinClientCheck": true,
"unconditionalFor": [
"jobs"
]
}
],
"thinClient": "route-then-refuse",
"thinClientRoutedSubcommands": [
"list",
"get",
"wait",
"stats"
]
},
"lint": {
"hasSwitchCase": false,
"phase": "pre-connect",
"preConnectRules": [
{
"condition": "command === 'lint'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": [
"lint"
]
}
],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"loops": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"lsd": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"maintain": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [
{
"condition": "command === 'maintain' && await (await import('../commands/maintain-schedule.ts')).tryRunMaintainEngineFree(args)",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": []
}
],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"mcp": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [
{
"condition": "command === 'mcp'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": false,
"thinClientCheck": true,
"unconditionalFor": [
"mcp"
]
}
],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"memory-proposals": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [],
"thinClient": "refuse",
"thinClientRoutedSubcommands": []
},
"migrate": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [
{
"condition": "command === 'migrate' && await (await import('../commands/migrate-graduation.ts')).tryRunMigrateGraduation(args)",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": []
}
],
"thinClient": "refuse",
"thinClientRoutedSubcommands": []
},
"models": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"mounts": {
"hasSwitchCase": false,
"phase": "pre-connect",
"preConnectRules": [
{
"condition": "command === 'mounts'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": [
"mounts"
]
}
],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"notability-eval": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"notices": {
"hasSwitchCase": false,
"phase": "pre-connect",
"preConnectRules": [
{
"condition": "command === 'notices'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": [
"notices"
]
}
],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"onboard": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"orphans": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [],
"thinClient": "refuse",
"thinClientRoutedSubcommands": []
},
"pages": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [],
"thinClient": "refuse",
"thinClientRoutedSubcommands": []
},
"pglite-repair": {
"hasSwitchCase": false,
"phase": "pre-connect",
"preConnectRules": [
{
"condition": "command === 'pglite-repair'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": [
"pglite-repair"
]
}
],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"post-upgrade": {
"hasSwitchCase": false,
"phase": "pre-connect",
"preConnectRules": [
{
"condition": "command === 'post-upgrade'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": [
"post-upgrade"
]
}
],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"pricing": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [],
"thinClient": "refuse",
"thinClientRoutedSubcommands": []
},
"projections": {
"hasSwitchCase": false,
"phase": "pre-connect-own-engine",
"preConnectRules": [
{
"condition": "command === 'projections'",
"connectsEngine": true,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": [
"projections"
]
}
],
"thinClient": "refuse",
"thinClientRoutedSubcommands": []
},
"protocol": {
"hasSwitchCase": false,
"phase": "pre-connect",
"preConnectRules": [
{
"condition": "command === 'protocol'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": [
"protocol"
]
}
],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"providers": {
"hasSwitchCase": false,
"phase": "pre-connect",
"preConnectRules": [
{
"condition": "command === 'providers'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": [
"providers"
]
}
],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"publish": {
"hasSwitchCase": false,
"phase": "pre-connect",
"preConnectRules": [
{
"condition": "command === 'publish'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": [
"publish"
]
}
],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"quarantine": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [],
"thinClient": "route-then-refuse",
"thinClientRoutedSubcommands": [
"list"
]
},
"questions": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [],
"thinClient": "refuse",
"thinClientRoutedSubcommands": []
},
"recall": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [
{
"condition": "command === 'recall' && isThinClient(loadConfig())",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": false,
"thinClientCheck": true,
"unconditionalFor": []
}
],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"reconcile-links": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"reindex": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [
{
"condition": "command === 'reindex' && (args.includes('--help') || args.includes('-h'))",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": []
}
],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"reindex-code": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [
{
"condition": "command === 'reindex-code'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": false,
"thinClientCheck": false,
"unconditionalFor": [
"reindex-code"
]
}
],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"reindex-frontmatter": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"reindex-search-vector": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"reinit-pglite": {
"hasSwitchCase": false,
"phase": "pre-connect",
"preConnectRules": [
{
"condition": "command === 'reinit-pglite'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": [
"reinit-pglite"
]
}
],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"remote": {
"hasSwitchCase": false,
"phase": "pre-connect",
"preConnectRules": [
{
"condition": "command === 'remote'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": [
"remote"
]
}
],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"repair": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [],
"thinClient": "refuse",
"thinClientRoutedSubcommands": []
},
"repair-jsonb": {
"hasSwitchCase": false,
"phase": "pre-connect",
"preConnectRules": [
{
"condition": "command === 'repair-jsonb'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": [
"repair-jsonb"
]
}
],
"thinClient": "refuse",
"thinClientRoutedSubcommands": []
},
"report": {
"hasSwitchCase": false,
"phase": "pre-connect",
"preConnectRules": [
{
"condition": "command === 'report'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": [
"report"
]
}
],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"repos": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"resolvers": {
"hasSwitchCase": false,
"phase": "pre-connect",
"preConnectRules": [
{
"condition": "command === 'resolvers'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": [
"resolvers"
]
}
],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"retrieval-upgrade": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [],
"thinClient": "refuse",
"thinClientRoutedSubcommands": []
},
"routing-eval": {
"hasSwitchCase": false,
"phase": "pre-connect",
"preConnectRules": [
{
"condition": "command === 'routing-eval'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": [
"routing-eval"
]
}
],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"salience": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [
{
"condition": "(command === 'salience' || command === 'anomalies' || command === 'graph-query' || command === 'whoknows' || command === 'founder') && isThinClient(loadConfig())",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": true,
"unconditionalFor": []
}
],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"schema": {
"hasSwitchCase": false,
"phase": "pre-connect",
"preConnectRules": [
{
"condition": "command === 'schema'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": [
"schema"
]
}
],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"self-upgrade": {
"hasSwitchCase": false,
"phase": "pre-connect",
"preConnectRules": [
{
"condition": "command === 'self-upgrade'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": [
"self-upgrade"
]
}
],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"serve": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [
{
"condition": "command === 'serve' && (dbMarkerBrainId() ?? 'host') === 'host'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": false,
"thinClientCheck": false,
"unconditionalFor": []
}
],
"thinClient": "refuse",
"thinClientRoutedSubcommands": []
},
"setup": {
"hasSwitchCase": false,
"phase": "pre-connect",
"preConnectRules": [
{
"condition": "command === 'setup'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": [
"setup"
]
}
],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"skill-resolver": {
"hasSwitchCase": false,
"phase": "pre-connect",
"preConnectRules": [
{
"condition": "command === 'skill-resolver'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": [
"skill-resolver"
]
}
],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"skillify": {
"hasSwitchCase": false,
"phase": "pre-connect",
"preConnectRules": [
{
"condition": "command === 'skillify'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": [
"skillify"
]
}
],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"skillopt": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"skillpack": {
"hasSwitchCase": false,
"phase": "pre-connect",
"preConnectRules": [
{
"condition": "command === 'skillpack'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": [
"skillpack"
]
}
],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"skillpack-check": {
"hasSwitchCase": false,
"phase": "pre-connect",
"preConnectRules": [
{
"condition": "command === 'skillpack-check'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": [
"skillpack-check"
]
}
],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"smoke-test": {
"hasSwitchCase": false,
"phase": "pre-connect",
"preConnectRules": [
{
"condition": "command === 'smoke-test'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": [
"smoke-test"
]
}
],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"sources": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [
{
"condition": "command === 'capture' || command === 'forget' || command === 'call' || command === 'sources' && ['writer', 'reconcile', 'add', 'remove', 'archive', 'restore', 'purge', 'set-path', 'reclone'].includes(args[0]) || command === 'takes' && ['add', 'update', 'supersede', 'resolve', 'remove', 'rebuild'].includes(args[0]) && !hasHelpFlag(args)",
"connectsEngine": true,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": [
"capture",
"forget",
"call"
]
},
{
"condition": "command === 'sources' && args[0] === 'refresh' && !hasHelpFlag(args) && await (await import('../commands/sources-refresh-delegate.ts')).maybeDelegateSourcesRefresh(loadConfig(), args.slice(1))",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": []
}
],
"thinClient": "route-then-refuse",
"thinClientRoutedSubcommands": [
"shared-skills"
]
},
"status": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [
{
"condition": "command === 'status'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": false,
"thinClientCheck": true,
"unconditionalFor": [
"status"
]
}
],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"storage": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [
{
"condition": "command === 'storage' && (args.includes('--help') || args.includes('-h'))",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": []
}
],
"thinClient": "refuse",
"thinClientRoutedSubcommands": []
},
"sweep": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [
{
"condition": "command === 'sweep' && (args.includes('--help') || args.includes('-h'))",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": []
},
{
"condition": "command === 'sweep'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": false,
"thinClientCheck": false,
"unconditionalFor": [
"sweep"
]
}
],
"thinClient": "refuse",
"thinClientRoutedSubcommands": []
},
"sync": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [
{
"condition": "command === 'sync' && (args.includes('--help') || args.includes('-h'))",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": []
},
{
"condition": "command === 'sync' && !syncOperator",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": false,
"thinClientCheck": false,
"unconditionalFor": []
},
{
"condition": "command === 'sync' && args[0] === 'trigger' && await (await import('../commands/sync-delegate.ts')).maybeTriggerThroughServe(loadConfig(), args.slice(1))",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": []
},
{
"condition": "command === 'sync' && !syncOperator && args[0] !== 'trigger'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": false,
"thinClientCheck": false,
"unconditionalFor": []
}
],
"thinClient": "refuse",
"thinClientRoutedSubcommands": []
},
"takes": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [
{
"condition": "command === 'capture' || command === 'forget' || command === 'call' || command === 'sources' && ['writer', 'reconcile', 'add', 'remove', 'archive', 'restore', 'purge', 'set-path', 'reclone'].includes(args[0]) || command === 'takes' && ['add', 'update', 'supersede', 'resolve', 'remove', 'rebuild'].includes(args[0]) && !hasHelpFlag(args)",
"connectsEngine": true,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": [
"capture",
"forget",
"call"
]
},
{
"condition": "command === 'takes' && (args.includes('--help') || args.includes('-h'))",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": []
}
],
"thinClient": "route-then-refuse",
"thinClientRoutedSubcommands": [
"list",
"search",
"scorecard",
"calibration",
"add",
"update",
"resolve",
"supersede"
]
},
"think": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [
{
"condition": "command === 'think'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": false,
"thinClientCheck": true,
"unconditionalFor": [
"think"
]
}
],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"transcripts": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [
{
"condition": "command === 'transcripts' && args[0] === 'recent' && !hasHelpFlag(args) && await (await import('../commands/transcripts.ts')).runDelegatedTranscriptsRecent(args.slice(1))",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": []
}
],
"thinClient": "refuse",
"thinClientRoutedSubcommands": []
},
"trust": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [
{
"condition": "command === 'trust' && await (await import('../commands/trust.ts')).maybeDelegateTrust(loadConfig(), args)",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": []
}
],
"thinClient": "refuse",
"thinClientRoutedSubcommands": []
},
"upgrade": {
"hasSwitchCase": false,
"phase": "pre-connect-own-engine",
"preConnectRules": [
{
"condition": "command === 'upgrade'",
"connectsEngine": true,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": [
"upgrade"
]
}
],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"waiting": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [],
"thinClient": "none",
"thinClientRoutedSubcommands": []
},
"wakeshift": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [],
"thinClient": "route-then-refuse",
"thinClientRoutedSubcommands": [
"watch",
"accept-terms"
]
},
"watch": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [],
"thinClient": "refuse",
"thinClientRoutedSubcommands": []
},
"whoknows": {
"hasSwitchCase": true,
"phase": "post-connect",
"preConnectRules": [
{
"condition": "(command === 'salience' || command === 'anomalies' || command === 'graph-query' || command === 'whoknows' || command === 'founder') && isThinClient(loadConfig())",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": true,
"unconditionalFor": []
}
],
"thinClient": "none",
"thinClientRoutedSubcommands": []
}
},
"mainRules": [
{
"commands": [
"serve"
],
"condition": "command === 'serve'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": false,
"thinClientCheck": false,
"unconditionalFor": [
"serve"
]
},
{
"commands": [
"--help",
"-h"
],
"condition": "!command || command === '--help' || command === '-h'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": [
"--help",
"-h"
]
},
{
"commands": [
"--version",
"version"
],
"condition": "command === '--version' || command === 'version'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": [
"--version",
"version"
]
},
{
"commands": [
"--tools-json"
],
"condition": "command === '--tools-json'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": [
"--tools-json"
]
},
{
"commands": [
"extract"
],
"condition": "command === 'extract' && !args.some(arg => arg === '--help' || arg === '-h') && args.some(arg => ['--repair-attendance', '--apply-preview', '--backup-verified', '--confirm', '--checkpoint'].includes(arg.split('=')[0]))",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": []
},
{
"commands": [
"ask"
],
"condition": "command === 'ask'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": false,
"thinClientCheck": false,
"unconditionalFor": [
"ask"
]
},
{
"commands": [],
"condition": "cliOpts.room !== undefined && !helpRequested && (CLI_ONLY.has(command) || !(cliOps.has(command) || cliAliases.has(command)))",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": false,
"thinClientCheck": false,
"unconditionalFor": []
},
{
"commands": [],
"condition": "!['serve', 'jobs', 'autopilot'].includes(command)",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": false,
"thinClientCheck": false,
"unconditionalFor": []
},
{
"commands": [
"search"
],
"condition": "command === 'search' && ['modes', 'stats', 'tune', 'diagnose'].includes(subArgs[0] ?? '')",
"connectsEngine": true,
"refusesThinClient": true,
"routesThinClient": true,
"terminates": true,
"thinClientCheck": true,
"unconditionalFor": []
},
{
"commands": [
"sources"
],
"condition": "command === 'sources' && subArgs[0] === 'inspect'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": []
},
{
"commands": [
"sources"
],
"condition": "command === 'sources' && subArgs[0] === 'connect'",
"connectsEngine": true,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": []
},
{
"commands": [
"sources"
],
"condition": "command === 'sources' && subArgs[0] === 'demo' && subArgs[1] === 'company-brain'",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": []
},
{
"commands": [
"sources"
],
"condition": "command === 'sources' && subArgs[0] === 'pull' && subArgs.includes('--path')",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": []
},
{
"commands": [],
"condition": "cliOpts.as === undefined && cliOpts.room === undefined && !enforcedClass && ['search', 'query', 'get', 'recall'].includes(command) && await (await import('./cli-socket-client.ts')).maybeServeFromCliSocket(command, subArgs)",
"connectsEngine": false,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": []
},
{
"commands": [],
"condition": "CLI_ONLY.has(command) && enforcedClass && !helpRequested && command !== 'errors' && command !== 'protocol'",
"connectsEngine": true,
"refusesThinClient": false,
"routesThinClient": false,
"terminates": true,
"thinClientCheck": false,
"unconditionalFor": []
}
],
"thinClientGuard": {
"condition": "THIN_CLIENT_REFUSED_COMMANDS.has(command) || command === 'cache' || command === 'quarantine'",
"members": [
"cache",
"quarantine"
]
},
"thinClientRoutes": {
"beliefs": [
"changes"
],
"cache": [
"stats"
],
"config": [],
"jobs": [
"stats"
],
"quarantine": [
"list"
],
"search": [
"modes",
"stats",
"tune"
],
"serve": [],
"sources": [
"shared-skills"
],
"takes": [
"list",
"search",
"scorecard",
"calibration",
"add",
"update",
"resolve",
"supersede"
],
"wakeshift": [
"watch",
"accept-terms"
]
}
},
"normalizer": "cli-ast-v1"
}