@one-agent/reason
v0.0.1-beta.1
Published
Structured reasoning interface and CLI for ONE.
Maintainers
Readme
@one-agent/reason
Structured reasoning interface and CLI for ONE.
Within this repository's Re in Act implementation, @one-agent/reason implements the required reason() interface: a bounded local judgment step that turns prompt text plus a required JSON shape into structured output.
Relevant public reference:
In the public spec, reason() is the only required interface. @one-agent/reason is this repository's reference implementation of that core contract.
Model Configuration
reason auth configures the model used by the reason CLI and by reason() calls inside the Reason-able Action Space.
This is separate from one auth:
one authconfigures the mainoneagent modelreason authconfigures the model used byreason()
By default, reason auth writes ~/.config/one/reason.json.
Environment variables still override file config. Common overrides include:
ONE_REASON_PROVIDERONE_REASON_MODELONE_REASON_OPENAI_API_KEYONE_REASON_OPENAI_BASE_URL
Example:
# Configure the model/provider used by reason()
reason auth
# Or use the namespaced binary
one-reason authUsage
cat build.log | reason --prompt "goal: detect failures" - '{"failed":false,"reason":""}'The structure argument is required and must be valid JSON.
