Expand description
The model call of a Dreams pass (docs/specs/SPEC_DREAMS_BACKGROUND_MEMORY_ORGANIZING_2026_11_27.md §2.3, §8): the
provider’s CLI run once, with no tools, on Dreams’ own system prompt, on the account the dreamed agent is assigned
to. It is not the ambient call of ambient::cli, which is Haiku-only, answers within 45 seconds and takes its
sign-in from an open pane: a pass reads up to 100k tokens and takes about a minute, and the agent is usually stopped.
What the call does so that it is only the pass’s text and nothing else:
- Dreams’ own prompt only.
--system-promptreplaces the CLI’s default prompt, and the two switchesCLAUDE_CODE_DISABLE_CLAUDE_MDSandCLAUDE_CODE_DISABLE_AUTO_MEMORYkeep the CLI from reading any project instruction or auto-memory file (the bare CLI otherwise adds about 29k tokens of its own to every call). - No tools, one turn, nothing saved, and a scratch working folder of its own, so the call never lands in an agent’s own history.
- The agent’s own account.
CLAUDE_CONFIG_DIRis the config folder of the account the agent is assigned to; with none recorded the machine’s default sign-in is used. A sign-in that has ended, or an account at its usage limit, skips the pass (CallFailed::skip): it never borrows another account, and a later trigger tries again. - Cost is plan quota, not dollars: the answer carries the tokens (cache writes and reads counted as input) and no price.
Structs§
- Route
- Where the call runs and on whom.
Constants§
- CALL_
TIMEOUT - The most a call may run, spawn to exit: a pass of 100k tokens took 40 to 53 seconds in the lab.
- DEFAULT_
MODEL - The model a pass runs on unless a setting names another (the lab’s evidence so far).
- SYSTEM_
PROMPT - The CLI’s system prompt for a pass. The pass’s own prompt (
dream_prompt) carries the task and the schema.
Functions§
- account_
unusable - Why a failed call means the account cannot be used, or
Nonefor any other failure. - args
- The CLI’s arguments: the prompt itself goes in on stdin.
- envs
- The environment the call adds to the CLI’s own.
- invoke
- Run the CLI once on
prompt. - parse
- The answer in the CLI’s
--output-format jsonresult.