query

A read-only search command for finding information in Founder OS files, with index, timeline, and full-detail search modes.

In plain words
What is it for?
Use it with a question or topic to find related files, view an overview or timeline, or inspect the full matching content.
Why use it?
It avoids manually opening many files when you need to locate notes or trace a topic over time.

Command for Claude Code

Install

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.

agentmods
npx agentmods add commands/arcassystems/founderos/query
Clone the repo
git clone --depth 1 https://github.com/ARCASSystems/FounderOS

Made for: Claude Code.

Per session 53 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 905 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00053 $0.00905
Opus 5 $0.00026 $0.00452
Sonnet 5 $0.00011 $0.00181
Haiku 4.5 $0.00005 $0.00090

Measured 2d ago against content hash b51bc2fde8e9, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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 2d 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/commands/query.md · 60 lines

How it starts

The opening of the file, as written. The whole thing — 60 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Founder OS query

Run the query skill at skills/query/SKILL.md end to end.

Procedure

  1. If $ARGUMENTS is empty, reply What should I query? Re-run as /founder-os:query <question>. and stop.

  2. If core/identity.md does not exist, reply Founder OS not set up here. Say "set up Founder OS" first. and stop.

  3. If skills/query/SKILL.md is missing, reply Query skill not found at skills/query/SKILL.md. Restarting Claude Code fixes this most of the time, because it reloads what is installed. If it happens again after a restart, say "update Founder OS". and stop.

  4. If scripts/query.py exists, invoke it via the Bash tool using the env form below so user input is never interpolated into a shell command line. The user's $ARGUMENTS may contain ;, |, backticks, or $(...) and the shell would execute them if pasted verbatim.

    Plain question (no -- flags in $ARGUMENTS): pass the question as one argument via an env var. Substitute the placeholder __QUESTION__ literally with the user's argument string (do not escape, do not quote - the env var carries it intact):

    FOUNDER_OS_Q='__QUESTION__' python scripts/query.py "$FOUNDER_OS_Q"
    

    Argument string contains flags (--mode, --ids, --anchor, --root): parse the user's argument string into individual tokens yourself (split on whitespace), then call python scripts/query.py with each token as a separate Bash tool argument. Do not concatenate them into a single command-line string. Reject any token whose first character is not in [A-Za-z0-9_/.-] or that contains ;, |, &, backticks, $(, or > - reply Refusing to forward potentially unsafe argument token: <token> and stop.

    If neither form fits, stop and reply: Could not parse arguments safely. Re-run as /founder-os:query "<your question>" or with explicit flags.

The underlying script also accepts --root <path> for direct CLI use, for example python scripts/query.py --root /path/to/archive "outreach stalled".

Read the full file on GitHub · 60 lines

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. 2d ago First seen · 60 lines · 53 tokens per session scan A b51bc2fde8e9

Subscribe to this mod's changes

query is a command published in the GitHub repository ARCASSystems/FounderOS (5 stars, last pushed 18d ago), licensed MIT. It adds 53 tokens to every session and 905 once invoked, about $0.0003 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-31.