server

Start and interact with the CodeLogician reasoning server. The server provides a persistent service for code analysis and formal verification, supporting multi-agent workflows and live model updates.

Available in: codelogician CLI only

codelogician server [OPTIONS] COMMAND [ARGS]

Global Server Options

OptionDefaultDescription
--base-urlhttp://localhost:8000Base URL for the server. Also set via CODELOGICIAN_SERVER_URL env var
--timeout30.0HTTP timeout in seconds
--json / --no-json--jsonPretty-print JSON output

Subcommands

CommandDescription
startStart the reasoning server
metamodelQuery the metamodel (combined formal model)
modelManage individual models
sketchesManage sketches (draft formalizations)
strategyManage formalization strategies

server start

Start the CodeLogician reasoning server for a project directory.

codelogician server start [OPTIONS] DIR

Arguments:

ArgumentDescription
DIRProject directory (required)

Options:

OptionDefaultDescription
--statePath to server state file
--clean / --no-clean--no-cleanDisregard existing strategy caches and start fresh
--configconfig/server_config.yamlPath to configuration file
--debug / --no-debug--no-debugEnable debug mode
--addrhttp://127.0.0.1:8000Server host and port

Example:

# Start server for a project
codelogician server start ~/src/my_project
 
# Start fresh on a custom port
codelogician server start --clean --addr http://127.0.0.1:9000 ~/src/my_project

server metamodel

Query the metamodel — the combined formal model built from all individual source models.

codelogician server metamodel COMMAND
CommandDescription
latestGet the latest metamodel JSON
summaryGet a summary of the metamodel
listList metamodel entries (filterable)
vgsList verification goals
decompsList decompositions
opaquesList opaque (unresolved) functions
cacheManage metamodel cache

server model

Manage individual source models tracked by the server.

codelogician server model COMMAND
CommandDescription
pathsList all model relative paths
getGet a model by index or path
freezeFreeze a model's IML code (prevent re-formalization)
unfreezeUnfreeze a model's IML code
cmdSubmit a CodeLogician agent command for a model

server sketches

Manage sketches — draft formalizations that can be iteratively refined.

codelogician server sketches COMMAND
CommandDescription
searchSearch sketches by query
listList all sketches
createCreate a new sketch
try-changeAttempt a change, optionally committing on success
changeApply a change to a sketch
rollbackRoll back to a previous sketch state
stateGet current sketch state

server strategy

Manage formalization strategies — configurations that control how source code is translated into IML.

codelogician server strategy COMMAND
CommandDescription
setcwsSet the current working strategy
cwsGet the current working strategy
listList all strategies
statesGet strategy states
createCreate a new strategy
deleteDelete a strategy
stateGet current strategy state
summaryGet strategy summary
configGet strategy configuration
config-setUpdate strategy configuration

  • tui — connect to the server with the terminal UI
  • multiagent — batch formalization mode (non-interactive)