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

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: local_brain-0.3.1.tar.gz
  • Upload date:
  • Size: 81.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.1.tar.gz
Algorithm Hash digest
SHA256 331f1f90693189d8d19cc0d6ddb4d28f53dc74a00581d050748989d9583061b6
MD5 470252873e6aa018498ace37e51eecbf
BLAKE2b-256 6ed02b58d13be0f872f08523104a02758781bdfb85bef3bea770efd80d1ef927

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: local_brain-0.3.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 62bbe1aaa27b76d58ed4bbe9d165da80f744d84b19a7731076242e4915311790
MD5 363f7caf14e92c2b31466c064f2261ac
BLAKE2b-256 1fcd711890e1d7fe8780e7725a79dd680e011a1e29fcfc260b7297b410c98b3a

See more details on using hashes here.

Provenance

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