Skip to content

Every Bot is told who the person is, so it calls them you - #2887

Queued
davidmckayv wants to merge 1 commit into
mainfrom
person-you
Queued

davidmckayv wants to merge 1 commit into
mainfrom
person-you

Conversation

@davidmckayv

@davidmckayv davidmckayv commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

What changed and why

Asked to summarise a meeting the person had been in, a Bot wrote about them in the third person, by their own name ("Heidi will review..."). Every Bot is told to call the person "you", and nothing told it who the person was.

  • shared/bot-prompt.ts: personGuidance(name, email) says who the person is, to call them "you" and "your" where a document, meeting or message clearly involves them as a speaker, sender, owner or assignee, and to say "{name}, who I take to be you" where it might be someone else with the same name. With a name alone (OpenBot Desktop) it names them alone; with neither it is empty. A tag in a name is escaped so it cannot open a section of the prompt.
  • PERSON_CONTEXT ("OpenBot person"): the AG-UI context entry it goes in. Every Bot is sent the same entry, OpenBot's own included, so a connected Bot gets exactly what a built-in one does, over plain AG-UI.
  • agent-mastra: the Mastra harness drops OpenBot ... context entries it does not know, so it now puts OpenBot person in front of its model, after OpenBot's guidance and before the caller's context.
  • docs/coworkers.md: "What your agent is sent" describes the new entry.

The AG-UI shape is unchanged: one more context entry, and an agent that ignores it behaves as before.

Red/green

  • shared/bot-prompt.test.ts, personGuidance: name and address, name alone, address alone, neither (empty), and a tag in a name. New function, so red before (not exported) and green after.
  • agent-mastra/src/mastra/index.test.ts, "tells the model who the person is": red before (the entry was dropped with every other OpenBot ... entry), green after.
  • The server half has the end-to-end regression test: a built-in Bot and a stock AG-UI agent built for the same person both receive the person line. Red on main (the stock agent received no entry at all), green with this change.

Tested

  • bun test shared/bot-prompt.test.ts, bun test agent-mastra/src/mastra/index.test.ts.
  • End to end in Chromium and WebKit: a person's conversation with a stock AG-UI agent, whose received context carries OpenBot person naming the person. No screen changes in this PR, so there are no before and after screenshots.

Changelog

Bots.

  • Every Bot is told who you are, by name and email address, so a summary of your own meeting says "you" rather than your name. A connected Bot gets it as the AG-UI context entry OpenBot person, the same entry OpenBot's own Bots get.

Bots are told to call the person "you", and nothing told them who the person was. Summarising a meeting the person had been in, a Bot wrote about them by name, in the third person.

personGuidance(name, email) says who they are, to say "you" where a document, meeting or message clearly involves them, and to say who it takes them to be where it might be someone else with the same name. It goes to every Bot alike as the AG-UI context entry "OpenBot person" (PERSON_CONTEXT). The Mastra harness now puts that entry in front of its model, and the connected-agent docs describe it.
@davidmckayv
davidmckayv marked this pull request as ready for review December 3, 2026 18:42
@davidmckayv
davidmckayv added this pull request to the merge queue Dec 3, 2026
Any commits made after this event will not be merged.

This branch has not been deployed

No deployments
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