Local-first 🧠memory for Hermes Agent that lives in your Obsidian vault and remembers project context. Nightly 😴 dream passes turn repeat corrections into confirmed preferences with measurable confidence. Adapters ship for Claude Code, Codex, and OpenClaw, with an MCP server for anything else.
TypeScript
docs: refresh README for Hermes install
Sol Aitken8182cca662e1
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 7a871eeb..e384a1ef 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -7,6 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0## [Unreleased]+## [0.3.1] - 2026-05-06++### Added++- Top-level Hermes plugin manifest and entrypoint so the repository can be installed from a GitHub or Git URL through Hermes plugin installation.++### Changed++- Reworked README content for end users with a Hermes-first description and concise setup flow.+- Updated package and Hermes plugin metadata to version 0.3.1.+## [0.3.0] - 2026-05-06### Added@@ -21,5 +32,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0- Sandbox vault and plugin manifest fixtures for tests.- GitHub release workflow for tag-based and manually dispatched releases.-[unreleased]: https://github.com/itechmeat/open-second-brain/compare/v0.3.0...HEAD+[unreleased]: https://github.com/itechmeat/open-second-brain/compare/v0.3.1...HEAD+[0.3.1]: https://github.com/itechmeat/open-second-brain/compare/v0.3.0...v0.3.1[0.3.0]: https://github.com/itechmeat/open-second-brain/releases/tag/v0.3.0diff --git a/README.md b/README.mdindex 7939973d..bdcd7a58 100644--- a/README.md+++ b/README.md@@ -1,170 +1,95 @@-# open-second-brain+# OpenSecondBrain-Open Second Brain is an open-source, plugin-first second brain package for AI agents and humans.+OpenSecondBrain gives Hermes Agent a small, filesystem-first second brain for Obsidian-compatible Markdown vaults.-It is designed to give Hermes Agent, Claude Code, OpenAI Codex, and other agentic runtimes a shared, portable way to remember durable project knowledge, append operational event logs, query an Obsidian-compatible vault, and carry the same workflow across machines without locking knowledge into one agent runtime.+It is built for Hermes first: install it as a Hermes plugin, point it at a vault, and let Hermes use deterministic commands for the parts that should not depend on model reasoning — setup checks, vault bootstrap, daily event logging, safe config export, and wiki indexing.-Status: experimental v0.3. The repository currently includes documentation, a tested Python CLI foundation, skills, plugin manifests, and lightweight runtime health checks. Deeper runtime integrations and MCP support are planned for later versions.+Claude Code and OpenAI Codex are supported through lightweight adapter manifests, but Hermes is the primary runtime.-## Goals+## What it does today-- Provide a filesystem-first second brain that works with Obsidian-compatible Markdown vaults.-- Keep mutable user data and configuration separate from immutable plugin/package code.-- Support multiple agent runtimes through adapters instead of a single runtime-specific implementation.-- Treat daily logs as one backend for an append-only agent event log.-- Make setup, status checks, redacted config export, and future migrations deterministic through CLI tools.-- Avoid storing secrets, tokens, credentials, or private connection strings in the vault.+- Bootstraps an agent-owned area inside your vault: `AI Wiki/` plus `_OPEN_SECOND_BRAIN.md`.+- Appends agent events to daily Markdown notes without editing your manual notes above `## Raw events`.+- Regenerates a simple Markdown page index from frontmatter and wikilinks.+- Exports config snapshots with secret-like values redacted.+- Runs health checks for the vault, config file, Hermes plugin, and Claude/Codex manifests.+- Ships with dependency-free CLI wrappers: `scripts/o2b` and `scripts/vault-log`.-## Non-goals for v0+OpenSecondBrain does not run a daemon, replace your vault, or write hidden background state outside the configured vault/config paths.-- No always-on daemon.-- No mandatory MCP server.-- No automatic self-rewriting maintenance jobs.-- No replacement of an existing personal vault.-- No hidden background writes outside the configured agent-owned area.+## Install in Hermes-## Planned v0 shape+In the Hermes Dashboard:++1. Open Plugins.+2. Choose Install from GitHub / Git URL.+3. Paste this repository URL:```text-open-second-brain/- docs/- idea.md- architecture.md- roadmap.md- skills/- open-second-brain/- SKILL.md- agent-event-log/- SKILL.md- scripts/- o2b- vault-log- plugins/- hermes/- plugin.yaml- __init__.py- .claude-plugin/- plugin.json- .codex-plugin/- plugin.json+https://github.com/itechmeat/open-second-brain```-## Runtime strategy--Open Second Brain is plugin-first, but not plugin-only.--- Plugins provide installation, discovery, lifecycle integration, and runtime adapters.-- Skills teach agentic runtimes the protocol and safety rules.-- CLI tools provide deterministic operations that should not depend on model reasoning.-- MCP can be added later as a shared tool API over the same core.--## CLI foundation+4. Install and enable the plugin.+5. Restart Hermes or start a fresh session if the plugin list was already loaded.-Run the local CLI without installing the package:+Hermes also supports the same flow from the CLI:```bash-scripts/o2b status-scripts/o2b init --vault /path/to/vault --name "My Second Brain"-scripts/o2b doctor --vault /path/to/vault --repo .-scripts/o2b index --vault /path/to/vault-scripts/o2b append-event --vault /path/to/vault --as agent-name --date 2026.05.06 --time 10:15 "created first entry"-scripts/o2b export-config --config ~/.config/open-second-brain/config.yaml --output /tmp/open-second-brain-config.json-scripts/vault-log --vault /path/to/vault --as agent-name "compatibility event entry"+hermes plugins install itechmeat/open-second-brain --enable```-The current CLI is intentionally small and dependency-free. It supports:+Hermes documentation describes plugin install identifiers as a Git URL or `owner/repo` shorthand; the dashboard field accepts the same formats.-- config path discovery through `OPEN_SECOND_BRAIN_CONFIG`, `XDG_CONFIG_HOME`, or `~/.config/open-second-brain/config.yaml`;-- vault bootstrap with an agent-owned `AI Wiki` profile;-- vault, config, and plugin manifest health checks;-- wiki index regeneration for Markdown pages;-- redacted config export;-- append-only daily Markdown event logging;-- a `vault-log` compatibility wrapper.+## First run-Common setup flow:+Create or update the OpenSecondBrain profile inside a vault:```bash-git clone https://github.com/itechmeat/open-second-brain.git-cd open-second-brain-scripts/o2b init --vault ~/SecondBrainSandbox --name "Sandbox Brain"-scripts/o2b doctor --vault ~/SecondBrainSandbox --repo .-scripts/o2b append-event --vault ~/SecondBrainSandbox --as setup "initialized sandbox vault"-scripts/o2b index --vault ~/SecondBrainSandbox+scripts/o2b init --vault /path/to/vault --name "My Second Brain"```-The CLI is safe to run directly from the checkout. For shell use, add the repo's-`scripts` directory to `PATH`, or call `scripts/o2b` and `scripts/vault-log`-explicitly. For Python module use, set `PYTHONPATH=src` and run-`python3 -m open_second_brain.cli ...`.--## Plugin and runtime install notes--The runtime adapters are intentionally thin. They advertise deterministic CLI-commands and health checks; they do not start daemons, MCP servers, or background-automation.--- Claude Code: `.claude-plugin/plugin.json` contains command metadata for- `status`, `doctor`, `init`, `index`, `append-event`, `export-config`, and the- `vault-log` compatibility wrapper. Commands point at portable repo-relative- scripts.-- Codex: `.codex-plugin/plugin.json` declares package metadata and the skills- directory. `scripts/o2b doctor --repo .` validates required Codex manifest- fields.-- Hermes: `plugins/hermes/__init__.py` exposes `health(repo_root=None)` and- `check_health(repo_root=None)`. `register(ctx)` makes a best-effort attachment- to common context shapes such as `register_health_check(...)`,- `add_health_check(...)`, or a `health_checks` dict/list.--Create disposable test vaults with `scripts/o2b init --vault /tmp/o2b-sandbox`.-Keep secrets outside the vault and use `scripts/o2b export-config` when sharing-debug snapshots so sensitive keys are redacted.--## Releases+Check that the vault and runtime adapters are healthy:-Releases are published by GitHub Actions from `.github/workflows/release.yml`.+```bash+scripts/o2b doctor --vault /path/to/vault --repo .+```-Automatic release from a tag:+Append an agent event:```bash-git switch main-git pull --ff-only origin main-git tag -a v0.3.0 -m "Release v0.3.0"-git push origin v0.3.0+scripts/o2b append-event --vault /path/to/vault --as hermes "initialized OpenSecondBrain"```-Manual release from GitHub Actions:--1. Open **Actions → Release → Run workflow**.-2. Leave `version` empty to use `pyproject.toml`, or enter the same version with or- without the leading `v`.-3. Set `prerelease` only for prerelease builds.+Refresh the Markdown page index:-The release workflow verifies the test suite, plugin manifests, shell wrappers,-Hermes plugin syntax, and `scripts/o2b doctor --vault . --repo .` before building-source and wheel distributions and publishing a GitHub release.+```bash+scripts/o2b index --vault /path/to/vault+```-Before changing `pyproject.toml` version for a future release, update-`CHANGELOG.md` using Keep a Changelog sections.+## CLI commands-## Development+```text+o2b status Show config/vault status+o2b init Bootstrap the vault profile+o2b doctor Run vault and adapter checks+o2b append-event Append one daily event-log entry+o2b index Rebuild the Markdown page index+o2b export-config Write a redacted config snapshot+vault-log Compatibility wrapper around append-event+```-Run the test suite with the Python standard library:+The local checkout can be used without installing the Python package. Run commands through `scripts/o2b` and `scripts/vault-log`, or set `PYTHONPATH=src` for module execution.-```bash-PYTHONPATH=src python3 -m unittest discover -s tests -v-```+## Safety model-Run static syntax checks used by the initial PRs:+- Your notes stay as plain Markdown.+- Secrets are not meant to be stored in the vault.+- Config export redacts secret-like keys and values.+- Daily logs are append-only below `## Raw events`.+- The current Hermes plugin only registers lightweight health checks; it does not start background jobs.-```bash-python3 -m json.tool .claude-plugin/plugin.json >/dev/null-python3 -m json.tool .codex-plugin/plugin.json >/dev/null-python3 -m py_compile plugins/hermes/__init__.py-bash -n scripts/o2b-bash -n scripts/vault-log-```+## Repository-## License+GitHub: https://github.com/itechmeat/open-second-brain-MIT. See `LICENSE`.+License: MIT.diff --git a/__init__.py b/__init__.pynew file mode 100644index 00000000..c95c6bd2--- /dev/null+++ b/__init__.py@@ -0,0 +1,12 @@+"""Hermes plugin entrypoint for OpenSecondBrain.++Hermes installs Git plugins by cloning the repository and loading the repository+root as the plugin directory. The implementation lives in ``plugins/hermes`` so+it can also be used directly by runtimes that expect an adapter subdirectory.+"""++from __future__ import annotations++from .plugins.hermes import check_health, health, register++__all__ = ["check_health", "health", "register"]diff --git a/plugin.yaml b/plugin.yamlnew file mode 100644index 00000000..f6d5ea8c--- /dev/null+++ b/plugin.yaml@@ -0,0 +1,6 @@+name: open-second-brain+version: "0.3.1"+description: "Hermes plugin entrypoint for OpenSecondBrain vault health checks."+author: "OpenSecondBrain contributors"+kind: standalone+provides_hooks: []diff --git a/plugins/hermes/plugin.yaml b/plugins/hermes/plugin.yamlindex 35dc8d0d..f3f40ddb 100644--- a/plugins/hermes/plugin.yaml+++ b/plugins/hermes/plugin.yaml@@ -1,6 +1,6 @@name: open-second-brain-version: "0.0.1"-description: "Hermes adapter skeleton for Open Second Brain."-author: "Open Second Brain contributors"+version: "0.3.1"+description: "Hermes adapter for OpenSecondBrain vault health checks."+author: "OpenSecondBrain contributors"kind: standaloneprovides_hooks: []diff --git a/pyproject.toml b/pyproject.tomlindex 7f9abd0e..be9505f9 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -4,8 +4,8 @@ build-backend = "setuptools.build_meta"[project]name = "open-second-brain"-version = "0.3.0"-description = "Plugin-first second brain package for AI agents and humans."+version = "0.3.1"+description = "Hermes-first second brain package for Obsidian-compatible Markdown vaults."readme = "README.md"requires-python = ">=3.11"license = "MIT"diff --git a/tests/test_hermes_plugin.py b/tests/test_hermes_plugin.pyindex bf2503dd..cf8ce697 100644--- a/tests/test_hermes_plugin.py+++ b/tests/test_hermes_plugin.py@@ -1,3 +1,5 @@+import importlib.util+import sysimport unittestfrom pathlib import Path@@ -18,6 +20,22 @@ class HermesPluginTests(unittest.TestCase):def test_check_health_alias(self):self.assertEqual(check_health(ROOT)["name"], "open-second-brain")+ def test_root_plugin_entrypoint_loads_like_hermes_git_install(self):+ spec = importlib.util.spec_from_file_location(+ "open_second_brain_plugin_test",+ ROOT / "__init__.py",+ submodule_search_locations=[str(ROOT)],+ )+ self.assertIsNotNone(spec)+ self.assertIsNotNone(spec.loader)+ module = importlib.util.module_from_spec(spec)+ sys.modules[spec.name] = module+ try:+ spec.loader.exec_module(module)+ self.assertEqual(module.check_health(ROOT)["name"], "open-second-brain")+ finally:+ sys.modules.pop(spec.name, None)+def test_register_attaches_to_method_context(self):calls = []