Search
Specs: workspace search, web.
Blitz keeps an index of each workspace so you can search everything in it at once: its files (as git sees them; blocked paths such as .env are never indexed), the text of its PDFs and notebooks, its chats, and its notes and approved plans. Results are ranked, one per item, with the passage that matched and where it is.
- Desktop app: type in the search box at the top (⌘K): passages from the workspace show under the matching file names. Search the workspace (⇧⌘F, or the last entry in that list) is the full search. Pick where to look with the chips (the workspace’s Search by default in to start, else Files and PDFs); Enter opens the file at the line, the chat or the plan; a Markdown file opens in its preview, at the passage, with your words marked. To search one folder, right-click it in the Files tree and choose Find in folder: the In … chip shows the folder, and clicking it searches the whole workspace again (a folder holds files and documents, not chats or notes).
- Terminal:
/search <terms>in a session, or/search files|documents|chats|notes|all <terms>;blitz search <terms>from the shell, with--in,--json,--statusand--reindex. - Agents: the
search_workspacetool, next togrep: ranked passages rather than every match, from the whole workspace or onefolder.
Dotfiles (.agents/, .github/) and, with Include files left out of version control on, ignored files such as data are indexed but hidden: they show in results when the Files shelf shows hidden files (blitz search --hidden); agents always see them. A CSV’s first megabyte is indexed whatever its size, and with Describe files on, a model says what each of its columns holds, so “salinity” finds the table whose column is Salnty.
Type words or "a phrase": every term must match, word forms count (indexing finds indexed), and parts of identifiers match too (turnsMu). The index lives in ~/.blitz/workspaces/, never in your folder, and catches up by itself: when the workspace opens, after each turn, and a minute after the last scan while you’re idle. /search reindex, in the terminal or the desktop app (or Scan the workspace again in the Search dialog), brings it up to date now; /search status says how the index is, and /search <terms> (or /search files|documents|chats|notes|all <terms>) searches, in the desktop app by opening the Search dialog with them. In the desktop app, Studio › Settings › Search turns it off or on, picks where a search looks by default, and turns on the two extras below, for that workspace, at once; in the settings file, that’s search.enabled, search.sources, search.embedding_model and search.enrich.
Search is local: nothing leaves your machine, unless you turn on either of these, which send your files to a model provider:
- Semantic search (
search.embedding_model, e.g.gemini/text-embedding-004,openai/text-embedding-3-smallorollama/nomic-embed-textto stay local): finds by meaning as well as words (“automobile” finds “car”). Each indexed passage is embedded once, and each query, with secrets redacted first;--mode keyword|semantic|hybrid(or the switch in the desktop app) picks how a search ranks. - Summaries and tags (
search.enrich = true): a model describes each file in the background, up tosearch.enrich_daily_limita day (default 200), skipping large, generated and vendored files and redacting secrets first. Results show the summary and tags, and a search finds a file by what it’s about.
A project’s settings can’t turn either on.
Set web.search_provider to one of:
google: Gemini’s grounding with Google Search, using your Gemini key (web.search_api_key,[llm.gemini] api_keyorGEMINI_API_KEY), whateverllm.provideris.web.search_modelpicks the Gemini model. Google bills each search query the model runs: 5,000 a month are free across Gemini 3 models, then $14 per 1,000./costdoesn’t include this.searxng(web.search_url): open source and self-hosted. Enable the JSON format in itssettings.yml(search: formats: [html, json]); most public instances turn it off.braveortavily: a key inweb.search_api_key, orBRAVE_API_KEYorTAVILY_API_KEY.
The agent’s web_search asks for approval (rememberable per provider), because the query leaves your machine. Results from web.deny_domains are dropped. blitz doctor --online runs a test search.
Some models come with their provider’s own web search, web fetch and code execution: Claude (on Anthropic and on Vertex AI), Gemini 3 and OpenAI’s GPT models (web search). Blitz uses them in place of its own web_search, web_fetch and code runs wherever the model has them: the provider runs the search or the code, and the model reads the results in the same call. You don’t need a search provider set for this.
They follow the same rules as Blitz’s tools:
- An agent gets the model’s search only if its
toolslistweb_search, and the model’s fetch only ifweb_fetchis on ([web] enabled). - Code execution runs in the provider’s sandbox, not on your machine, and only for an agent that may run commands. Plan mode and read-only runs (
/search) keep search and fetch and leave code execution out. - Switch them off with
[tools] provider = false, or for one agent in itstoolswith-provider:web_search,-provider:web_fetch,-provider:code_executionor-provider:*. Your organization can switch them off withprovider:<name>in its policy’stools.off. - A
denyrule forweb_searchorweb_fetchswitches the model’s off too.
The model’s search doesn’t ask before each query: the query goes to the provider that already has the conversation, not to a third party. Each search and fetch shows in the conversation as a web_search or web_fetch call with its results, and the answer’s sources are listed under it. The provider bills these per request: Anthropic $10 per 1,000 searches, Google per grounded query, OpenAI per call. Blitz counts them with the call that made them.
If you switch a conversation to another model, it reads those searches as ordinary web_search calls and results.
/search web how do I wrap errors in Go 1.26 # find pages; the agent reads them and answers
/search session "circuit breaker" # what did we say about it earlier?
/search web <terms> searches with the configured provider and hands the agent the first five readable results. It skips non-web links, PDFs, archives, images, office documents and duplicates. The agent fetches those pages and answers from them, citing the URLs it used. You aren’t asked to approve the search, since you typed it, or those five pages, since you picked them by running the command; both are recorded in the audit log.
/search session <terms> looks through this session’s saved transcript for the words or "quoted phrases", ignoring case, including what /compact summarized away. Up to 12 matching messages, with about 300 characters around each match, go to the agent, which says what was said or decided and when.
Both are read-only turns: the agent can read, fetch and search, but edits, commands and MCP tools are refused.
- Only those five pages are pre-approved. Any other page the agent wants asks, and a redirect to another host is refused.
- Readability is judged from the URL: a page that turns out to be a PDF, or needs JavaScript, comes back empty or as an error.
- Session search is literal: no stemming or meaning-based search (
retriesdoesn’t findretry). It covers the current session only, and the transcript holds prompts and replies, not tool output. - With Google, results are the pages Gemini chose to cite, often fewer than ten; Google’s redirect links are resolved to the real pages. Only a Gemini API key works; Vertex AI credentials aren’t supported for search.
For pages that need JavaScript or clicking through, and to check a web app you’re building, the agent has a browser tool: it drives Chrome, Chromium, Edge or Brave (whichever is installed; blitz doctor says which, browser.path picks one) in a throwaway profile, never yours, headless unless browser.visible = true. It can open pages, click, type, choose options, read the text or HTML, read the console, take screenshots it then looks at, and record a walkthrough: a screenshot after each step, saved in ~/.blitz/walkthroughs/.
It follows the same rules as web_fetch: each new site asks first (approving one covers both tools), web.allow_domains doesn’t ask, and web.deny_domains and deny web(…) rules are never reached. Everything the browser loads, scripts and WebSockets included, goes through Blitz, which refuses your machine’s and network’s own addresses. To test an app on localhost, allow them:
[browser]
allow_local = true # localhost and private addresses; cloud metadata never
# allow_scripts = true # run the agent's page scripts without asking
# visible = true # watch it work
Running a script the agent wrote in a page asks first unless allow_scripts is set (tools.auto_approve_commands doesn’t cover it), and a deny web(…) rule for the page’s site refuses it either way. Set [browser] enabled = false to turn the tool off.
In the desktop app. With the app open, the agent browses in the app itself instead of a hidden Chrome. The first time in a chat it asks: Watch it in a tab (a tab with a bar saying Blitz is browsing; Take over to use the page yourself, Stop to end it) or Run silently (out of sight). Settings › Resources › Browser › How the agent browses sets it for good (browser.show = "watch" | "silent" | "ask"). Without the app (jobs, the command line), it’s Chrome as before.
Opening a page for you. Ask the agent to open a site (“open github.com”, “show me the release notes page”) and it opens it for you to look at, without reading it. In the app it asks the first time in a chat: Embedded browser (a web tab beside your files) or System browser. Settings › Resources › Browser › Where pages you ask to open show sets it for good (browser.open = "embedded" | "system" | "ask"). Without the app, your system browser.
Opening a file for you. Ask the agent to open or show a file of the workspace (“open the notes you just wrote”, “show me plan.md at the risks”), and it opens it in the app’s editor, at the line when it names one; Markdown shows rendered. It never reads the file to do it, and asks nothing. Files outside the workspace, folders and blocked paths don’t open. In the terminal, it tells you the path.
Signed-in browsing. By default the browser has a throwaway profile and is signed in nowhere. To let the agents use a site you sign in to (a mailbox, an internal wiki behind single sign-on, a dashboard), make a browser profile in Settings › Browser and sign in to the site in it. The agents can then browse with it. With one profile, it’s every workspace’s default; choose one for a workspace (its settings › Browser profile) and they use it there without asking, or choose Anonymous to browse signed out there. Any other of your profiles they ask about first, and with several profiles and none chosen, they offer the one whose sites include the page (“browse signed in with your browser profile work?”), once a chat. With a profile, its own sites go without asking and every other site asks, whatever web.allow_domains says, and web_fetch reads the profile’s sites in the browser, signed in. A profile’s own sites may be on your private network (an intranet over a VPN, or a name your company’s DNS answers with a private address) without browser.allow_local; loopback still needs it, and cloud metadata is never reached. Profiles are yours: only your settings choose them, and a workspace whose project settings wait for your trust doesn’t use its own without asking. Google and some others refuse sign-ins in browsers that are automated; sign in to those in your own browser instead.
web_fetch uses the browser too, by itself: when a plain request gets a bot check (“Just a moment…”, a captcha) or a page that’s only scripts, it loads the page in the browser and returns what it shows, saying so (via: browser). It doesn’t ask again for a site you just approved. [web] browser_fallback = false turns that off.