Skip to main content

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

  1. Install the CLI:
uv pip install local-brain

Or with pipx:

pipx install local-brain
  1. 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-focused
  • llama3.2:3b โ€” Fast, lightweight
  • mistral: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?

  1. Create a new directory at the root:
your-plugin/
โ”œโ”€โ”€ .claude-plugin/
โ”‚   โ””โ”€โ”€ plugin.json
โ””โ”€โ”€ skills/
    โ””โ”€โ”€ your-skill/
        โ””โ”€โ”€ SKILL.md
  1. 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


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.6.tar.gz (217.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.6-py3-none-any.whl (17.3 kB view details)

Uploaded Python 3

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

Hashes for local_brain-0.3.6.tar.gz
Algorithm Hash digest
SHA256 f7a6add8982975292640ad16514919e7e41f47ae70adb9750a9a5f5528a576fb
MD5 32de9285b8d3893a23d01493dc4b67a2
BLAKE2b-256 ac805e0e0de6d3b5f9653d45c0d428e72e7b11ceb40a8a40be0a61f285c20531

See more details on using hashes here.

Provenance

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

Hashes for local_brain-0.3.6-py3-none-any.whl
Algorithm Hash digest
SHA256 3a7b623d7d627d5136fab572158f2a76611343fca7c32a00b56358cf9c91745d
MD5 a196830072cfc334b6635fb00eb5d1b5
BLAKE2b-256 14d3bc42fe56308b855fbfbfe1bc7fd704b45b9d0fa6d143070e5526e0d2fe18

See more details on using hashes here.

Provenance

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