Skip to content

lcode 0.2.0: web search

Choose a tag to compare

@nasser1941 nasser1941 released this 29 Sep 08:32
· 57 commits to main since this release
22c4a34

Highlights

The model can now search the web. When an answer depends on something newer than its training data, such as the latest version of a library, a changed API, an error message or current documentation, lcode searches and reads pages by itself, then tells you which URLs it used.

  • web_search works with Ollama web search (free key with an Ollama account), Brave Search, Tavily or your own SearXNG.
  • web_fetch reads any page as clean text, with no key needed.
  • On by default. Use lcode config set web ask to approve each search, or web off / --no-web to keep everything local. See Web search for setup and exactly what leaves your machine.

Added

  • Web access for the model: web_search finds current information (latest releases, docs, error
    messages) through Ollama web search, Brave Search, Tavily or a self-hosted SearXNG, and web_fetch
    reads pages as clean text. On by default; lcode config set web ask|off or lcode --no-web limits
    it. Search API keys are read from environment variables only. Closes #7.

Install or upgrade

curl -fsSL https://nasser1941.github.io/lcode/install.sh | bash   # new install
uv tool upgrade lcode-cli                                         # upgrade (pipx: pipx upgrade lcode-cli)

To turn on search, set up a provider, for example export OLLAMA_API_KEY=... with a free key from https://ollama.com/settings/keys, then check with lcode doctor.

Full changelog: v0.1.2...v0.2.0