Replace Tavily with Firecrawl for code agent web search#249
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Consolidates web search across both the coding agent (
assembly code) and live voice agent to use Firecrawl exclusively, removing the Tavily dependency.Changes
aai_cli/code_agent/web_search.py— the Tavily-based web search module is no longer neededaai_cli/code_agent/firecrawl_search.py— expanded docstring to reflect that both agents now share this single search toolaai_cli/commands/code/_exec.py— imports and usesfirecrawl_searchinstead ofweb_search; updated user-facing messaging to reference Firecrawl and its API keyaai_cli/commands/code/__init__.py— help text now references Firecrawl andFIRECRAWL_API_KEYaai_cli/code_agent/fetch_tool.py— comment updated to reference Firecrawl instead of Tavilytests/test_code_agent.pyandtests/test_code_command.pynow test againstfirecrawl_searchandFIRECRAWL_API_KEYtests/__snapshots__/test_snapshots_help_run.ambrreflects the new help textlangchain-tavily>=0.2.18removed frompyproject.tomlImplementation details
The change unifies web search behavior: both
assembly code(with--webflag) 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 whenFIRECRAWL_API_KEYis 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