sourceweave-web-search AGENTS.md

sourceweave-web-search AGENTS.md is an instructions file for Codex, OpenCode from MRNAQA/sourceweave-web-search. It costs 995 tokens per session, scanned A, original, MIT.

Project instructions for sourceweave-web-search, a web-search service with tools for searching and reading pages.

In plain words
What is it for?
They help agents use the service's search and page-reading tools, follow its runtime defaults, and verify generated files.
Why use it?
They identify which files and interfaces are authoritative when documentation conflicts.

Instructions file for CodexOpenCode

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 instructions/mrnaqa/sourceweave-web-search/agents-md
Clone the repo
git clone --depth 1 https://github.com/MRNAQA/sourceweave-web-search

Made for: Codex, OpenCode.

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 sourceweave-web-search AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/mrnaqa/sourceweave-web-search/agents-md.svg)](https://agentmods.dev/instructions/mrnaqa/sourceweave-web-search/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/mrnaqa/sourceweave-web-search/agents-md"><img src="https://agentmods.dev/badge/instructions/mrnaqa/sourceweave-web-search/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 995 This file is loaded in full into every session.
When invoked 995 The same file — it is already loaded in full.
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.00995 $0.00995
Opus 5 $0.00498 $0.00498
Sonnet 5 $0.00199 $0.00199
Haiku 4.5 $0.00100 $0.00100

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

Security

Grade A, and why

sourceweave-web-search AGENTS.md 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 3d 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.

AGENTS.md · 41 lines

How it starts

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

Agent Notes

Canonical Files

  • If docs conflict, trust pyproject.toml, src/sourceweave_web_search/*.py, and .github/workflows/*.yml over prose. CONTRIBUTING.md and some repo-local skill text lag current code.
  • src/sourceweave_web_search/tool.py is the source of truth. cli.py and mcp_server.py are thin wrappers around it.
  • artifacts/sourceweave_web_search.py is generated from src/sourceweave_web_search/tool.py. Rebuild with uv run sourceweave-build-openwebui; verify drift with uv run sourceweave-build-openwebui --check.
  • The public MCP contract is exactly search_web(query, domains?, urls?), read_pages(page_ids, focus?), and read_urls(urls, focus?). Some older repo prose still mentions only two tools; trust src/sourceweave_web_search/mcp_server.py and tests/test_packaging.py.

Runtime Defaults

  • Dev install: uv sync --locked --group dev.
  • Package and test defaults target host-side services: http://127.0.0.1:19080/search?format=json&q=<query>, http://127.0.0.1:19235, and redis://127.0.0.1:16379/2.
  • The compose mcp service uses container-network endpoints instead: http://searxng:8080/search?format=json&q=<query>, http://crawl4ai:11235, and redis://redis:6379/2. Do not call those the defaults unless you are inside the compose container.
  • SEARXNG_BASE_URL is normalized to a template with format=json and q=<query>; preserve that behavior when touching config handling.
  • Usual local dependency stack: cp .env.example .env && docker compose up -d redis crawl4ai searxng.
  • docker compose up -d mcp builds and runs the publishable image and exposes http://127.0.0.1:18000/mcp. Running uv run sourceweave-search-mcp --transport streamable-http uses port 8000.

Verification

  • If you touch runtime, packaging, or release surfaces, mirror the release-gate order:
    • uv run python scripts/sync_release_metadata.py --check
    • uv run sourceweave-build-openwebui --check
    • uv run ruff check src tests
    • uv run pyright src tests
    • uv run pytest tests/test_config.py tests/test_packaging.py tests/test_tool.py -m "not integration"
  • For a quick local typecheck, use uvx pyright src tests; keep uv run pyright src tests as the deterministic gate.
  • tests/test_phase4.py is a separate manual Crawl4AI HTTP check; it is excluded from pyright and the default deterministic CI gate.

Read the full file on GitHub · 41 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. 3d ago First seen · 41 lines · 995 tokens per session scan A 93db1f2daadf

Subscribe to this mod's changes

sourceweave-web-search AGENTS.md is an instructions file published in the GitHub repository MRNAQA/sourceweave-web-search (2 stars, last pushed 4mo ago), licensed MIT. It adds 995 tokens to every session, about $0.0050 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.