Skip to main content

Chat with local Ollama models that can explore your codebase

Project description

Local Brain

Chat with local Ollama models that can explore your codebase.

local-brain "What files changed recently?"
local-brain "Review the code in src/"
local-brain "Generate a commit message"
local-brain "Explain how auth works"

Install

uv pip install local-brain

Or with pipx:

pipx install local-brain

Requires: Ollama with a model:

ollama pull qwen3

Usage

local-brain "prompt"              # Ask anything
local-brain -v "prompt"           # Verbose (show tool calls)
local-brain -m llama3.2 "prompt"  # Different model

The model has tools to explore your codebase — it reads files, checks git, lists directories on its own.

Examples

# Explore
local-brain "What's in this repo?"
local-brain "How does the auth system work?"

# Review
local-brain "Review the git changes"
local-brain "Review src/main.py for issues"

# Git
local-brain "Generate a commit message for staged changes"
local-brain "Summarize recent commits"

# Explain
local-brain "Explain how agent.py works"

Tools

The model can use (all read-only for security):

Tool What it does
read_file Read file contents
list_directory List files (glob patterns)
file_info Get file metadata
git_diff See code changes
git_status Check repo status
run_command Run safe shell commands

Development

git clone https://github.com/IsmaelMartinez/local-brain.git
cd local-brain
uv sync
uv run local-brain "Hello!"

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

local_brain-0.3.3.tar.gz (74.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

local_brain-0.3.3-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

Details for the file local_brain-0.3.3.tar.gz.

File metadata

  • Download URL: local_brain-0.3.3.tar.gz
  • Upload date:
  • Size: 74.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for local_brain-0.3.3.tar.gz
Algorithm Hash digest
SHA256 25e95fa455d0b1537b9343868d3caf5bc70b4def9c6d2f853d49cb87a2ffb4d9
MD5 0f7df4c5a60ed410bb3a948abad35a6e
BLAKE2b-256 ff7ac78d3ef08bf3e19a4231ef866b471db612f3e6391498514dfa9f134348ed

See more details on using hashes here.

Provenance

The following attestation bundles were made for local_brain-0.3.3.tar.gz:

Publisher: release.yml on IsmaelMartinez/local-brain

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file local_brain-0.3.3-py3-none-any.whl.

File metadata

  • Download URL: local_brain-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 10.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for local_brain-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 75ba4f5521e0a9250e67c93f85a8156f1c5f28816526219075bcd96639caa6ec
MD5 d3dcdc7fe636ba818e7ce1436dbfff39
BLAKE2b-256 8b30a349fb3da9863a045cf1ea64871e2f19d88f1d35c590a81057aca1f31189

See more details on using hashes here.

Provenance

The following attestation bundles were made for local_brain-0.3.3-py3-none-any.whl:

Publisher: release.yml on IsmaelMartinez/local-brain

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page