repofinder.io AGENTS.md

A set of project instructions for RepoFinder, a service that recommends maintained open-source repositories related to a developer’s repository or public website and goal.

In plain words
What is it for?
Working on RepoFinder’s recommendation engine, browser API, MCP interface, Cloudflare Worker, D1 database, frontend, and OpenAI integration.
Why use it?
It gives coding agents the project’s architecture, runtime, security boundaries, and rules so changes remain consistent with the existing system.

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/motozero/repofinder.io/agents-md
Clone the repo
git clone --depth 1 https://github.com/motozero/repofinder.io

Made for: Codex, OpenCode.

Per session 510 This file is loaded in full into every session.
When invoked 510 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.00510 $0.00510
Opus 5 $0.00255 $0.00255
Sonnet 5 $0.00102 $0.00102
Haiku 4.5 $0.00051 $0.00051

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

Security

Grade A, and why

repofinder.io 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 yesterday.

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 · 59 lines

How it starts

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

RepoFinder

RepoFinder accepts a GitHub repository or public website plus a developer goal. It returns maintained open source repositories that complement the source, with project-specific reasoning and integration guidance.

This repository is also a Codex teaching artifact. Keep the product, lessons, skills, and claims in sync.

Architecture

  • src/engine.ts owns all recommendation logic through recommend(input, goal, env).
  • src/index.ts exposes the browser HTTP API.
  • src/mcp.ts exposes the same engine as the recommend_repos MCP tool.
  • src/openai.ts is the only OpenAI provider boundary.
  • Surfaces validate and shape requests. They never duplicate engine logic.

Runtime

  • Cloudflare Worker with Static Assets and an isolated D1 database.
  • TypeScript and ES modules. The frontend is plain HTML, CSS, and JavaScript.
  • OpenAI Responses API with strict JSON Schema outputs.
  • gpt-5.6-luna handles extraction. gpt-5.6-terra handles ranking and explanations.
  • Live GitHub ranking is the labeled fallback when OpenAI is missing or unavailable.

Isolation

All production resources belong to RepoFinder:

  • GitHub: motozero/repofinder.io
  • Worker: repofinder-io
  • D1: repofinder-io
  • Domain: repofinder.io

Do not bind, route, deploy, or store data in RepoRecommender resources.

Security and privacy

  • Never commit secrets. Local values live in .dev.vars; production values use Wrangler secrets.
  • Keep GitHub access read only and least privilege.
  • Bound every public input. Validate public website targets and every redirect to reduce SSRF risk.
  • Preserve security headers and the Content Security Policy.
  • Do not claim model output is deterministic or authoritative.

Product writing

  • Use sentence case headings.
  • Be direct and concrete. Avoid filler and marketing superlatives.
  • Do not use em dashes or doubled hyphens in prose.
  • Clearly label OpenAI-ranked output and fallback output.

Quality gates

Before shipping:

  1. Run npm run typecheck.
  2. Run npm test.
  3. Exercise the affected flow in a real browser.
  4. Review input validation, secret handling, fallback behavior, and deployment isolation.

Read the full file on GitHub · 59 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. yesterday First seen · 59 lines · 510 tokens per session scan A 8e5f1caa5e0b

Subscribe to this mod's changes

repofinder.io AGENTS.md is an instructions file published in the GitHub repository motozero/repofinder.io (1 stars, last pushed 26d ago), licensed MIT. It adds 510 tokens to every session, about $0.0026 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.

Related

Other instructions, from other repositories