project-bootstrap

project-bootstrap is a cursor rule for Cursor from andr-ca/agentharness. It costs 61 tokens per session (1,110 once invoked), scanned A, original, MIT.

A guided first-run setup process for a project. It inventories existing practices, asks the project owner about decisions, and applies an agreed set of coding-agent conventions.

In plain words
What is it for?
Use it when an agent first enters a project or when the project's conventions need to be reviewed and configured.
Why use it?
It helps tailor agent behavior to an existing repository without accidentally replacing its current setup.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it when an agent first enters a project or when the project's conventions need to be reviewed and configured.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/andr-ca/agentharness/project-bootstrap
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/andr-ca/agentharness

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 project-bootstrap

README.md
[![agentmods](https://agentmods.dev/badge/rules/andr-ca/agentharness/project-bootstrap/github.svg)](https://agentmods.dev/rules/andr-ca/agentharness/project-bootstrap)
Your own site
<a href="https://agentmods.dev/rules/andr-ca/agentharness/project-bootstrap"><img src="https://agentmods.dev/badge/rules/andr-ca/agentharness/project-bootstrap/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 project-bootstrap

Your own site · 80×15
<a href="https://agentmods.dev/rules/andr-ca/agentharness/project-bootstrap"><img src="https://agentmods.dev/badge/rules/andr-ca/agentharness/project-bootstrap.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,110 The whole file, excluding the scripts and references it only reads on demand.
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.00061 $0.01110
Opus 5.5 $0.00024 $0.00444
Sonnet 5.5 $0.00012 $0.00222
Haiku 4.5 $0.00006 $0.00111

Measured 1mo ago against content hash 7e219c93cbc3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

project-bootstrap 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 1mo 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.

.cursor/rules/project-bootstrap.mdc · 113 lines

How it starts

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

Project Bootstrap

Use this the first time the harness runs in a project, or whenever the owner asks you to set it up, tailor it, or figure out which conventions apply here.

The deterministic work is done by agentharness bootstrap. Your job is the conversation — the tool inventories the repository and lists the decisions that need making; you ask the owner about them, one at a time, and feed the answers back.

Check the command exists first: agentharness bootstrap plan --help. If it is unavailable, this repository has not installed the harness CLI — fall back to tools/setup/harness-link.sh and assess the project conversationally rather than claiming a bootstrap flow exists.

The loop

# 1. Inventory (read-only — writes nothing, safe to run any time)
agentharness bootstrap plan --json

# 2. Feed answers back as you collect them
agentharness bootstrap plan --answer rigor.tier=production

# 3. Apply, only with the hash of the plan the owner approved
agentharness bootstrap apply --answer ... --confirm <plan_hash>

plan is safe to re-run at any point. Re-run it after every answer — the question set and the proposed actions both change as answers come in.

Reading the plan

{
  "detected":  [{"capability": "test", "present": true,
                 "detail": "pytest", "evidence": ["pyproject.toml"]}],
  "questions": [{"id": "rigor.tier", "prompt": "...", "default": "production"}],
  "actions":   [{"path": "ruff.toml", "summary": "Create ruff.toml"}],
  "is_resolved": false,
  "plan_hash": "..."
}
Field What it means
detected Verified facts. present: true means a config file says so, and evidence names it.
questions Decisions only the owner can make. Unanswered ones block apply.
actions Exactly what apply would create. Empty until answers ask for something.
is_resolved False while any question is unanswered.
plan_hash Changes whenever the repo or the answers change.

Read the full file on GitHub · 113 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. 1mo ago First seen · 113 lines · 61 tokens per session scan A 7e219c93cbc3

Subscribe to this mod's changes

project-bootstrap is a cursor rule published in the GitHub repository andr-ca/agentharness (1 stars, last pushed 5d ago), licensed MIT. It adds 61 tokens to every session and 1,110 once invoked, about $0.0002 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-09-03.