Smith::Agent
Inherits Reference < Object
Constants
A model that keeps running into its output limit would otherwise cost without bound.
A stop hook that never goes green — make test on a red suite — would
otherwise keep the loop alive until MAX_TURNS.
Constructors
Instance methods
Where the context window goes, counted the way compaction counts it.
smith context renders this; compaction reads overhead_tokens off it.
One computation rather than two is what keeps the breakdown and the
compaction decision from disagreeing.
/clear: the conversation starts over. The calibration ratio goes back
to neutral with it — it was measured against a history that no longer
exists. The transcript log keeps its copy: it is append-only on purpose.
What compaction has done to this session so far. smith context reports
it; a session read back from disk has no such history to report.
Reported prompt tokens over estimated ones. Persisted with the session so the first turn after a resume is not blind about a 100k history.
Reported prompt tokens over estimated ones. Persisted with the session so the first turn after a resume is not blind about a 100k history.
Ends the run after the tool results of the current turn are recorded, without sending them back to the provider. A tool reaches this through whatever callback the CLI wired — plan mode uses it so an unapproved plan never slides into execution.
Writable because the mode switch rebuilds it mid-session (/plan, /normal).