Repository navigation
lcode 0.2.0: web search
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_searchworks with Ollama web search (free key with an Ollama account), Brave Search, Tavily or your own SearXNG.web_fetchreads any page as clean text, with no key needed.- On by default. Use
lcode config set web askto approve each search, orweb off/--no-webto keep everything local. See Web search for setup and exactly what leaves your machine.
Added
- Web access for the model:
web_searchfinds current information (latest releases, docs, error
messages) through Ollama web search, Brave Search, Tavily or a self-hosted SearXNG, andweb_fetch
reads pages as clean text. On by default;lcode config set web ask|offorlcode --no-weblimits
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