loading…
Search for a command to run...
loading…
A cognitive scripting language for structured reasoning with LLMs. 12 built-in operations (survey, ground, assert, doubt, contrast, synthesize, etc.) for guidin
A cognitive scripting language for structured reasoning with LLMs. 12 built-in operations (survey, ground, assert, doubt, contrast, synthesize, etc.) for guiding AI through dialectical analysis, impact assessment, and other thinking patterns.
A cognitive scripting language for structured reasoning with LLMs
ZS provides formal constructs for describing reasoning processes — not as rigid instructions, but as composable cognitive operations with variables, control flow, and result formatting.
Think of it as SQL for thinking: you define what cognitive steps to take, the LLM decides how to execute them.
Scripts are executed by an LLM as interpreter: the model reads a .zobr file, executes operations step by step, tracks variables, follows control flow, and produces structured output.
task: "Evaluate risks of AI in education"
risks = survey("main risks of AI in education", count: 4)
evidence = for r in risks {
concrete = ground(r, extract: [examples, studies])
yield { risk: r, evidence: concrete }
}
overview = synthesize(evidence, method: "rank by severity")
result = conclude {
top_risks: list
most_critical: string
recommendation: string
confidence: low | medium | high
}
Operations are organized into five categories:
Discovery — explore and extract
| Operation | Description |
|---|---|
survey(topic, count?) |
Explore a topic and identify key elements — positions, factors, perspectives |
ground(claim, extract?) |
Connect a claim to concrete evidence, facts, or experience |
Argument — reason and challenge
| Operation | Description |
|---|---|
assert(thesis, based_on?) |
State a position with reasoning |
doubt(target) |
Problematize a claim — find weaknesses, hidden assumptions, edge cases |
contrast(target, with?) |
Find or construct the strongest opposing position or counterexample |
analogy(target, from?) |
Transfer understanding from another domain to reveal hidden structure |
Synthesis — combine and transform
| Operation | Description |
|---|---|
synthesize(sources, method?) |
Combine multiple findings into emergent insight (not just a summary) |
reframe(target, lens?) |
Reformulate a problem in different terms, change the analytical lens |
Meta — reflect and steer
| Operation | Description |
|---|---|
assess(scale?) |
Reflective pause — evaluate the current state of reasoning (open/converging/stuck) |
pivot(reason) |
Explicitly change reasoning strategy when the current approach is insufficient |
scope(narrow|wide) |
Control analytical zoom — from specific mechanisms to systemic connections |
Output
| Operation | Description |
|---|---|
conclude { ... } |
Define the structure and format of the final result |
Plus: variables, for/if/loop control flow, user-defined functions (define), yield, import, @last/@N references.
zobr-check — Static ValidatorThe package includes a CLI tool for static validation of .zobr scripts:
# Install from source
git clone https://github.com/docxi-org/zobr-script.git
cd zobr-script
npm install && npm run build
# Validate a script
node dist/cli.js script.zobr
The validator checks:
In the current version, a ZS script is executed by an LLM as interpreter:
.zobr script as the taskconclude blockConnect ZS to Claude, Claude Desktop, or any MCP client — no installation needed.
MCP endpoint: https://zobr-script-mcp.docxi-next.workers.dev/mcp
In claude.ai: Settings → Connectors → Add custom connector → paste the URL above.
Tools provided:
zs_execute — feed a script, get full spec + interpreter context injected automaticallyzs_validate — full PEG parser + semantic validation (same as zobr-check)zs_operations — quick reference for all 12 operationsAlso available on Smithery.
Tested with three Claude models across 5 tasks of increasing complexity:
| Model | Composite Score | Structural Compliance | Content Quality | Generation Quality |
|---|---|---|---|---|
| Claude Opus 4.6 | 9.4 / 10 | 9.8 | 9.4 | 9.0 |
| Claude Sonnet 4.6 | 9.3 / 10 | 9.7 | 9.3 | 9.0 |
| Claude Haiku 4.5 | 7.9 / 10 | 9.3 | 7.0 | 7.5 |
Key findings:
Full results: benchmark report ・ infographic ・ на русском ・ инфографика
.zobr script, apply it to any new input.zobr artifactsZS operates at a different level: it formalizes cognitive operations themselves as first-class language constructs.
Spec v0.1. Benchmark complete (3 models × 5 tasks). Static validator shipped.
Apache License 2.0 — see LICENSE
Part of the Black Zobr ecosystem.
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"zs-zobr-script": {
"command": "npx",
"args": []
}
}
}