Skip to content

fix: improve pronoun resolution and congressional trade comparisons#59

Merged
agarg5 merged 1 commit intomainfrom
fix/followup-pronouns-congress
Feb 27, 2026
Merged

fix: improve pronoun resolution and congressional trade comparisons#59
agarg5 merged 1 commit intomainfrom
fix/followup-pronouns-congress

Conversation

@agarg5
Copy link
Owner

@agarg5 agarg5 commented Feb 27, 2026

Summary

  • Agent was confusing "her" (Pelosi) with other politicians in follow-up queries
  • Added explicit pronoun resolution guidance in system prompt
  • Added instructions to cross-reference congressional trades with user portfolio for comparison queries

Test plan

  • Ask "Show me Pelosi's trades" then "How does her portfolio compare to mine?" — should use both congressional_trades and portfolio_analysis tools

🤖 Generated with Claude Code

- Add explicit guidance for resolving "her"/"his" pronouns to the
  person discussed in the prior turn
- Add instructions for cross-referencing congressional trades with
  the user's portfolio when asked for comparisons

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@agarg5 agarg5 merged commit 6fd21dc into main Feb 27, 2026
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