Skip to content
Agentmart
Submit a tool

nbrain

Search and write the company knowledge brain.

Skill by nastechresearch

IndexedMIT★ 1
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/nastechresearch-nbrain

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Search and write the company knowledge brain. Use for any question about the org, people, projects, decisions, or history, and to persist durable knowledge beyond this scope's notebook.

Use cases: writing

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Shell scripts

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/nbrain

What's inside

Skill name
nbrain
Description
Search and write the company knowledge brain. Use for any question about the org, people, projects, decisions, or history, and to persist durable knowledge beyond this scope's notebook.
License
MIT
Instructions
76 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Agent Skills spec issues

  • name: "nbrain" does not match folder "qm-harness-snippets"

Files (4)

  • SKILL.md
  • provision-scopes.sh
  • roster.example.tsv
  • tool.json

SKILL.md (first lines)

# nbrain — the company brain

This sandbox has the `nbrain` CLI connected (thin-client) to the org's central
brain. It is the deep, indexed, cross-source memory: org docs, shared channel
knowledge, and every agent's durable notes. Your scope's own notebook stays the
fast per-turn memory; the brain is where knowledge outlives a scope and becomes
searchable by everyone entitled to it.

## First-run setup (once per sandbox — skip if `nbrain remote doctor` passes)

Your scope's brain credentials arrive via the deployment's secret handoff
(keychain entry or one-time secret drop named `nbrain`). Then:

```bash
nbrain init --mcp-only \
  --issuer-url "https://brain.<org>.com" \
  --mcp-url "https://brain.<org>.com/mcp" \
  --oauth-client-id "<client id from the handoff>" \
  --oauth-client-secret "<client secret from the handoff>"
nbrain whoami   # must succeed before using any other command
```

Pass the secret with `--oauth-client-secret`, not via `NBRAIN_REMOTE_CLIENT_SECRET`:
an env-sourced secret is deliberately NOT written to `~/.nbrain/config.json`, so
every later command would fail with "No client_secret available" once the
variable is out of scope. The flag persists it to the config file on this
sandbox's durable disk, which is what the tool's credential capture expects.

Do not run `nbrain remote doctor` — it needs `admin` scope, which your client
does not have (by design). `nbrain whoami` is the read-scope health check.

## Reading (do this liberally)

```bash
nbrain search "who decided X and why"     # hybrid semantic + keyword search
nbrain get <slug>                          # read one page
nbrain query "question" --json             # search tuned for agent consumption
```

You can read: the shared agent-memory source, org read-only sources (wiki,
handbook), and everything under them. Reads are isolation-enforced server-side;
you only ever see sources your client is entitled to.

## Writing (durable knowledge only, under YOUR prefixes)

Your client is write-fenced to slug prefixes — your own namespace plus the
channels you belong to. Writes outside them are rejected server-side.

```bash
# personal durable memory (your namespace):
nbrain put emp-<your-slug>/people/jane-example --content "..."

# shared channel knowledge (channels you are in):
nbrain put chan-eng/decisions/2026-08-database-choice --content "..."
```

Conventions:
- Write conclusions and durable facts, not chat transcripts. One page per
  entity/decision/topic; update the page rather than appending near-duplicates.
- Markdown with YAML frontmatter; the brain chunks, embeds, and links it.
- Cross-reference liberally: `nbrain link <from> <to>` (from must be in your
  namespace; linking TO any readable page is fine).
- When you learn something channel-relevant in personal work, mirror the
  conclusion into the channel prefix with a `(said in <where>)` provenance
  note.

## When to reach for the brain

- Any question about the org, a person, a project, a decision, or history →
  `nbrain search` FIRST, then answer.
- You produced knowledge with value beyond this conversation → `nbrain put`.
- Something looks wrong (auth errors, empty results you don't expect) →
  `nbrain whoami` to confirm which client and scopes you're using, and report
  its output.

From nastechresearch/nbrain, MIT.

Signals

Stars
1
Forks
0
Open issues
0
Last commit (this folder)
Aug 11, 2026 (2 months ago)
Last release
Aug 11, 2026 (2 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from nastechresearch

Cite this page

nbrain skill. Agent Mart. https://agentmart.dev/skills/nastechresearch-nbrain (last updated 2026-10-24)