feat: inject dynamic model identity into system prompt - #570
Open
fsistemas wants to merge 1 commit into
Open
Conversation
Add provider_name, model, and reasoning fields to BuildSystemPromptOptions so Tau's system prompt includes the agent's actual runtime identity. The system prompt now contains 'You are running as: provider: X, model: Y, reasoning: Z.' when identity fields are set, enabling agents to report their identity without parsing session metadata. Both call sites (session load and reload) pass identity through. reasoning_effort_for_level maps Tau's thinking level (off/minimal/...) to the standard reasoning effort vocabulary (none/minimal/...). Fixes: FAI-299
Contributor
|
Tau generally follows the lead of Pi and Pi explicitly does not include these details in the system prompt. Pi's system prompt contains no model, provider, reasoning level, date, or env section at all, following the minimalist goal of the project. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add provider_name, model, and reasoning fields to BuildSystemPromptOptions so Tau's system prompt includes the agent's actual runtime identity.
Changes
Why
Previously, agents couldn't reliably know their own provider/model/reasoning without parsing session metadata. The old approach of ~/.tau/APPEND_SYSTEM.md with static text couldn't use template variables. This code-level fix injects the identity at build time so every agent session starts with this information baked into the system prompt.
Fixes: #569