feat(agent-tars): support flexible system prompt override#1151
Merged
Conversation
Align with tarko agent behavior where instructions can completely override the default system prompt instead of just appending.
✅ Deploy Preview for agent-tars-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Use layered approach where custom instructions come first but core system capabilities maintain higher priority, ensuring agent-tars functionality is preserved while allowing user customization.
User instructions should have higher priority than system defaults. Place user instructions after system prompt with explicit priority.
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
Improves AgentTARS system prompt handling with a layered approach that preserves core functionality while giving user instructions higher priority.
Problem: Original concatenation approach (
${systemPrompt}\n\n${options.instructions}) put user instructions at the end, making them less effective. Direct override would break agent-tars core capabilities.Solution: Layered prompt strategy where:
Before:
${systemPrompt}\n\n${options.instructions}- user instructions simply appendedAfter: System prompt first, then user instructions with explicit priority marker
This ensures user instructions can effectively override default behavior while maintaining agent-tars reliability.
Checklist