researchforge-ship

researchforge-ship is a cursor rule for coding agents from forger-labs-hq/researchforge. It costs 0 tokens per session (769 once invoked), scanned A, original, Apache-2.0.

A controlled process for shipping a validated experiment as a local branch, an engineering report, or an optional pull request. An experiment is a tested change compared with a fixed starting version.

In plain words
What is it for?
Use it to create a clean local branch, generate a report of the experiment and its results, or prepare an optional pull request.
Why use it?
It preserves the evidence behind the result and requires confirmation that the change improved the chosen measure before shipping it.

Cursor rule

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 rules/forger-labs-hq/researchforge/researchforge-ship
Clone the repo
git clone --depth 1 https://github.com/forger-labs-hq/researchforge

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 researchforge-ship

README.md
[![agentmods](https://agentmods.dev/badge/rules/forger-labs-hq/researchforge/researchforge-ship.svg)](https://agentmods.dev/rules/forger-labs-hq/researchforge/researchforge-ship)
Your own site
<a href="https://agentmods.dev/rules/forger-labs-hq/researchforge/researchforge-ship"><img src="https://agentmods.dev/badge/rules/forger-labs-hq/researchforge/researchforge-ship.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 769 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.00769
Opus 5 $0.00000 $0.00385
Sonnet 5 $0.00000 $0.00154
Haiku 4.5 $0.00000 $0.00077

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

Security

Grade A, and why

researchforge-ship 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 5d 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.

src/researchforge/cursor/rules/researchforge-ship.mdc · 77 lines

How it starts

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

Ship a validated result

Three steps, each more outward-facing than the last. Every one is gated by the engine (contract flags + typed confirmations) and each gate exists for the user to open, not you.

1. Local branch (never pushed)

researchforge ship branch --json

Requires shipping.allow_branch_creation in the approved contract and a typed confirmation — ask the user to run it, or use --yes only with their explicit go-ahead in this conversation. The engine re-runs the full benchmark once (pre-ship confirmation) and refuses to ship on failure, constraint violation, or unconfirmed improvement. The result is one clean commit on the frozen baseline, as a local branch only — the user's checkout and remotes are untouched. Report the branch name, commit, and pre-ship metric from the JSON.

2. Engineering report

researchforge report build --json

Writes .researchforge/reports/engineering-report.md — the full evidence chain (objective → baseline → experiments → rejected approaches → validation → recommendation → exact reproduction steps), built from recorded data only. Offer to walk the user through it.

3. Draft PR (opt-in, pushes to the remote)

researchforge ship pr --json

This pushes one branch to the user's remote and opens a draft PR via gh. It is double opt-in: shipping.allow_draft_pr must be true in the approved contract AND a typed push confirmation is required. Confirm with the user in chat before this step every time; never use --yes here unless they just told you to push. If the contract flag is off, tell the user how to enable it (edit researchforge.yaml, re-approve the contract) — do not look for another way to push.

Open-source / third-party repositories — ask first. Before shipping a PR, ask the user how they relate to the repository:

  • They have push access (their own repo, or a repo they maintain): ship pr pushes a feature branch to it and opens the draft PR there.
  • They do not have push access (an open-source repo they cloned): the engine detects this, offers to fork into their GitHub account (typed fork confirmation — the user must type it), pushes the branch to the fork, and opens a cross-repo draft PR against the upstream. Never fork without that typed consent, and confirm which GitHub account gh is authenticated as (gh api user -q .login) so the fork lands where the user expects.

Read the full file on GitHub · 77 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. 5d ago First seen · 77 lines · 0 tokens per session scan A b8feb8032f82

Subscribe to this mod's changes

researchforge-ship is a cursor rule published in the GitHub repository forger-labs-hq/researchforge (7 stars, last pushed 3d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 769 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.

Related

Other cursor rules, from other repositories