English | 한국어
Your own knowledge library, with sources attached and notes ready to reuse.
Spend less time explaining the same background to AI.
Save useful project rules, prior research, and reasons for decisions as notes with their sources. For the next task, an agent you authorize finds and reads the relevant notes and works from them with your new material; you set the goal and review the result.
When the next report is due
Instead of gathering scattered research again and re-explaining the report rules, ask your agent for this week's draft: it reads the saved criteria and research, combines them with this week's material, and you review what changed.
When you return to a paused project
In a new conversation or with a different agent, point it at the saved decision and its reason and continue from there instead of rebuilding the background from scratch.
When you revisit a conclusion
Instead of relying on a lone summary or hunting for the same sources again, open the saved sources and earlier note versions to check the reasoning and update only what needs changing.
Start the next task with useful background and criteria already at hand.
Watch the 38-second captioned scenario | Descriptive transcript. Fictional materials and a prepared draft; an agent you authorize finds the saved notes with the CLI and drafts from them.
Local Second Brain stores notes such as project rules, research summaries, and reasons for technical decisions on your computer, alongside their source files. An agent you authorize can search the saved notes and use them for the next task, and you can inspect their sources and earlier versions at any time.
For agents | Manual quick start
Explore saved notes, inspect their sources, and compare revisions in your browser. This sample illustrates the files the tool saves, using prepared fictional notes. It is a demonstration page, not a product GUI or live AI chat.
Watch a report rule get saved, found, and compared with an updated version in the terminal. The recording shows selected output from actual command runs using prepared fictional text; no AI model was called. Playback timing was edited and temporary paths were normalized. The full transcript is linked below. Static poster | Text transcript
For example, save the report-writing guidelines you worked out last time as a note. When you ask your agent to draft a new report, it finds that note in the folder you allow and writes according to the saved guidelines.
Keep a research summary with the source files you used. If you later want to check the summary, open the saved source and compare it. Save an edited note as a new revision so you can compare the previous text with the current version.
Notes stay on your computer as Markdown files; captured sources retain the content saved at capture time. Keep these files even when you change AI services, and open the notes in a plain text editor without this tool or an AI account.
An illustrative example:
- Today: Choose the research files worth keeping. Save them with a note you or your agent writes.
- Next week: Ask your agent for the report. It finds that note and uses it as a starting point.
- When something changes: Reopen the saved sources, check the new evidence, and save an updated note. The earlier version stays available.
For people who work with AI on research, project decisions, or recurring reports and want to carry useful knowledge from one task to the next. The current product is an early-alpha command-line tool (CLI), operated by typing commands in a terminal. You choose what to save, which folder an agent may use, and what to accept. Start with an agent or follow the manual example below.
The external agent curates meaning; the CLI keeps that knowledge available for later use. You set goals and access. The agent prepares Markdown outside the bundle, then uses the Python + PyYAML CLI to store, search, version and diagnose local files. The CLI calls no model or network. The dashed path shows authorized direct reading without the CLI.
- Originals:
sources/<id>/content.rawandprovenance.jsonpreserve source bytes and provenance. - Revisions:
concepts/<id>/rNNNNNN.mdkeeps earlier notes alongside new versions. - Navigation:
index.mdcombines CLI-managed current links with separate, agent-maintained human navigation. Open the files in a Markdown reader or optional Obsidian; no viewer is required.
Explicitly supply the knowledge kit and your profile as agent instructions and preferences; installation does not create automatic memory.
Full-size vector / Semantic source and regeneration
To have an agent install and verify the tool, give it this prompt. For manual setup, follow Quick start below.
Install and verify Local Second Brain from https://github.com/indra622/local-second-brain.git.
Clone into a new working folder, or inspect and reuse an existing checkout without
overwriting user changes. Read its README and supported requirements first.
Create a project-local .venv and use the documented source install: python -m pip install -e .
With that environment active, verify second-brain --help and run the README synthetic
quickstart from the checkout, using a separate new temporary knowledge folder.
Report the checkout, CLI executable, and demo folder paths, commands, and results.
Keep this task to installation and the synthetic demo: do not scan personal vaults,
upload data, change global configuration, or pipe remote installers into a shell.
Installation does not provide automatic memory or model integration.
The CLI itself stores and searches locally without uploading content. If you give a cloud
agent access, notes, sources and recall output it reads may be sent to that AI service.
You choose which folders it may access and which AI service to use. Local storage does
not mean the AI's reasoning also runs offline.
human-reviewed and machine-confirmed are advisory labels based on the reviewer declared
in the record. The CLI has not authenticated the reviewer or verified the content's facts.
Specifying a review time does not prove that the review actually happened then.
For later work with your own notes, use the portable agent kit and its workflow.
Early alpha. Use Python 3.11+ with venv, a POSIX shell, and a writable local filesystem
on macOS or Linux. CI covers macOS and Ubuntu with Python 3.11 and 3.14. Other Linux
environments and WSL are not separately validated; Windows is unsupported.
Get the source with Git, then enter the downloaded project folder (the checkout).
If you downloaded an archive instead, extract it and open a terminal in the directory containing pyproject.toml.
There is no PyPI release. Examples and guides come with this source checkout.
git clone https://github.com/indra622/local-second-brain.git
cd local-second-brain
Check Python, create a virtual environment with venv to keep this project's Python
packages separate, and install. Installation normally needs
internet access to download PyYAML and build tools. No AI account or API key is required.
If Python is older than 3.11 or lacks venv, install a suitable interpreter first.
python3 --version
python3 -m venv --help > /dev/null
python3 -m venv .venv
. .venv/bin/activate
python -m pip install -e .Try the report-rule workflow described above: save a fictional team's Friday report
rule, find it with the exact English word report, and read it back. In the
continuation, you will record a review and save a Thursday update.
Capture copies a selected source and records its origin. Curate saves a note
you have already written, linked to that source. Both commands use prepared files here;
neither generates text.
Keep the knowledge folder outside the checkout. The following temporary folder remains
on disk so you can inspect it. Save the DEMO_DIR=... line printed below. It is the
parent directory; init prints the separate knowledge-folder path ending in /wiki.
DEMO_DIR="$(mktemp -d "${TMPDIR:-/tmp}/second-brain.XXXXXX")"
printf 'DEMO_DIR=%s\n' "$DEMO_DIR"
second-brain init "$DEMO_DIR/wiki"
second-brain capture "$DEMO_DIR/wiki" examples/inputs/report-memo-1.txt \
--id report-memo-1 --actor human:demo --resource synthetic:report-memo-1
second-brain curate "$DEMO_DIR/wiki" report-rules \
--body examples/inputs/report-v1.md --source report-memo-1 --actor prepared-fixture/1 \
--title 'Report-writing rules' --stale-after '2030-01-01T00:00:00+00:00'
second-brain search "$DEMO_DIR/wiki" 'report' --now '2026-10-27T00:00:00+00:00'
second-brain check "$DEMO_DIR/wiki" --now '2026-10-27T00:00:00+00:00'Read the saved note:
second-brain show "$DEMO_DIR/wiki" report-rules --format textThe search finds the saved report rule. It is the version selected in the index,
but it is still a draft with no recorded review. The output expresses this as
current: true, status: draft, and trust: unverified for
concepts/report-rules/r000001.md.
The first check finds no structural metadata or link problems and no notes past
their recheck date: invalid: [], warnings: [], stale: [], and concepts: 1.
It does not check facts. Open the knowledge folder's index.md to follow its link to the note.
- You guide the work. There is no automatic memory, model-generated synthesis, or semantic search. The tool stores prepared notes and searches exact words. It has no GUI or MCP server and implements only part of OKF.
- Input limits. Raw sources allow 256 MiB; note bodies allow 16 MiB. Metadata, indexes and receipts have separate byte limits. Oversized inputs are rejected without truncation. See input byte limits.
- Local operation. The CLI does not use the network at runtime. External agents have their own network and data policies.
- Review is a declaration. Review records and freshness signals help you choose what to recheck; they do not authenticate reviewers or verify facts. See the command and support reference.
- Optional Obsidian viewing. You can follow the viewer instructions, but the GUI workflow has not been verified. Obsidian is not required.
- Review, revise, and recall: continue this example, keep three revisions, and run a separate synthetic reuse task. Includes optional Obsidian instructions.
- Use your own agent: prepare sourced notes and reuse them in later work. The file interface does not require a particular agent or automatic integration.
- Public-source Codex validation (Korean): an actual agent-written note and follow-up task, with search misses and a GUI access limit. This is one manual run, not an integration test for every agent.
- Command and support reference: exact search rules, review declarations, safety and recovery limits. Developer checks describes tests and CI.
Keep original revisions intact: prepare changes in a separate file and save them with
curate. Detailed contracts are in the reference.
This project's original implementation and documentation are licensed under the MIT License. Copyright (c) 2026 indra622.
The implementation draws on LLM Wiki workflow concepts and the Open Knowledge Format (OKF) specification. Those concepts and third-party materials remain attributed to their respective authors. Third-party code, documentation, and captured source materials retain their own licenses and terms; this project's MIT license does not relicense them.



