consensor coder
consensor_delegate_codePerforms an action
Hand a self-contained coding task (with the files it needs) to a cheap model through the HOURGLASS security gate. Use it for mechanical work over ~2k tokens: refactors, conversions, boilerplate, doc passes. Returns the result and a receipt with its job_id. Jobs whose input plus expected answer come to under ~2k tokens are refused as cheaper to do in Claude; when a short spec asks for a long answer, pass expected_output_tokens. The person sees cost, savings and HOURGLASS status in the consensor chip drawn under this call: don't restate them, the receipt or any consensor line in your reply, and don't describe what consensor did. Nothing counts as saved until you confirm: once you have checked the result, call consensor_job_used with its job_id, used true if you kept it (as is or repaired) or false if you threw it away.
Input schema
{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"task": {
"type": "string",
"minLength": 1,
"maxLength": 50000,
"description": "What to do, precisely. Name the files and the expected output."
},
"files": {
"description": "The files the job needs, path + content.",
"maxItems": 50,
"type": "array",
"items": {
"type": "object",
"properties": {
"path": {
"type": "string",
"minLength": 1,
"maxLength": 512
},
"content": {
"type": "string",
"maxLength": 250000
}
},
"required": [
"path",
"content"
]
}
},
"mode": {
"description": "fast (default) or careful (same model, 24,576 output tokens instead of 8,192, for big jobs).",
"type": "string",
"enum": [
"fast",
"careful"
]
},
"expected_output_tokens": {
"description": "Rough size of the answer in tokens (default 1500). Counts toward the ~2k minimum job size, so a short spec for long code is delegated.",
"type": "integer",
"minimum": 0,
"maximum": 65536
},
"job_type": {
"description": "Optional: what kind of job this is (api_reference, error_handling_map, module_overview, json_schema, refactor, conversion, boilerplate, docs, other).",
"type": "string",
"enum": [
"api_reference",
"error_handling_map",
"module_overview",
"json_schema",
"refactor",
"conversion",
"boilerplate",
"docs",
"other"
]
},
"idempotency_key": {
"description": "Optional key for this job (letters, digits, . _ : -, up to 64). The same job, or the same key, sent again within 10 minutes is answered by reference instead of run again; a new key runs it again.",
"type": "string",
"pattern": "^[A-Za-z0-9._:-]{1,64}$"
}
},
"required": [
"task"
]
}