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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
331f1f90693189d8d19cc0d6ddb4d28f53dc74a00581d050748989d9583061b6
|
|
| MD5 |
470252873e6aa018498ace37e51eecbf
|
|
| BLAKE2b-256 |
6ed02b58d13be0f872f08523104a02758781bdfb85bef3bea770efd80d1ef927
|
Provenance
The following attestation bundles were made for local_brain-0.3.1.tar.gz:
Publisher:
release.yml on IsmaelMartinez/local-brain
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
local_brain-0.3.1.tar.gz -
Subject digest:
331f1f90693189d8d19cc0d6ddb4d28f53dc74a00581d050748989d9583061b6 - Sigstore transparency entry: 749171386
- Sigstore integration time:
-
Permalink:
IsmaelMartinez/local-brain@f412b4841ef65ab53c642f1eb8db0cbf56dc5d5f -
Branch / Tag:
refs/tags/0.3.1 - Owner: https://github.com/IsmaelMartinez
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@f412b4841ef65ab53c642f1eb8db0cbf56dc5d5f -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
62bbe1aaa27b76d58ed4bbe9d165da80f744d84b19a7731076242e4915311790
|
|
| MD5 |
363f7caf14e92c2b31466c064f2261ac
|
|
| BLAKE2b-256 |
1fcd711890e1d7fe8780e7725a79dd680e011a1e29fcfc260b7297b410c98b3a
|
Provenance
The following attestation bundles were made for local_brain-0.3.1-py3-none-any.whl:
Publisher:
release.yml on IsmaelMartinez/local-brain
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
local_brain-0.3.1-py3-none-any.whl -
Subject digest:
62bbe1aaa27b76d58ed4bbe9d165da80f744d84b19a7731076242e4915311790 - Sigstore transparency entry: 749171397
- Sigstore integration time:
-
Permalink:
IsmaelMartinez/local-brain@f412b4841ef65ab53c642f1eb8db0cbf56dc5d5f -
Branch / Tag:
refs/tags/0.3.1 - Owner: https://github.com/IsmaelMartinez
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@f412b4841ef65ab53c642f1eb8db0cbf56dc5d5f -
Trigger Event:
release
-
Statement type: