Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/imphillip/gbrain-openclaw/querynpx skills add imphillip/gbrain-openclaw --skill querygit clone --depth 1 https://github.com/imphillip/gbrain-openclawWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/imphillip/gbrain-openclaw/query)<a href="https://agentmods.dev/skills/imphillip/gbrain-openclaw/query"><img src="https://agentmods.dev/badge/skills/imphillip/gbrain-openclaw/query.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00029 | $0.00555 |
| Opus 5 | $0.00015 | $0.00278 |
| Sonnet 5 | $0.00006 | $0.00111 |
| Haiku 4.5 | $0.00003 | $0.00056 |
Grade A, and why
gbrain-query scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
Query Skill
Strategy: Three-layer search
-
FTS5 keyword search —
gbrain search "<query>"— fast, exact matches. Best for: names, company names, specific terms, acronyms. -
Semantic vector search —
gbrain query "<question>"— meaning-based. Best for: "who knows X?", "what's our thesis on Y?", conceptual or relationship questions. Requires OPENAI_API_KEY and at least onegbrain embedrun. -
Structured queries — relational navigation.
gbrain list --type person --tag yc-alumgbrain backlinks <slug>— who links to this page?gbrain timeline <slug>— what happened with this person/company?gbrain tags <slug>— what is this page tagged with?
Workflow
- Decompose the question into search strategies.
- Run FTS5 search for key terms.
- Run semantic query for the full question (if embeddings available).
- Merge and deduplicate results.
- For top results,
gbrain get <slug>to read full pages. - Synthesize answer with citations: "Jane Doe"
- If the answer is valuable enough to keep, consider creating a page:
cat answer.md | gbrain put concepts/topic
Ranking heuristic
- FTS5 score × 0.4 + vector similarity × 0.6 = combined score
- Boost pages with type matching the question intent (+0.2 for person queries hitting person pages)
- Boost pages updated recently
- Prefer pages with richer content (longer compiled_truth)
When you don't know
Say so. "The brain doesn't have info on X" is honest and useful. Suggest enrichment: "Want me to research X and add them to the brain?"
Examples
# Find a person
gbrain search "Jane Doe"
gbrain get people/jane-doe
# Relationship question
gbrain query "who is connected to Anthropic?"
# Relational: all YC founders
gbrain list --type person --tag yc-alum
# What links to a company page?
gbrain backlinks companies/acme-corp
# Recent activity
gbrain list --limit 20 # sorted by updated_at desc
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 4d ago First seen · 69 lines · 29 tokens per session scan A 5493b678b06a
gbrain-query is a skill published in the GitHub repository imphillip/gbrain-openclaw (11 stars, last pushed 5mo ago), licensed MIT. It adds 29 tokens to every session and 555 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
my-wiki
Manage local OKF-compatible Markdown My Wiki vaults with an AI agent. Use for capturing webpages, PDFs, Office documents, notes, images, folders, and ZIP bundles as References; maintaining Reference-to-Concept evidence links; searching or answering from a vault; checking or repairing vault health; switching among…
kb
Set up, evolve, or operate a hraness/kb local-first Markdown knowledge base for coding-agent memory. Use when a user asks to design KB conventions or a recurring KB ritual; search or query a KB or Obsidian vault; load or recover repository context, plans, decisions, concepts, backlinks, semantic search, or Git…
brain-ops
Brain knowledge base operations. The core read/write cycle: brain-first lookup, read-enrich-write loop, source attribution, ambient enrichment, back-linking. Read this before any brain interaction.
display
Expose the organized knowledge base through a readable frontend experience. Use when a user wants to browse the knowledge base visually as a lightweight site instead of reading raw Markdown files directly. Supports building viewers for specific data paths (e.g., individual books) or the entire knowledge base.
llm-wiki
基于思源笔记的 LLM Wiki 知识库工作流。支持全自动摄入、查询知识图谱、质量检查、矛盾检测。依赖 siyuan-skill。触发词:整理笔记、处理这篇文章、知识库查询、检查知识质量、摄入文档。.
openclaw-enterprise-knowledge-base
Use when creating, auditing, repairing, validating, or syncing an enterprise Markdown or Obsidian knowledge base for OpenClaw agents. Applies to ontology-style wiki pages, governed business objects, hot.md startup cache, agent-safe visibility rules, OpenClaw manifests, RAG handoff, sales/support action governance, and…