weave

weave is a cursor rule for Cursor from GabrielKqw/weave-agent-workflow. It costs 503 tokens per session, scanned A, original, MIT.

An engineering policy that tells a coding agent to understand the existing code, plan changes, and check the result before editing. It applies these rules automatically to coding requests.

In plain words
What is it for?
Use it to guide work that spans files, changes shared code or public interfaces, or starts a new project.
Why use it?
It reduces unnecessary code and makes assumptions, risks, and completion checks explicit before implementation begins.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/. Also seen: mentions Claude Code; mentions Codex.

Good fit Use it to guide work that spans files, changes shared code or public interfaces, or starts a new project.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/gabrielkqw/weave-agent-workflow/weave
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.

Clone the repo
git clone --depth 1 https://github.com/GabrielKqw/weave-agent-workflow

Made for: Cursor.

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 weave

README.md
[![agentmods](https://agentmods.dev/badge/rules/gabrielkqw/weave-agent-workflow/weave/github.svg)](https://agentmods.dev/rules/gabrielkqw/weave-agent-workflow/weave)
Your own site
<a href="https://agentmods.dev/rules/gabrielkqw/weave-agent-workflow/weave"><img src="https://agentmods.dev/badge/rules/gabrielkqw/weave-agent-workflow/weave/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for weave

Your own site · 80×15
<a href="https://agentmods.dev/rules/gabrielkqw/weave-agent-workflow/weave"><img src="https://agentmods.dev/badge/rules/gabrielkqw/weave-agent-workflow/weave.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 503 This file is loaded in full into every session.
When invoked 503 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00503 $0.00503
Opus 5.5 $0.00201 $0.00201
Sonnet 5.5 $0.00101 $0.00101
Haiku 4.5 $0.00050 $0.00050

Measured yesterday against content hash 91fe01c0ecce, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

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

.cursor/rules/weave.mdc · 25 lines

What it actually says

Weave policy (full mode)

WEAVE MODE ACTIVE - level: full Plan before you code, automatically, on every coding request; do not wait for /weave-plan. Think first, then write the least code that solves it.

  1. Understand: read the request and the code it touches; trace the real flow from its entry point before deciding anything.
  2. Contract: state the user-visible goal, constraints, and observable checks that prove it is done. Ask only questions whose answer changes the result; state assumptions for the rest.
  3. Ladder: stop at the first rung that holds: is it needed at all, is it already in the repo, does the standard library do it, does the platform do it natively, does an installed dependency do it, can it be fixed once at the shared point every caller uses, can code be removed instead.
  4. Plan: for work spanning several files, a public interface, or shared state, write ordered steps (file, change, check), dependencies, and real risks before the first edit. For a new project, define the smallest usable milestone and how a user will try it. For a single-concern change, the contract is the plan.
  5. Build only what the plan says. If the plan starts to need a workaround, a hack, or code you cannot justify, stop and re-plan instead of patching around it.
  6. Verify with real evidence, then compare the result with the goal before saying it is done. Rules:
  • Trace the affected flow before editing; fix shared causes, not isolated symptoms.
  • Reuse repository code, then standard-library or native features, before adding dependencies.
  • Make the smallest correct change and verify it with real evidence.
  • Never weaken validation, security, privacy, accessibility, or data safety to reduce code.
  • Working memory and saved memories must be self-contained and actionable for cross-agent handoff: capture operational rationale, end-to-end flows, business invariants, defect root causes, and explicit integration contracts — never cryptic shorthand, superficial file counts, or raw incident logs that leave the next agent without execution context.

Switch modes via Claude Code/Codex hooks (/weave off|lite|full|ultra), Weave CLI (node cli/weave.js mode <mode>), or Weave MCP tools. This static file reflects full.

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 · 25 lines · 503 tokens per session scan A 91fe01c0ecce

Subscribe to this mod's changes

weave is a cursor rule published in the GitHub repository GabrielKqw/weave-agent-workflow (5 stars, last pushed 29d ago), licensed MIT. It adds 503 tokens to every session, about $0.0020 per session on Opus 5.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-12-05.

Related

weave compared with cursor rules from other repositories

weave next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
weaveGabrielKqw/weave-agent-workflowCursor rule529d agoMITA503Cursor
development-workflownirholas/pump-fun-sdkCursor rule152yesterdaynoneA0Cursor
logging-systemnirholas/pump-fun-sdkCursor rule152yesterdaynoneA0Cursor
ponytailDietrichGebert/ponytailCursor rule205k14d agoMITA604Cursor
angular-20angular/angularCursor rule102kyesterdayMITA0Cursor
dev-standardapache/supersetCursor rule76ktodayApache-2.0A1,147Cursor
prefer-assertions-over-defensive-checksprisma/ormCursor rule48ktodayApache-2.0A0Codex, Cursor