fsearch

A search command that looks through project, user, and global memories, then ranks the matches by scope and relevance.

In plain words
What is it for?
Use it to find related decisions, notes, or background across your current project and other saved memory scopes.
Why use it?
It avoids searching each memory scope separately when you need context from different places.

Command

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/proticom/gnosys/fsearch
Clone the repo
git clone --depth 1 https://github.com/proticom/gnosys
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 430 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.00000 $0.00430
Opus 5 $0.00000 $0.00215
Sonnet 5 $0.00000 $0.00086
Haiku 4.5 $0.00000 $0.00043

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

Security

Grade A, and why

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

docs/commands/fsearch.md · 76 lines

What it actually says

gnosys fsearch

Federated search across project, user, and global scopes with tier boosting.

Usage

gnosys fsearch "auth tokens"
gnosys fsearch "auth tokens" --scope project,user
gnosys fsearch "auth tokens" --no-global --json
gnosys fsearch "auth tokens" --directory /path/to/project --limit 10

Options

Option Description
-l, --limit <n> Max results (default 20)
-d, --directory <dir> Project directory for context detection
--no-global Exclude global-scope memories
--scope <scope> Filter scopes: project, user, global (comma-separated)
--json Output results as JSON

Behavior

  1. Opens central DB; exits if unavailable (Central DB not available.).
  2. Detects current project via --directory when provided.
  3. Parses comma-separated --scope values.
  4. Calls federatedSearch with includeGlobal derived from Commander's --no-global negation (opts.global).
  5. Closes central DB in finally.

Human output

Prints project context line, then ranked results with scope, score, boosts, and snippet preview.

No results:

No results for "<query>".

Context lines:

Context: project <projectId>

or

No project detected

JSON output

{
  "query": "...",
  "projectId": "...",
  "count": 3,
  "results": [ ... ]
}

Validation

cd gnosys-public
npm run cli -- fsearch --help
  • gnosys search — local FTS search without federated tier boosting.
  • gnosys discover — keyword discovery.
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 · 76 lines · 0 tokens per session scan A f7f3ce548f4d

Subscribe to this mod's changes

fsearch is a command published in the GitHub repository proticom/gnosys (4 stars, last pushed 16d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 430 tokens. 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.