web-ingest

web-ingest is a command for coding agents from proticom/gnosys. It costs 0 tokens per session (525 once invoked), scanned A, original, MIT.

Crawl the configured source and generate knowledge markdown files.

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/web-ingest
Clone the repo
git clone --depth 1 https://github.com/proticom/gnosys

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 web-ingest

README.md
[![agentmods](https://agentmods.dev/badge/commands/proticom/gnosys/web-ingest.svg)](https://agentmods.dev/commands/proticom/gnosys/web-ingest)
Your own site
<a href="https://agentmods.dev/commands/proticom/gnosys/web-ingest"><img src="https://agentmods.dev/badge/commands/proticom/gnosys/web-ingest.svg" alt="Measured on agentmods" height="20"></a>
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 525 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown 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.00525
Opus 5 $0.00000 $0.00262
Sonnet 5 $0.00000 $0.00105
Haiku 4.5 $0.00000 $0.00052

Measured today against content hash 8340ab442edd, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

web-ingest 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 today.

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/web-ingest.md · 72 lines

What it actually says

gnosys web ingest

Crawl the configured source and generate knowledge markdown files.

Usage

gnosys web ingest
gnosys web ingest --source https://example.com/sitemap.xml --verbose
gnosys web ingest --prune --no-llm --dry-run --json

Prerequisites

Run gnosys web init first so gnosys.json contains a web configuration.

Options

Option Description
--source <url> Override sitemap URL or content directory for this run
--prune Remove orphaned knowledge files
--no-llm Force structured mode (skip LLM enrichment)
--concurrency <n> Parallel processing limit (default 3)
--dry-run Show what would change without writing files
--verbose Print per-page details
--json Output results as JSON

Behavior

  1. Loads config from the active web store path.
  2. Exits with guidance to run gnosys web init when web config is missing.
  3. Passes resolved source, output directory, categories, exclude rules, pruning, LLM, concurrency, crawl delay, dry-run, and verbose options into ingestSite.
  4. --source overrides both sitemap URL and content directory when set.
  5. --no-llm forces llmEnrich: false regardless of config.

Human output

Ingestion complete (1234ms):
  Added:     5
  Updated:   2
  Unchanged: 10
  Removed:   1
  Errors:    1
    https://example.com/bad: timeout

JSON output

Emits the full ingestSite result object. On error with --json:

{
  "ok": false,
  "error": "No web configuration found in gnosys.json. Run 'gnosys web init' first."
}

Validation

cd gnosys-public
npm run cli -- web ingest --help
npx vitest run src/test/web-ingest-command-handler.test.ts
  • gnosys web init — initial web knowledge base setup.
  • gnosys web build-index — generate search index JSON from knowledge files.
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. today First seen · 72 lines · 0 tokens per session scan A 8340ab442edd

Subscribe to this mod's changes

web-ingest is a command published in the GitHub repository proticom/gnosys (4 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 525 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-09-03.