Hand a task to a cheaper model
delegateHands reading, summarizing, searching, or reviewing work to a cheaper model through Leanfare, keeping large files and logs out of your context and returning a short answer with a cost receipt.
Instructions
Hand a piece of work to a cheaper model through Leanfare, to save your own context and usage. Best for work that reads a lot and answers briefly: search or summarize big files, logs or many documents, review a file, draft a section. Name the files in files: Leanfare reads them itself, so their text never enters your context. Leanfare picks the cheapest model the user ticked that rates well enough for the kind and effort, and returns a short answer with a receipt (the model, the cost, the tokens kept out of your context). Every high effort answer, and a sample of the others, is checked by a stronger model, blind and from another company when one can take it; a failed check is asked again one tier up. One that takes more than about 40 seconds answers with an id instead and keeps working: call delegate again with only that id to get the answer. Costs count toward the user's Leanfare budget.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The id an earlier delegate answered with while it was still working: give only this to get that answer. | |
| kind | No | read: find, pull out or summarize from the files. write: draft text or code. reason: work something out (a bug's cause, a plan, a proof). Leave it out to let Leanfare guess. | |
| task | No | What to do, written for a model that has not seen this conversation: the goal, what to look for, and the form of answer you want (for example: a list of file:line, one line each). | |
| check | No | auto (the default) has a stronger model check every high effort answer, 1 in 4 medium ones and 1 in 10 low ones. | |
| files | No | Text files for Leanfare to read and hand over with the task: full paths, ~/ paths, or paths relative to folder. At most 50 files, 2 MB each, 4 MB in all. Files that hold secrets (.env files, private keys, credentials) are refused. | |
| level | No | The Leanfare level for this chat or session, as the level tool or Leanfare's prompt line gave it. Leave it out when none was given. | |
| speed | No | At the same quality: "cheapest" (however long it takes), "balanced" (time and cost weighed alike), "fastest" (whatever it costs), or a number of seconds to answer within, like "30". Default: the user's choice in Leanfare. | |
| effort | No | How good the model must be: low takes the cheapest rated within 80 points of the best model the user ticked, medium within 40, high within 15. Also the thinking effort for models that think. Default medium. | |
| folder | No | The folder relative paths start from. By default, the folder the MCP client started Leanfare in (in Claude Code, the project). | |
| private | No | true keeps this task on the user's computer: only models there (Ollama) take it, and its check too. Use it for anything sensitive or personal, or when the user asks. | |
| max_tokens | No | The longest answer to allow, in tokens (default 8,192). | |
| your_model | No | The model you run on, as your own instructions name it (for example claude-opus-5-5). Leanfare names it for the work that stays with you, and the report shows it as the prompt's main model. | |
| your_effort | No | The thinking effort you run at, when you know it. The report shows it with your model. |