aios: Agent for Claude Code

.claude/agents/wiki-query.md

wiki-query is an agent for Claude Code from sublimecoder/aios. It costs 68 tokens per session (343 once invoked), scanned A, original, MIT.

A read-only researcher that answers questions from a knowledge wiki for one defined identity layer at a time. It follows linked notes and cites the notes used for each answer.

In plain words
What is it for?
Finding and summarizing what the wiki says about a topic, following relevant links, citing source notes, and reporting when the wiki is silent or out of date.
Why use it?
It provides traceable answers while keeping separate areas of the wiki from being mixed together or changed accidentally.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter; mentions CLAUDE.md.

This is sublimecoder/aios's own configuration. It tells Claude Code how to work on aios itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything aios configures →

Reuse

Borrowing it

Nothing to install: this file belongs to sublimecoder/aios. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/sublimecoder/aios/main/.claude/agents/wiki-query.md
Clone the repo
git clone --depth 1 https://github.com/sublimecoder/aios

Made for: Claude Code.

Wrote 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.

agentmods badge for wiki-query

README.md
[![agentmods](https://agentmods.dev/badge/agents/sublimecoder/aios/wiki-query/github.svg)](https://agentmods.dev/agents/sublimecoder/aios/wiki-query)
Your own site
<a href="https://agentmods.dev/agents/sublimecoder/aios/wiki-query"><img src="https://agentmods.dev/badge/agents/sublimecoder/aios/wiki-query/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for wiki-query

Your own site · 80×15
<a href="https://agentmods.dev/agents/sublimecoder/aios/wiki-query"><img src="https://agentmods.dev/badge/agents/sublimecoder/aios/wiki-query.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 343 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00068 $0.00343
Opus 5.5 $0.00027 $0.00137
Sonnet 5.5 $0.00014 $0.00069
Haiku 4.5 $0.00007 $0.00034

Measured 1mo ago against content hash 63983fe9be22, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

wiki-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 1mo 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.

.claude/agents/wiki-query.md · 15 lines

What it actually says

You are the wiki query researcher for the AIOS vault, running the Query operation from the vault's CLAUDE.md in an isolated context.

  1. Your task names a question and a layer. If no layer was given, infer it from the question; if genuinely ambiguous, answer for the most likely layer and say so — never blend layers.
  2. Retrieval order (the vault's three-tier policy): read [[Knowledge Map]]'s segment for your layer first, then traverse [[wikilinks]] and frontmatter from the relevant entries. Grep is the last resort, scoped to that layer's folders. Never open another layer's dir (creator/ / professional/ / work/), and never surface life/ private items unless the question explicitly asks.
  3. Synthesize a cited answer: every claim points at its note ([[Note]] or path:line); note where the wiki is silent or stale rather than inventing.
  4. You are read-only. If the answer is worth keeping as a new note, say so and include a suggested note title + body in your report — the orchestrator files it and updates the Knowledge Map.
Changes

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.

  1. 1mo ago Changed · +1 lines · -5 tokens per session 63983fe9be22
  2. 1mo ago First seen · 14 lines · 73 tokens per session scan A 525e8fad48ad

Subscribe to this mod's changes

wiki-query is an agent published in the GitHub repository sublimecoder/aios (2 stars, last pushed 1mo ago), licensed MIT. It adds 68 tokens to every session and 343 once invoked, about $0.0003 per session on Opus 5.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-31.

Related

Other agents, from other repositories

00-session-bootstrap

Recover state from previous session including action cards, missed debriefs, and loop escalation.

assafkip/kipi-system · 21 tokens

compression-worker

Haiku-based agent for compressing verbose memories into concise summaries.

modeled-information-format/mnemonic · 15 tokens

pkm-capture

Use proactively in the background after completing significant work blocks, after git commits (triggered automatically by PreToolUse hook), or before session ends. Captures session work into the PKM vault: devlog entries, decisions, research findings, tasks, and bug documentation. Conservative — most exchanges produce…

AdrianV101/obsidian-pkm-plugin · 476 tokens

Hestia

Vault custodian instrument. Routine hygiene — sweeps DELEGATIONTRACKER for stale/closed items, flips cold-bottom-20 notes to dormant in HEATINDEX, finds and reports broken wikilinks. Tends the hearth. Voice is terse, factual, lists what was swept. Cadence: 7-day. Edit-capable for status field updates.

wrg32786/aigent-os · 0 tokens

Mnemosyne

Memory architect instrument. Active synthesis and memory architecture — applies OpenChronicle supersede semantics, compacts high-churn notes, decides what gets preserved vs overwritten. Use for superseding stale entries, compacting long-running notes, and 14-day memory sweep passes. Distinct from Hestia (mechanical…

wrg32786/aigent-os · 76 tokens

Echo

Scout/reader instrument. Traverses, summarizes, returns structured findings. Never builds. Use for vault graph traversal, comms polling, file/dir listings, code spelunking, and any read-only reconnaissance task.

wrg32786/aigent-os · 46 tokens