Skip to content
Logo

Ship log

A running record of every released version of claude-second-brain on npm. Newest releases first. For auto-generated notes and tags, see the GitHub releases page.

v1.4.0 — 2026-11-30

Save what you work out in a conversation, not only what you read. Plus idempotent ingest, a lint script, and commands to create, upgrade, lint and reindex brains.

New skill:

  • /brain-remember saves the decisions, learnings, facts and open questions from the current agent conversation. Say "remember this" (or run /brain-remember [what]) in any project. The agent shows you what it found, and after you confirm, writes a wiki/sources/conversation-YYYY-MM-DD-[slug].md page, folds each item into related topic and entity pages, flags contradictions, logs a remember entry and commits the change on its own if the brain is a git repo. It never writes secrets. It is a global skill like /brain-ingest, and the vault's CLAUDE.md has a matching Remember Workflow.

Ingest:

  • /brain-ingest skips sources it has already ingested. Each log entry now ends with a source: line holding the file's path and a short SHA-256. The same hash is skipped, a changed file is ingested as an update to its existing source page (logged as reingest), and "force" or "reingest" overrides the skip.
  • "Ingest everything new" checks every file in raw-sources/, lists the new and changed ones, and ingests each in turn.
  • A URL is saved to raw-sources/articles/ before it is ingested, so the original survives if the page changes. Existing raw sources are never overwritten.
  • In a git vault each ingest is committed on its own (ingest: Title), so it is easy to review or git revert. Nothing is pushed.

Lint:

  • /lint now starts from a dependency-free script, scripts/lint/wiki-lint.js (pnpm lint:wiki), that finds broken links, orphans, bad frontmatter, short links and open contradictions in one pass. The agent reads its JSON instead of every page.
  • New csb lint runs it on one brain, several, --all, or any folder with --path, and exits 1 on errors.

CLI:

  • New csb create <name> is the main way to make a brain. csb <name> still works. Brain names that match a csb command (ls, lint, doctor, …) are rejected, so csb create one no longer makes a brain called create.
  • New csb upgrade brings existing brains up to date: it refreshes CLAUDE.md, the vault skills, scripts and package.json, adds missing .gitignore lines, untracks a committed search index, and updates the global skills. It shows the plan first and keeps files you edited unless you choose otherwise. Existing users: run csb upgrade --all to pick up everything in this release, including /brain-remember.
  • New csb reindex rebuilds the search index for one or more brains from any directory. The next-steps box after creating a brain now points to it.
  • csb doctor warns when a brain hasn't been upgraded to this release, and suggests csb reindex when an index is missing.

Template:

  • pnpm's native build allowlist moved to pnpm-workspace.yaml, so pnpm 11 and later build better-sqlite3 and node-llama-cpp without warnings.

v1.3.0 — 2026-11-27

A rebuilt docs site that agents and search engines can read, and a template fix so the search index is never committed.

Fixes:

  • New vaults' .gitignore now ignores .qmd/, where the qmd search index lives. Before, only qmd.sqlite* was ignored, so obsidian-git could commit and push the index. It also ignores .obsidian/workspace.json and workspace-mobile.json, which differ on every device and caused sync conflicts. Existing vaults: add those lines to your .gitignore and run git rm -r --cached .qmd if the index was already committed.

Docs site:

  • Upgraded to Vocs 2.12 and made agent-ready: llms.txt and llms-full.txt follow the llms.txt format with absolute links, every page has a .md version linked from its <head>, plus canonical URLs, keywords, SoftwareApplication JSON-LD on the homepage, a sitemap without the 404, and a 404 page that points to llms.txt. pnpm docs:verify checks all of it in CI.
  • New landing page hero with a copyable npx claude-second-brain command, and an animated diagram of sources, your brain and your agents.
  • The CLI reference is now one page per command, each with usage, arguments, options and examples.
  • New Integrations section: Obsidian, obsidian-git (its sync settings and mobile limits), and iCloud sync for iPhone and iPad using a second clone that keeps .git out of iCloud.
  • New manual setup steps for Cloudflare Artifacts.

README:

  • The GitHub and npm README is now a short landing page (pitch, one install command, quickstart, skills table), with details linked to the docs site. The Mermaid chart, which npm can't render, is replaced by an image of the docs diagram.

