Skip to content

Comments

feat(agent-tars): support flexible system prompt override#1151

Merged
ulivz merged 3 commits intomainfrom
feat/agent-tars-system-prompt
Aug 16, 2025
Merged

feat(agent-tars): support flexible system prompt override#1151
ulivz merged 3 commits intomainfrom
feat/agent-tars-system-prompt

Conversation

@ulivz
Copy link
Member

@ulivz ulivz commented Aug 16, 2025

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:

  • Core system capabilities provide the foundation (browser rules, file handling, etc.)
  • User instructions are placed after with explicit higher priority
  • Preserves all agent-tars functionality while allowing effective customization

Before: ${systemPrompt}\n\n${options.instructions} - user instructions simply appended
After: 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

  • Added or updated necessary tests (Optional).
  • Updated documentation to align with changes (Optional).
  • Verified no breaking changes, or prepared solutions for any occurring breaking changes (Optional).
  • My change does not involve the above items.

Align with tarko agent behavior where instructions can completely
override the default system prompt instead of just appending.
@netlify
Copy link

netlify bot commented Aug 16, 2025

Deploy Preview for agent-tars-docs ready!

Name Link
🔨 Latest commit 994e888
🔍 Latest deploy log https://app.netlify.com/projects/agent-tars-docs/deploys/68a0b348606bad00087a3d29
😎 Deploy Preview https://deploy-preview-1151--agent-tars-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

ulivz added 2 commits August 17, 2025 00:33
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.
@ulivz ulivz merged commit d975c30 into main Aug 16, 2025
10 checks passed
@ulivz ulivz deleted the feat/agent-tars-system-prompt branch August 16, 2025 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant