Skip to content

phase 7.3: two sites per search, picks like a friend - #99

Merged
dhananjay6561 merged 5 commits into
mainfrom
tone-two-sites
Nov 29, 2026
Merged

dhananjay6561 merged 5 commits into
mainfrom
tone-two-sites

Conversation

@dhananjay6561

Copy link
Copy Markdown
Owner

Why

The live run after #98 picked earbuds correctly, but:

  • it read like a spec line ("₹2,999, 50 dB ANC, Bluetooth 6.1…"), not a friend;
  • it used one site;
  • it told Zomato's "₹100 for one" (a meal for one) as the dish's price.

A comparison needs two sources, and the model would not open a second page on its own.

What changed

  • Two sites per search. A search reads the two most relevant results from different sites, trying up to four pages.
  • Per-tool result size. Tool.ResultTokens is new, and web_search's result may take 1,100 tokens.
  • Prices keep their meaning. Page shrinking keeps at most 8 lines and each price with what it is for, in the page's words ("₹100 for one", "starting at", "per month").
  • Picks like a friend. The search guide asks for the pick and why in a few words, the runner-up if the pages differ, two or three things that matter, never a list of specs, and a price said for what it is.
  • Clean citations. Spaces left where a citation was are removed, including the narrow ones gpt-oss puts before its markers.

Testing, for real, before merging

"3000 ke andar best earbuds kaunse hain, ek pick bata" read Gadgetveda and Geekman, in 17 seconds:

Realme Buds T500 Pro le le – ₹2,999 mein 50 dB ANC, 12.4 mm driver aur 56 ghante total playback, fast charge se 10 ghante bas 10 min mein mil jaata hai. Overall sound, battery aur ANC ka balance sabse achha hai

Agar thoda sasta aur balanced sound chahiye toh CMF Buds 2 Plus bhi solid choice hai – ₹1,729 mein decent bass aur LDAC support

Both links followed.

"hsr mein 150 ke andar dal makhani kahan se mangau" read Zomato and Zepto, in 8 seconds. It gave four places with their delivery times and a ₹129 ready-to-eat option, with both links, and no stray spaces.

Also:

  • unit tests: two sites read and a second page from the same site skipped; no space left where a citation was;
  • make lint-core (0 issues) and go test -race ./... pass.

Docs

Decision 112, README, ARCHITECTURE.

Signed-off-by: dhananjay6561 <dhananjayaggarwal6561@gmail.com>
Signed-off-by: dhananjay6561 <dhananjayaggarwal6561@gmail.com>
Signed-off-by: dhananjay6561 <dhananjayaggarwal6561@gmail.com>
Signed-off-by: dhananjay6561 <dhananjayaggarwal6561@gmail.com>
Signed-off-by: dhananjay6561 <dhananjayaggarwal6561@gmail.com>
Copilot AI balanced review requested due to automatic review settings November 29, 2026 10:14

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@dhananjay6561
dhananjay6561 merged commit 5f8d10f into main Nov 29, 2026
4 of 6 checks passed
@dhananjay6561
dhananjay6561 deleted the tone-two-sites branch November 29, 2026 10:14
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