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.2.tar.gz (81.7 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.2-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: local_brain-0.3.2.tar.gz
  • Upload date:
  • Size: 81.7 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.2.tar.gz
Algorithm Hash digest
SHA256 5e4d862183bf4d3f6e73fbc082ebeb6d89a5f0b687504b8df33c08065d364fec
MD5 2045569415cb3b76b439e67f95821892
BLAKE2b-256 89bbc0b533a86ea88828c316b95ec2bd42f0b1850b3c56eb406c8bd39f8f5886

See more details on using hashes here.

Provenance

The following attestation bundles were made for local_brain-0.3.2.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.2-py3-none-any.whl.

File metadata

  • Download URL: local_brain-0.3.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 073fa33be327cde78712b3fd99fa437b81d81246ef7fd4bb9a18d2455b82cd48
MD5 ec1ca79c5a105e8a63719b322c435f04
BLAKE2b-256 6e6819a493efa2f9b82a0b1c628a1f148a06eb6bafe5b6495a832948a8606a82

See more details on using hashes here.

Provenance

The following attestation bundles were made for local_brain-0.3.2-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