Chat with local Ollama models that can explore your codebase
Project description
Local Brain โ Claude Code Plugin Marketplace
A Claude Code plugin marketplace that extends Claude with local capabilities. The first skill lets Claude delegate codebase exploration to local Ollama models.
๐ Install Marketplace
Add this marketplace to Claude Code:
/plugin marketplace add IsmaelMartinez/local-brain
Then install the plugin:
/plugin install local-brain@local-brain-marketplace
๐ง Available Plugins
local-brain
Delegate codebase exploration to local Ollama models. Claude offloads read-only tasks to your machineโno cloud round-trips, full privacy.
โโโโโโโโโโโโโโโ delegates โโโโโโโโโโโโโโโ calls โโโโโโโโโโโ
โ Claude Code โ โโโโโโโโโโโโโโโโโโโบโ Local Brain โ โโโโโโโโโโโโโโโบโ Ollama โ
โ (Cloud) โ โ (CLI) โ โ (Local) โ
โ โโโโโโโโโโโโโโโโโโโโ โ โโโโโโโโโโโโโโโโ โ โ
โโโโโโโโโโโโโโโ returns โโโโโโโโโโโโโโโ responds โโโโโโโโโโโ
results with tools
What Claude can delegate:
- "Review the code changes"
- "Explain how the auth module works"
- "Generate a commit message"
- "Find all TODO comments"
Marketplace Structure
This repo follows the Claude Code plugin structure:
local-brain/ # MARKETPLACE ROOT
โโโ .claude-plugin/
โ โโโ marketplace.json # Marketplace manifest
โโโ local-brain/ # PLUGIN
โโโ .claude-plugin/
โ โโโ plugin.json # Plugin manifest
โโโ skills/
โโโ local-brain/
โโโ SKILL.md # Skill documentation
local-brain Plugin Details
Prerequisites
- Install the CLI:
uv pip install local-brain
Or with pipx:
pipx install local-brain
- Install Ollama from ollama.ai and pull a model:
ollama pull qwen3
CLI Usage
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"
local-brain "prompt" # Ask anything (auto-selects best model)
local-brain -v "prompt" # Verbose (show tool calls)
local-brain -m qwen2.5-coder:7b "prompt" # Specific model
local-brain --list-models # Show available models
local-brain --root /path/to/project "prompt" # Set project root
Model Discovery
Local Brain automatically detects installed Ollama models and picks the best one:
local-brain --list-models
Recommended models:
qwen3:latestโ General purpose (default)qwen2.5-coder:7bโ Code-focusedllama3.2:3bโ Fast, lightweightmistral:7bโ Balanced
Tools
The model has these read-only tools:
| 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 |
git_log |
View commit history |
git_changed_files |
List changed files |
run_command |
Run safe shell commands |
Security
All operations are restricted to the project root (path jailing):
- โ Read files within project directory
- โ Run safe, read-only shell commands
- โ Access files outside project root
- โ Read sensitive files (
.env, keys) - โ Network access
Adding New Plugins
Want to add a plugin to this marketplace?
- Create a new directory at the root:
your-plugin/
โโโ .claude-plugin/
โ โโโ plugin.json
โโโ skills/
โโโ your-skill/
โโโ SKILL.md
- Register it in
.claude-plugin/marketplace.json:
{
"plugins": [
{ "name": "local-brain", "source": "./local-brain", "description": "..." },
{ "name": "your-plugin", "source": "./your-plugin", "description": "..." }
]
}
See the Claude Code plugin docs for full specifications.
Development
git clone https://github.com/IsmaelMartinez/local-brain.git
cd local-brain
uv sync
uv run local-brain "Hello!"
Test Plugin Locally
# In Claude Code
/plugin marketplace add ./path/to/local-brain
/plugin install local-brain@local-brain-marketplace
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.6.tar.gz.
File metadata
- Download URL: local_brain-0.3.6.tar.gz
- Upload date:
- Size: 217.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7a6add8982975292640ad16514919e7e41f47ae70adb9750a9a5f5528a576fb
|
|
| MD5 |
32de9285b8d3893a23d01493dc4b67a2
|
|
| BLAKE2b-256 |
ac805e0e0de6d3b5f9653d45c0d428e72e7b11ceb40a8a40be0a61f285c20531
|
Provenance
The following attestation bundles were made for local_brain-0.3.6.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.6.tar.gz -
Subject digest:
f7a6add8982975292640ad16514919e7e41f47ae70adb9750a9a5f5528a576fb - Sigstore transparency entry: 753945148
- Sigstore integration time:
-
Permalink:
IsmaelMartinez/local-brain@3fc0542777dbf3bc1a1cd46cdf69b7b2898e8e36 -
Branch / Tag:
refs/tags/0.3.6 - Owner: https://github.com/IsmaelMartinez
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@3fc0542777dbf3bc1a1cd46cdf69b7b2898e8e36 -
Trigger Event:
release
-
Statement type:
File details
Details for the file local_brain-0.3.6-py3-none-any.whl.
File metadata
- Download URL: local_brain-0.3.6-py3-none-any.whl
- Upload date:
- Size: 17.3 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 |
3a7b623d7d627d5136fab572158f2a76611343fca7c32a00b56358cf9c91745d
|
|
| MD5 |
a196830072cfc334b6635fb00eb5d1b5
|
|
| BLAKE2b-256 |
14d3bc42fe56308b855fbfbfe1bc7fd704b45b9d0fa6d143070e5526e0d2fe18
|
Provenance
The following attestation bundles were made for local_brain-0.3.6-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.6-py3-none-any.whl -
Subject digest:
3a7b623d7d627d5136fab572158f2a76611343fca7c32a00b56358cf9c91745d - Sigstore transparency entry: 753945199
- Sigstore integration time:
-
Permalink:
IsmaelMartinez/local-brain@3fc0542777dbf3bc1a1cd46cdf69b7b2898e8e36 -
Branch / Tag:
refs/tags/0.3.6 - Owner: https://github.com/IsmaelMartinez
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@3fc0542777dbf3bc1a1cd46cdf69b7b2898e8e36 -
Trigger Event:
release
-
Statement type: