Skip to content

Add ResolveMediaTool — Haiku sub-agent for cheap media identification#129

Open
davidharting wants to merge 1 commit into
mainfrom
feature/resolve-media-agent
Open

Add ResolveMediaTool — Haiku sub-agent for cheap media identification#129
davidharting wants to merge 1 commit into
mainfrom
feature/resolve-media-agent

Conversation

@davidharting
Copy link
Copy Markdown
Owner

What changed

Extracts web-search-based media identification from MediaTrackingAgent into a new ResolveMediaTool that runs on Claude Haiku. MediaTrackingAgent no longer uses WebSearch directly.

  • ResolveMediaTool accepts a raw media reference and returns a JSON array of matches (title, year, creator, media_type)
  • Handles ambiguity by returning multiple results when more than one plausible match exists; MediaTrackingAgent presents options to the user in that case

Why

Web search in the main Sonnet agent is expensive. Media identification is a narrow, well-defined task (web search + structured output) that Haiku handles well. This cuts token costs ~1/3 per /track interaction.


Generated by Claude Code

…#128)

Extracts web-search-based media identification from the main MediaTrackingAgent
into a dedicated ResolveMediaTool that runs on claude-haiku-4-5-20251001.
MediaTrackingAgent no longer uses WebSearch directly, reducing token costs ~1/3
per /track interaction.

ResolveMediaTool accepts a raw media reference and returns a JSON array of
matches (title, year, creator, media_type), handling ambiguity by returning
multiple results when more than one plausible match exists.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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