Claude Code slash command

SecondBrain

A personal knowledge base that lives in this folder. Drop content in, have it organized automatically, ask questions, and get sourced answers — either through Claude Code slash commands or a local web dashboard.

158 stars 11 forksSlash commands Source

Install

From source
git clone https://github.com/PieroSierra/SecondBrain.git

From the README

Feed it what you read and think. It builds you a private, organised wiki
  you can ask questions, and every answer comes with its sources.

  Get started ↓  · 
  Using it  · 
  CLI  · 
  Engines

What it is

A knowledge base that lives in a folder on your computer. You do three things:

- Import anything — a note, a PDF, a web page, a slide deck, a spreadsheet, an image.
- It organises — everything gets folded into a cross-linked wiki, automatically.
- Ask — natural-language questions, answered from *your* material, with sources.

It runs through an AI agent you already have: Claude Code by default (also Codex or OpenCode). Everything stays in your folder; the only thing that leaves your machine is the text your agent sends its model to do the organising and answering.

Get started

No need to know your way around GitHub. Your agent does the setup for you.

1. Get the files. Open your favourite agent (Claude Code, Codex or OpenCode) and paste this in:

2. Set it up. Reopen your agent in that new SecondBrain folder, then paste:

It asks a couple of questions about your interests, writes your config, and you're done. *(Not sure how to reopen your agent in the folder? Just ask it: "how do I reopen you inside the SecondBrain folder?")*

3. Get the app.

  ⬇ Download SecondBrain.app

Just download it and drag it into your Applications folder. Launch it, point it at your SecondBrain folder, and it runs everything for you: no terminal, no restart juggling. Now just import something, click Update wiki, and ask a question.

Using it

The everyday loop, all from the dashboard:

- Capture — paste a Markdown note, drop or pick a file (PDF, PowerPoint, Word, Excel, CSV, image, text), import from a URL, or pull a document from Craft. Office and CSV…
Read the full README on GitHub

How custom slash commands work

  • A slash command is a Markdown file. Put it in ~/.claude/commands (for you) or .claude/commands (for a project), and it becomes /file-name inside Claude Code. Claude Code now treats commands and skills the same way, so .claude/skills/name/SKILL.md also works.
  • Arguments you type after the command are passed in as $ARGUMENTS.
  • If the repo is a plugin marketplace, installing it from /plugin adds the commands for you.
Claude Code docs

Details

Language
Python
Last updated
5 October 2026

FAQ

What is SecondBrain?

A personal knowledge base that lives in this folder. Drop content in, have it organized automatically, ask questions, and get sourced answers — either through Claude Code slash commands or a local web dashboard. It is a slash command for Claude Code, from PieroSierra/SecondBrain on GitHub.

How do I install SecondBrain?

Clone PieroSierra/SecondBrain from GitHub and follow the setup steps in its README.

Is SecondBrain popular?

PieroSierra/SecondBrain has 158 GitHub stars and 11 forks. It was last updated on 5 October 2026.

More slash commands

Browse the most popular Claude Code mods, all slash commands, or the skills and MCP server directories.