feat: add consultant feature for asking a configured model mid-session
Adds a new 'consult' tool that makes single tool-less calls to a configured consultant model. The feature includes: - Consult backend (consult.rs) with permission checks - Call limit (default 5 per session) tracked in State - Three nudge triggers: before exit_plan, after edits, after 3 failed tools - Side-panel card showing consultant status and call count - Config keys: consultant = "<model>" to enable; consultant_max_calls for limit - All nudges are always on; disable by unsetting the consultant config The consultant model sees the question and context (passed by itself since the tool has no context visibility). Token usage counts toward subagent quotas.
This commit is contained in:
8 files changed
+418
-4
No files matched your search
@@ -12,7 +12,9 @@
|
||||
# subagent_max_turns = 40 # turn limit per subagent (an agent file's max_turns wins)
|
||||
# subagent_max_tokens = 500000 # stop a subagent that spends more tokens than this; default: no limit
|
||||
# subagent_timeout_secs = 600 # stop a subagent run after this long; default: no limit
|
||||
# remember_model = true # reuse the last model picked with /model or /provider
|
||||
# consultant = "claude-fable-5-2" # stronger model behind the `consult` tool (off when unset; each call asks first)
|
||||
# consultant_max_calls = 5 # calls allowed per session (resets on /new)
|
||||
# remember_model = true # reuse the last model picked with /model or /provider
|
||||
# compact_at = 900000 # auto-compact at this many tokens; default: 90% of the context window
|
||||
# max_tokens = 16384
|
||||
# permissions = "ask" # ask | auto (refuse dangerous calls, run safe ones) | yolo (nothing asks)
|
||||
|
||||
Reference in new issue
Block a user