The Claude model for a helper
helperSelects a Leanfare model for a Claude Code subagent based on plan part or task type, then records token usage and outcome when the subagent ends.
Instructions
For Leanfare's leanfare-level mod and Claude Code's hook, not for a chat: when a Claude app is about to start a helper (a subagent), the Claude model Leanfare picks for it, by the plan part it is for or else its kind of work, as Claude's Agent tool names models (haiku, sonnet, opus, fable). With done, what a helper used once it ended; with turn, the main model's own turn. Numbers only, never words.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| done | No | A helper's end: id (from the pick), model (the id that ran), input, cached and output tokens, seconds, reason (answer, aborted, refusal, error). | |
| task | No | The helper's prompt, as the Agent tool got it. | |
| turn | No | The main model's own turn: model, input, cached and output tokens, and effort if known. | |
| agent | No | The helper's agent type (general-purpose, Explore, Plan, or a plugin's). | |
| asked | No | The model the Agent call named, if it named one. | |
| session | No | The session or chat it belongs to, if known. | |
| description | No | The Agent tool's short description of the task. |