v1.2.3 — 2026-11-27

Bug fixes for CLI argument handling, plus a test suite.

Fixes:

  • Brain names are validated before scaffolding. Names that are empty, . / .., or contain path separators, quotes or control characters are rejected, so a name can no longer escape ~/.claude-second-brain/ or corrupt config.toml.
  • --brain now requires a value in path, qmd, exec, skills and git-token. Previously a bare --brain silently fell back to the default brain (so csb git-token --brain renewed the wrong brain's token).
  • csb exec … -- <cmd> --help and csb qmd … -- … --help now pass --help through to the command after -- instead of printing csb's own help.

Tests and CI:

  • New pnpm test (node --test tests/*.test.js) covering brain-name validation, --brain parsing and help pass-through; a Test workflow runs it on pull requests and main.

Docs:

  • README and docs home link /brain-ingest, /brain-search, /brain-refresh, /brain-rebuild and /lint to their docs pages.

v1.2.2 — 2026-11-27

npm package metadata only. No CLI or template changes.

  • Added npm keywords matching the GitHub repo topics (ai, amp, claude-code, codex, cursor, github, knowledge-base, knowledge-graph, knowledge-management, llm, obsidian, obsidian-vault, qmd, second-brain) so the package is searchable on npmjs.com.
  • npm homepage now points to the docs site instead of the GitHub README, and bugs links to GitHub issues.

v1.2.1 — 2026-11-27

Maintenance release: security updates and a tokenless release pipeline. No CLI or template changes.

Security:

  • Refreshed dependencies to clear all Dependabot alerts (pnpm audit: 106 → 0). @clack/prompts is now ^1.9.0; transitive docs-site deps (hono, vite, mermaid, dompurify, …) resolve to patched versions, with pnpm overrides for toml, katex and @hono/node-server.
  • Removed the stale package-lock.json; the repo uses pnpm only.

Release pipeline:

  • npm releases use trusted publishing (OIDC) from release-publish.yml with --provenance, so no NPM_TOKEN is stored in the repo. npm comes from mise.toml (11.21.2; trusted publishing needs 11.5.1+). v1.2.0 was the first release published this way.

CI:

  • Docs workflows install Playwright browsers from the locked version (1.65.1).

v1.2.0 — 2026-11-27

Works with any agent, not just Claude Code, plus a faster, unattended setup and first-class Cloudflare Artifacts git tokens. Existing installs: run csb skills once to move global skills from ~/.claude/skills to ~/.agents/skills (the old copies become symlinks).

Agents:

  • Skills install for any Agent Skills agent, with the same layout as npx skills: global skills are written once to ~/.agents/skills/<name> and symlinked into agent-specific dirs (~/.claude/skills, ~/.codeium/windsurf/skills, ~/.config/goose/skills, …). Supported: Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode, Amp, Cline, Windsurf, Goose, Kiro CLI, Roo Code, Continue, Junie, Augment.
  • Vault-local skills (brain-rebuild, lint) are copied into each selected agent's project skills dir (.agents/skills/, .windsurf/skills/, …).
  • New --agent, -a <ids> (comma-separated or all) and CSB_AGENTS to pick agents; --copy to copy instead of symlink. Interactive setup preselects Claude Code plus every detected agent.
  • New csb skills [--agent <ids>] [--copy] [--brain <name>] to add agents or update skills later, and csb skills --list to show supported agents and their skills dirs.
  • New vaults ship an AGENTS.md that points Codex, Cursor, Copilot and other agents at CLAUDE.md.
  • The Next steps box shows how to open each agent you picked (claude, codex, cursor ., …).

Setup:

  • All prompts, including the qmd-registration question, are asked up front; the rest runs unattended.
  • Long steps show a live spinner with elapsed time and the latest output line.
  • If pnpm 10+ is on your PATH, it's used directly; otherwise the CLI installs mise and fetches node + pnpm. CSB_USE_MISE=1 forces mise.
  • The git-remote picker shows GitHub / Cloudflare logos as Nerd Font glyphs in Ghostty, WezTerm and kitty, emoji elsewhere. Override with CSB_ICONS=nerd|emoji|none.
  • If the remote can't be created or pushed, the brain is still created locally, the problem and fix are listed in Next steps, and the CLI exits 1.

Cloudflare Artifacts:

  • Switched to the account-scoped REST API (api.cloudflare.com/client/v4/accounts/<ACCOUNT_ID>/artifacts/…); the old artifacts.cloudflare.net/v1/api host is no longer used. Set CLOUDFLARE_ACCOUNT_ID when your login can see more than one account.
  • A deleted or inactive namespace is recreated automatically before the repo is created.
  • Setup now saves a 90-day git token in the vault's .git/config (http.<remote>.extraHeader), so git push / git pull and obsidian-git just work. No more 24-hour token to copy.
  • New csb git-token [<name>] [--ttl <duration>] [--read] [--print] renews it (default 90 days, max 1 year), replacing the manual curl renewal.

Other:

  • csb doctor accepts system pnpm 10+ in place of mise and checks that the global skills in ~/.agents/skills match the installed release.
  • README, docs and package description say "any agent" and "git" (GitHub, Cloudflare Artifacts, or any remote) instead of Claude Code and GitHub only.
  • "Claude reads it" and similar wording is now agent-neutral, and "Access from anywhere" covers any local or cloud agent and any git host.

v1.1.0 — 2026-04-19

CLI UX pass. Every addition is non-breaking — the -- in csb qmd -- … and the path --qmd / --config / --root flag form continue to work, with a stderr deprecation notice on the flag form.

CLI:

  • Added csb use <name> (aliases default, switch) to set the default brain without editing ~/.claude-second-brain/config.toml. Runs the same header-rewrite path as csb rm.
  • Added csb exec [--brain <name>] -- <cmd…> — runs any command inside the resolved brain's directory with INDEX_PATH pre-set. csb qmd now delegates to the same helper.
  • Added csb doctor — checks for gh (+ auth), mise, wrangler, the central config, each brain's path and qmd_index, and whether the default brain resolves. Prints a Fix: hint under each failed check.
  • csb path now accepts positional subcommands: csb path [qmd|config|root]. The --qmd / --config / --root flag form still works with a stderr deprecation warning.
  • Every subcommand routes --help / -h to its own topic help. csb help <command> also prints per-command help. Top-level help shows the config path and current default brain.
  • csb rm gained --delete-remote and --keep-remote for scripting. Under -y with neither flag, remotes are preserved (safe default).
  • resolveBrain() error now points to csb use <name> as the fix.

v1.0.0 — 2026-04-19

First major release. Brains now live at ~/.claude-second-brain/<name>/ (not the repo root), and global skills resolve paths at call time via new CLI subcommands instead of baked-in paths. Existing single-brain installs: re-run npx claude-second-brain <name> to migrate. Legacy active = … in config.toml is auto-rewritten to default = ….

CLI:

  • Added claude-second-brain path [--brain N] [--root|--qmd|--config] and claude-second-brain qmd [--brain N] -- … subcommands. The global skills now resolve paths at call time via these commands instead of having absolute paths baked in at scaffold time.
  • Added claude-second-brain rm [<name>…] with multi-select (space to toggle) and a follow-up prompt to delete the git remote.
  • config.toml's active field renamed to default. Existing configs with active = … are still read transparently and rewritten to default = … on the next write.
  • Global skills (brain-ingest, brain-search, brain-refresh) now ship with a .csb-version sidecar file. Re-running npx claude-second-brain <name> detects version mismatches and prompts before overwriting; CSB_SKIP_SKILL_UPDATES=1 disables the prompt.
  • npx claude-second-brain now auto-registers qmd collections during scaffold — no manual /setup step needed afterwards.
  • Added csb as a bin alias. After npm i -g claude-second-brain, both claude-second-brain and csb are available globally.

Skills:

  • Removed /setup and /qmd-cli — their responsibilities are absorbed by create.js (auto-registration) and /brain-refresh / the csb qmd proxy respectively.
  • Added /update-workflows to audit pack-test.yml drift against current repo state.
  • Split /release into /package-release (version bump + PR) and an orchestrator /release that additionally runs /update-workflows and /update-docs.

Refactors:

  • Removed the __QMD_PATH__ and __CSB_CONFIG__ placeholder substitutions. scripts/qmd/{setup,reindex}.ts now compute the index path from import.meta.url; CLAUDE.md and vault-local skills use a relative .qmd/index.sqlite path.
  • patchVault() now only substitutes __BRAIN_NAME__ in template/README.md. Global skills ship unmodified from the template.

Fixes:

  • writeConfig() now writes default = … when upserting into a pre-existing empty or default-less config.toml. Previously a zero-byte config.toml blocked the field from being written and left CLI subcommands unable to resolve a default brain.
  • pnpm qmd:setup failures during scaffolding now surface captured stderr (last ~10 lines) instead of a generic "failed" message.
  • template/scripts/qmd/{setup,reindex}.ts wrap their bodies in try/catch that prints a tagged error with vault + db paths and exits 1, replacing silent unhandled rejections.
  • resolveBrain() errors now list available brain names and include a fix hint.

Docs:

  • Getting-started, per-skill docs, and vocs sidebar updated to reflect the 5-skill surface (brain-ingest, brain-search, brain-refresh, brain-rebuild, lint).
  • Documented rm multi-select and remote-deletion prompts.
  • /setup skill reference removed from quick-start in favor of pnpm qmd:reindex.

v0.6.0 — 2026-04-17

Features:

  • Added Cloudflare Artifacts as an alternate Git remote option during npx claude-second-brain setup. The CLI authenticates via wrangler, creates a repo via the Artifacts API, and pushes the initial commit automatically.

CLI UX:

  • qmd index path prompt now appears before the Git remote selection.
  • Global Claude skills are installed right after pnpm install, before git init. Install path is shown with ~/... notation.
  • qmd index prompt placeholder and default value display ~/... instead of the full home directory path.

Docs:

  • Added a Git backends section to the docs site covering GitHub and Cloudflare Artifacts setup.
  • Added llms.txt for LLM/AI crawler discoverability.
  • Docs site now generates .md files alongside HTML pages.

v0.5.1 — 2026-04-14

  • Maintenance release (version bump only).

v0.5.0 — 2026-04-14

Docs:

  • Added a vocs-powered documentation site, deployed to GitHub Pages.
  • Aligned the package.json description with the README tagline.

v0.4.2 — 2026-04-14

Features:

  • Added the /brain-refresh and /brain-rebuild skills for re-embedding and redesigning the qmd index.

Refactors:

  • Unified every qmd path reference behind the __QMD_PATH__ placeholder and parallelized file patching during scaffold.
  • CLI version is now read from package.json instead of being hardcoded.

Fixes:

  • Resolved a batch of code smells and factual inconsistencies across the codebase.
  • patchVault now surfaces non-ENOENT errors instead of swallowing them.
  • Fixed a failing CI job.

Docs:

  • Added a unified mermaid architecture diagram to both READMEs.
  • Removed generic skills-marketplace boilerplate.

v0.4.1 — 2026-04-14

Refactor:

  • Renamed the sources/ directory to raw-sources/ to eliminate the naming collision with wiki/sources/.

v0.4.0 — 2026-04-14

Features:

  • Renamed the core skills to brain-ingest and brain-search, and wired qmd path setup into scaffolding.
  • Added a GitHub repo creation prompt during npx claude-second-brain (with a private-repo notice and a fallback that removes the repo on failure).
  • The generated README title now matches the brain folder name.
  • Polished the CLI UX with @clack/prompts and now runs mise trust before installing dependencies.

Docs:

  • Updated READMEs to reflect the new CLI prompts and skill renames.

Chore:

  • Removed template skills from .claude/skills.
  • Changed the license badge color.

v0.3.0 — 2026-04-12

  • Squashed release PR (#7) bundling CLI refinements and template adjustments that followed the feat/npx series.

v0.2.3 — 2026-04-11

Features:

  • Shipped the missing .obsidian/ folder inside the template so scaffolded vaults open directly in Obsidian.

Docs:

  • Added the MIT License file.

v0.2.2 — 2026-04-11

Docs:

  • Added a GitHub URL to the package metadata.
  • Added the project image to the package so the npm card renders correctly.

v0.2.1 — 2026-04-11

Chore:

  • Merged the release and publish steps into a single release-publish.yml workflow.
  • Hardened the CI pipeline.

v0.2.0 — 2026-04-11

  • First public release to npm.
  • Introduced the template scaffold and the npx claude-second-brain flow.
  • Added the initial README, the release workflow, and the /pack-test skill.