sorkit
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| NOTIFY_EMAIL | No | Email address to notify when a layer completes (requires sendmail configured). | |
| SLACK_WEBHOOK_URL | No | Slack webhook URL used to send notifications when a layer completes. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Surface-Oracle-Ratchet server for autonomous code optimization. Use sor_init to set up a project, then sor_ratchet to iterate.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| logging | {} |
| prompts | {
"listChanged": true
} |
| resources | {
"subscribe": false,
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| sor_initA | Initialize SOR in a project directory. Call with no config to get a template with defaults and descriptions. Call with a filled config dict to save sor.yaml and generate all artifacts (CLAUDE.md, experiment-loop skill, results.tsv). |
| sor_add_layerC | Add a new layer to an existing SOR config. |
| sor_run_oracleB | Run the oracle for a layer without ratcheting (no git commit/reset). Returns the test result: COMPOSITE score for scored layers, PASS/FAIL otherwise. Useful for checking current state before making changes. |
| sor_ratchetA | Run one ratchet iteration: oracle -> compare -> git commit/reset -> check stops. This is the core tool for the experiment loop. Call it after making changes to the mutation surface. It will:
Returns one of:
|
| sor_statusB | Get current progress for one or all layers. Shows: attempt count, best score, keeps, last outcome, and proximity to stopping conditions. |
| sor_resultsA | Query experiment results history. Returns the last N entries from results.tsv, optionally filtered by layer. |
| sor_auditB | Generate a comprehensive audit report for a layer. Includes: summary stats, score progression, convergence analysis, improvement rate, estimated iterations to target, and hypothesis breakdown. |
| sor_score_historyB | Get the score progression for a scored layer. Shows each attempt with its score, running best, outcome, and hypothesis. Useful for understanding the optimization trajectory. |
| sor_hypothesesB | Analyze which hypotheses worked and which didn't for a layer. Groups experiments by hypothesis and shows: successful (kept), no improvement (discarded), and failed. Includes keep rate. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 9 tools
The core actions (sor_ratchet vs sor_run_oracle vs sor_init, sor_add_layer) are clearly distinct, but five read-only reporting tools (sor_results, sor_score_history, sor_status, sor_audit, sor_hypotheses) all derive from results.tsv and overlap heavily. An agent may struggle to pick between sor_results and sor_score_history or between sor_audit and sor_hypotheses for a given question.
All nine tools use a consistent 'sor_' prefix with snake_case verb/noun structure (sor_run_oracle, sor_add_layer, sor_score_history). No mixed conventions or camelCase deviations. Highly predictable and readable.
Nine tools is well within the ideal 3-15 range and each maps to a meaningful phase of the experiment loop (init, configure, iterate, inspect). No obvious filler tools beyond the reporting redundancy.
The full loop is covered: initialization, layer addition, ratcheting, oracle checks, and rich result reporting (status, history, audit, hypotheses). Minor gaps exist—no tool to remove/update a layer or modify config, and no explicit config-view operation—but core workflows are fully supported.