Skip to content

dev: adding preemptiveness to background agents#132

Open
Karthik-Ragunath wants to merge 3 commits intocartesia-ai:mainfrom
Karthik-Ragunath:dev/karthik/background_agent
Open

dev: adding preemptiveness to background agents#132
Karthik-Ragunath wants to merge 3 commits intocartesia-ai:mainfrom
Karthik-Ragunath:dev/karthik/background_agent

Conversation

@Karthik-Ragunath
Copy link

@Karthik-Ragunath Karthik-Ragunath commented Feb 8, 2026

What does this PR do?

Adding preemptiveness to background agents.

Type of change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation
  • Other: ___________

Testing

How did you test this?
With playgrounds

Checklist

  • I have read the contributing guidelines
  • I have added tests that prove my fix is effective or that my feature works
  • I have formatted my code with make format

Note

Low Risk
Only updates the example agent’s system prompt text; no runtime logic changes. Risk is limited to behavior shifts from new prompt instructions when using the example.

Overview
Updates the examples/chat_supervisor system prompt to make background ask_supervisor responses preemptive: when a supervisor result arrives, the agent must surface it prominently even if the conversation moved on, optionally answering the newest user message first and then returning to the earlier question.

Also tightens guidance to never ignore a supervisor result and to continue synthesizing responses into concise, voice-friendly explanations.

Written by Cursor Bugbot for commit 91649da. This will update automatically on new commits. Configure here.

@Karthik-Ragunath Karthik-Ragunath marked this pull request as ready for review February 8, 2026 20:45
@sauhardjain
Copy link
Collaborator

Thanks for your contribution! It would be awesome if you could add in how you validated the prompting changes (a before/after comparison or similar).

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.

2 participants