query

A filter for finding agents in an aweek project by role, status, budget, or words in their profile and instructions.

In plain words
What is it for?
Use it to return the agents matching requests such as active marketers, paused researchers, or agents whose profile mentions a specific service.
Why use it?
It avoids manually searching agent files when a task applies to a group of agents.

Skill for Claude CodeCodex

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 skills/runbear-io/aweek/query
Any agent
npx skills add runbear-io/aweek --skill query
Clone the repo
git clone --depth 1 https://github.com/runbear-io/aweek

Made for: Claude Code, Codex.

Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,072 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.00029 $0.02072
Opus 5 $0.00015 $0.01036
Sonnet 5 $0.00006 $0.00414
Haiku 4.5 $0.00003 $0.00207

Measured 2d ago against content hash 2ac89e7c76e2, 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.

skills/query/SKILL.md · 218 lines

How it starts

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

aweek:query

Slug-returning filter over the aweek agent roster. Use this skill any time a request names a subset of agents rather than a single one — e.g. "the active marketers", "every paused researcher", "agents whose persona mentions X.com". Reads identity (name, description, system prompt) live from .claude/agents/<slug>.md, and lifecycle state from the existing stores; never mutates anything.

Downstream skills (/aweek:plan, /aweek:manage, future /aweek:bulk-plan) are expected to consume the agents[].id list from this skill's JSON result instead of hand-rolling grep over .claude/agents/*.md.

Filters

All filters are optional. Omitting every one returns the full roster.

Filter Semantics
role Case-insensitive substring match against the subagent .md description. "marketer" → matches "Content marketer", "Senior Brand Marketer", etc.
keyword Case-insensitive substring search across name + description + system-prompt body. Use this when the distinguishing trait isn't in the one-line description — e.g. keyword: "x.com" to find every persona that publishes to X.com. Result carries matchedOn so the skill can show where it hit.
status One (or comma-separated many) of active, paused, idle, running, missing-subagent. Matches the lifecycle states used by /aweek:summary, plus the synthetic missing-subagent for orphaned aweek JSON.
budget no-limit (weekly limit is 0), under (utilization < 100%), or over (utilization ≥ 100%).

Notes on interaction

  • role and keyword require a readable .md file. Rows whose .md is missing drop out of those filters automatically; use status=missing-subagent (without role/keyword) to find orphans.
  • status=active means "has an approved plan with pending/in-progress work". Paused agents never match status=active.
  • Filters combine with AND. "Active marketers" = role=marketer status=active.

Instructions

Read the full file on GitHub · 218 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 · 218 lines · 29 tokens per session scan A 2ac89e7c76e2

Subscribe to this mod's changes

query is a skill published in the GitHub repository runbear-io/aweek (11 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 29 tokens to every session and 2,072 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.