A Claude Code plugin
Every session starts knowing where to look
Globu registers the knowledge bases on your machine and tells Claude Code which to read and where to write back.
Nothing in a repo has to change
A knowledge base is a docs/ directory of Markdown. Globu reads it as it is and keeps everything about your set of repos in ~/.globu.
- Basedocs/index.md
- A
docs/directory whoseindex.mdcarries the authoring guide, plus a dated log and concept docs with frontmatter. Any editor works andglobu base validatechecks the shape. A repo can hold many bases, one per package, and knowledge about a piece of code belongs in the nearest one above it. - Shard~/.globu/manifest.yaml
- One registered repo, with two lines of routing text: what it holds and when to consult it. Every shard has a mode. A read-only shard is never edited, an
askshard makes Claude Code prompt before an edit from another repo and a writable one is open. - Contextglobu use work
- A named selection of shards, such as
workorpersonal. The active context decides which shards a new session sees. The manifest is portable: keep it in your dotfiles or let a team share one.
From an empty repo to a session that knows
Three skills and one hook. Each step is a command in Claude Code and nothing is left to remember by hand.
/globu:setup-knowledge-baseGive a repo a base
Creates docs/index.md with the authoring guide and docs/log.md, or upgrades a base that is already there.
/globu:update-knowledgeRecord what a session learned
Routes each decision, root cause or gotcha to the doc that owns it, adds a log entry and validates. The edits ship in the same commit as the code.
/globu:register-knowledge-baseRegister the repo
Adopts it as a shard and drafts its routing text. A repo given by URL is cloned read-only under ~/.globu.
claudeWork from any other repo
The session begins with the shard index. When a task touches a shard's area, Claude reads its entry file, and writes back within that shard's mode.
Built to stay out of the way
Plain Markdown, any editor
Bases follow OKF: frontmatter, an index and a log. People and agents edit the same files, and the structure is checked, not the prose.
docs/architecture.md --- type: "Architecture" title: "Request pipeline" description: "How a request moves from nginx to Firestore." ---
Three modes
Not every repo may be edited from everywhere. A hook enforces the mode for the file tools and, best effort, for shell commands.
readNever edited. Clones made from a URL start here.askSessions in the repo edit freely, every other session prompts first.writeOpen from anywhere.
One manifest for the team
Keep a manifest.yaml in a shared repo. A new machine or a CI job merges it and clones what is missing.
globu import git@github.com:acme/team.git globu sync
Hooks do the enforcing
The plugin wires three Claude Code hooks, so the rules hold whether or not anyone remembers them.
- Session startPrints the shard index for the directory the session runs in.
- GuardBlocks edits to read-only shards and asks before edits to shards in ask mode.
- ValidateChecks a base right after an edit and hands the errors back in the same session.
Install'%3e%3cellipse%20cx='100'%20cy='116'%20rx='86'%20ry='20'%20fill='none'%20stroke='%23faf5e6'%20stroke-width='37'/%3e%3c/g%3e%3ccircle%20cx='100'%20cy='110'%20r='65.0'%20fill='%23faf5e6'/%3e%3cg%20transform='rotate(-10%20100%20116)'%3e%3cellipse%20cx='100'%20cy='116'%20rx='86'%20ry='20'%20fill='none'%20stroke='%230f1428'%20stroke-width='27'/%3e%3cellipse%20cx='100'%20cy='116'%20rx='86'%20ry='20'%20fill='none'%20stroke='%23c76f08'%20stroke-width='11'/%3e%3c/g%3e%3ccircle%20cx='100'%20cy='110'%20r='56'%20fill='%23fadca0'/%3e%3cg%20clip-path='url(%23r11b)'%3e%3cpath%20d='M100%20110m-80%200a80%2080%200%201%200%20160%200a80%2080%200%201%200%20-160%200ZM86%2098m-58%200a58%2058%200%201%201%20116%200a58%2058%200%201%201%20-116%200Z'%20fill-rule='evenodd'%20fill='%23f4c280'/%3e%3cg%20transform='rotate(-10%20100%20116)'%3e%3cg%20clip-path='url(%23r11s)'%3e%3cellipse%20cx='100'%20cy='132'%20rx='86'%20ry='20'%20fill='none'%20stroke='%23e9a865'%20stroke-width='14'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3ccircle%20cx='100'%20cy='110'%20r='56'%20fill='none'%20stroke='%230f1428'%20stroke-width='8'/%3e%3cg%20transform='rotate(-10%20100%20116)'%3e%3cg%20clip-path='url(%23r11f)'%3e%3cellipse%20cx='100'%20cy='116'%20rx='86'%20ry='20'%20fill='none'%20stroke='%230f1428'%20stroke-width='27'/%3e%3cellipse%20cx='100'%20cy='116'%20rx='86'%20ry='20'%20fill='none'%20stroke='%23f58600'%20stroke-width='11'/%3e%3cellipse%20cx='100'%20cy='116'%20rx='88.75'%20ry='22.75'%20fill='none'%20stroke='%23c76f08'%20stroke-width='5.5'/%3e%3c/g%3e%3c/g%3e%3cpath%20d='M75%2098.45Q82%2088.65%2089%2098.45'%20fill='none'%20stroke='%230f1428'%20stroke-width='5.6'%20stroke-linecap='round'/%3e%3cpath%20d='M111%2098.45Q118%2088.65%20125%2098.45'%20fill='none'%20stroke='%230f1428'%20stroke-width='5.6'%20stroke-linecap='round'/%3e%3c/svg%3e)
The plugin runs its CLI from an npm package that Claude Code installs with it, so node 22 or newer and npm must be on the PATH.
Latest release 0.3.3, 9 October 2026. MIT licence. Source on GitHub, the CLI on npm.
claude plugin marketplace add Mercastra/globu claude plugin install globu@globu
npm install -g @mercastra/globu globu base --help