Skip to content

Replace Tavily with Firecrawl for code agent web search#249

Merged
alexkroman merged 1 commit into
mainfrom
claude/quirky-planck-v4udgx
Jun 18, 2026
Merged

Replace Tavily with Firecrawl for code agent web search#249
alexkroman merged 1 commit into
mainfrom
claude/quirky-planck-v4udgx

Conversation

@alexkroman

Copy link
Copy Markdown
Collaborator

Consolidates web search across both the coding agent (assembly code) and live voice agent to use Firecrawl exclusively, removing the Tavily dependency.

Changes

  • Removed aai_cli/code_agent/web_search.py — the Tavily-based web search module is no longer needed
  • Updated aai_cli/code_agent/firecrawl_search.py — expanded docstring to reflect that both agents now share this single search tool
  • Updated aai_cli/commands/code/_exec.py — imports and uses firecrawl_search instead of web_search; updated user-facing messaging to reference Firecrawl and its API key
  • Updated aai_cli/commands/code/__init__.py — help text now references Firecrawl and FIRECRAWL_API_KEY
  • Updated aai_cli/code_agent/fetch_tool.py — comment updated to reference Firecrawl instead of Tavily
  • Updated test filestests/test_code_agent.py and tests/test_code_command.py now test against firecrawl_search and FIRECRAWL_API_KEY
  • Updated help snapshottests/__snapshots__/test_snapshots_help_run.ambr reflects the new help text
  • Removed dependencylangchain-tavily>=0.2.18 removed from pyproject.toml

Implementation details

The change unifies web search behavior: both assembly code (with --web flag) and the live voice agent now use Firecrawl's official LangChain integration. The tool remains optional and read-only (not gated behind approval), enabled only when FIRECRAWL_API_KEY is set in the environment. User-facing error messages now direct users to https://firecrawl.dev for API key setup.

https://claude.ai/code/session_019AiP3DXiv1c9QJh4Sa6fFZ

The coding agent (`assembly code`) now shares the same Firecrawl-backed
web search tool as the live voice agent, gated on FIRECRAWL_API_KEY. The
Tavily integration is removed: delete code_agent/web_search.py, drop the
langchain-tavily dependency, and point --web at FIRECRAWL_API_KEY.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019AiP3DXiv1c9QJh4Sa6fFZ
@alexkroman alexkroman added this pull request to the merge queue Jun 18, 2026
Merged via the queue into main with commit 070c405 Jun 18, 2026
20 checks passed
@alexkroman alexkroman deleted the claude/quirky-planck-v4udgx branch June 18, 2026 21:01
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