ollie/tools/reasoning_think

28 lines
941 B
Bash
Executable File

#!/usr/bin/env bash
# ollie:parallel read
# args_json: {"type":"object","required":["thought"],"properties":{"thought":{"type":"string","description":"Your reasoning"}}}
# ollie:prompt
# ## reasoning_think
#
# Scratchpad for externalizing reasoning. Recorded in history but not shown to the user.
#
# **Trigger condition**: before acting on non-trivial tasks — complex problems, multi-step logic, decisions with trade-offs. Skip for simple single-step tasks.
#
# **Calling convention**:
# ```
# reasoning_think(thought="your reasoning here")
# ```
#
# **Returns**: nothing. The value is in writing the thought.
#
# **Constraints**:
# - One call per decision point.
# - Never call reasoning_think more than once before taking an action.
# - Keep under 200 words.
# ollie:end
source "${OLLIE_TOOLS_PATH:-$(dirname "$0")}/_lib/args.sh"
# Just consume the input; the value is in writing it to history
arg_require "thought" > /dev/null
exit 0