a nuffo guide for builders · 13 minute read

When your AI starts too much.

Claude Code, Cursor, Codex and Copilot can scaffold a new app in the time it takes to say “what if…”. That’s wonderful, and it’s why so many builders now have twelve half-built repos. Here’s how to keep your agent on the projects you’re actually finishing: rules files for every tool, a few habits, and a hook that asks first. With or without Nuffo.

Nuffo gently holding back an eager little robot on a leash that is reaching for a pile of new empty boxes

Starting is nearly free.

A new side project used to cost a weekend of setup: pick a framework, wire up auth, fight the build tool, find a name. Now it costs one prompt and a few minutes of watching files appear. The friction that used to protect your evenings is gone.

Finishing didn’t get that much cheaper. The last stretch of any project is still edge cases, real users, copy, pricing, the deploy that breaks at 11pm, and the dull decision to stop polishing. Agents help with those too, but they can’t want it for you. So the gap between “started” and “finished” is wider than it has ever been, and it fills up with repos.

None of that is the agent’s fault. It does what it’s asked, fast, and it’s trained to be helpful, which sometimes means doing a bit more than asked. The missing piece is a gentle “wait, is this one of my projects?” at the moment something new is about to begin. You can add that in layers: words the agent reads, habits you keep, and a check the agent can’t skip.

What sprawl looks like.

It rarely looks like a decision. It looks like momentum. A few shapes you might recognise:

  • The surprise repo. You asked for a small script and got npm create, a fresh folder, a README and a license. It’s now a project, apparently.
  • The “while I’m here” refactor. You asked for a bug fix. The diff renames three modules, swaps the date library and “tidies” a file nobody asked about. The bug fix is in there somewhere.
  • The unasked feature. A settings page, a dark mode, an admin panel, a caching layer. All plausible, none requested, each one more surface to test and maintain.
  • The abandoned branch. An exciting direction at midnight, a branch called experiment-v2, and then a new session that has no memory of it. Neither do you, by Thursday.
  • Five half-built MVPs. Each one got to the fun 70% and stopped where the boring 30% begins. Each one still feels like it could be the one.

If that last one stings a little, you’re in good company. Curious how many you’ve actually got going? How scattered are you? counts what you’ve announced on X against what you’ve shipped, and the project graveyard lets you bury the ones you’re done pretending about, with a kind epitaph. The underlying pull is older than AI: the shiny object syndrome guide covers why new ideas feel so much better than current ones.

Layer 1: a rules file.

Every major coding agent reads a plain-text instructions file before it starts work. It’s the cheapest guardrail there is: write your current projects down, say what “stay on task” means, and the agent sees it every session. The file names differ:

  • Claude Code: CLAUDE.md in the repo root for that project, and ~/.claude/CLAUDE.md for rules that should apply everywhere you work.
  • Cursor: rule files in .cursor/rules/, ending in .mdc, with a little frontmatter at the top. Set alwaysApply: true so the rule is included in every request, not only when Cursor decides it’s relevant.
  • Codex and others: AGENTS.md in the repo root. OpenAI’s Codex reads it, and a growing number of other tools do too, so it’s a good shared default if your team uses a mix.
  • GitHub Copilot: .github/copilot-instructions.md for repository-wide instructions.
  • Windsurf: rule files in .windsurf/rules/ (older setups used a single .windsurfrules file).

Exact behaviour shifts between versions, so check your tool’s docs if a rule seems ignored. The content, though, can be the same everywhere. Something like this:

## My current projects (max 3)
1. recipe app: launch the beta (done = 20 people using it)
2. newsletter: one issue every Sunday
3. kitchen reno (not code, but it's taking my evenings)

## How to work with me
- Only work on these projects. If a task looks like a new project, stop and ask me first.
- Never scaffold a new app, repo, package or top-level folder without asking.
- Stay inside the task I gave you. If you spot something else worth doing,
  list it at the end of your answer instead of doing it.
- No new dependencies, frameworks or databases unless I ask.
- If I bring up a new idea, add it to IDEAS.md with today's date,
  then get back to the current task.

For Cursor, the same text goes below a short frontmatter block:

---
description: Keep to my current projects
alwaysApply: true
---
(the same rules as above)

Don’t want to write it by hand? The free AI rules generator asks for your projects and builds the file for you, ready to paste.

A few things make rules files work better. Keep them short, because a wall of instructions gets skimmed by models just like by people. Write rules as plain actions (“ask before creating a new folder”) rather than values (“be focused”). And say what to do instead, not only what not to do: “list it at the end” gives the agent somewhere to put its enthusiasm.

The weakness: it’s a suggestion. In a long session, after a lot of context has scrolled past, or when you yourself say “ooh, what if we…”, the model may drift. That’s what the later layers are for.

Six habits that do most of the work.

Tools help, but most sprawl starts with the prompt. These cost nothing and work in any editor.

  1. 1

    Define “done” before you prompt

    One sentence: “done is when a logged-out visitor can sign up and see the dashboard.” Paste it into the prompt. An agent with a finish line stops at it; an agent without one keeps finding things to improve.
  2. 2

    One project per session, one project per repo

    Start a fresh session when you switch projects. Long sessions that wander across three codebases are where “while we’re at it” lives, and where the agent’s memory of your rules gets thinnest.
  3. 3

    Keep a parked-ideas file

    An IDEAS.md with a date on every line. Ideas go in, nothing gets started from it the same day. A week later, most of them have quietly cooled, and the ones that haven’t are worth a real look.
    # IDEAS.md (parked, not started)
    2026-10-02  a CLI version of the recipe app
    2026-10-05  rewrite the newsletter site in Astro?
    2026-10-08  "what if it had an AI meal planner"
  4. 4

    Ask for small PRs

    “One change, under a few hundred lines, no unrelated edits.” Small diffs are easier to review, easier to revert, and much harder to smuggle a new framework into.
  5. 5

    Say no to “while I’m here”

    When the agent offers to also refactor, also add tests for everything, also migrate the config: “not now, add it to the list.” The offer is often a good idea. It just isn’t this task.
  6. 6

    End every session with a wrap-up

    Before you close the laptop, ask for a short summary so tomorrow-you knows where things stand:
    Before we stop: list what's finished, what's half-done,
    and anything you noticed but didn't touch. Don't change any more code.

Layer 2: a hook that asks first.

Rules files ask. Hooks check. A hook is a small program your agent runs at certain moments, and unlike a rule, it runs every time, whether or not the model is paying attention.

Claude Code supports hooks configured in its settings file. Two events matter here. A PreToolUse hook runs before a tool call, such as a shell command or a file write; it receives the details as JSON on standard input and can let it through, deny it with a reason, or ask you. A SessionStart hook runs when a session begins and can hand the agent extra context, such as your current projects. Cursor has its own hooks (for example before a shell command runs) with a different format.

Here’s a tiny PreToolUse hook that only speaks up when a shell command looks like it starts a new project:

#!/usr/bin/env node
// ~/.claude/hooks/new-project-check.mjs
// Asks before a shell command that starts a new project.
let raw = "";
process.stdin.on("data", (c) => (raw += c));
process.stdin.on("end", () => {
  let cmd = "";
  try { cmd = JSON.parse(raw || "{}")?.tool_input?.command ?? ""; } catch {}
  const starts =
    /\b(npm|pnpm|yarn|bun)\s+(create|init)\b|\bnpx\s+create-|\bgit\s+init\b|\bcargo\s+new\b|\brails\s+new\b|\bgh\s+repo\s+create\b/;
  if (!starts.test(cmd)) return; // not a new project: say nothing, carry on
  process.stdout.write(JSON.stringify({
    hookSpecificOutput: {
      hookEventName: "PreToolUse",
      permissionDecision: "ask",
      permissionDecisionReason:
        "This starts a new project. Is it one of my current projects? If not, let's write the idea down and finish what's open first.",
    },
  }));
});

Then tell Claude Code to run it before shell commands:

// ~/.claude/settings.json (merge into what's there)
{
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Bash",
        "hooks": [{ "type": "command", "command": "node ~/.claude/hooks/new-project-check.mjs", "timeout": 5 }]
      }
    ]
  }
}

It’s deliberately simple. It won’t catch an agent that creates a new folder by writing files into it, or a project started with a tool not on the list, and it doesn’t know which projects are yours. But it turns the most common surprise into a question, and that’s most of the value.

Layer 3: let your AI know your projects.

The Model Context Protocol (MCP) lets an assistant call tools on a server you connect. A to-do server that exposes your current projects and today’s plan means you can ask “what should I work on?” and get an answer grounded in what you’ve actually committed to, instead of whatever was most recently in the chat.

Nuffo’s MCP server has these tools:

  • dump: add anything to your list, one thing per line in your own words (it’s sorted for you; it can never add to today).
  • get_today: today’s three, or Nuffo’s suggestion if you haven’t picked.
  • get_bets: your projects, their next steps and the things waiting in later for each.
  • get_later: what’s waiting in later, with notes, soonest due first (read-only).
  • check_bet: does this new work belong to one of your projects?
  • complete: tick something off.
  • get_wishes, edit_item, recent_changes and undo: see wishes, reword a task or add to its note, and take back the agent’s own changes (never your day).

The useful one for sprawl is dump: when an idea comes up mid-session, the agent saves it instead of starting it, and you get back to work. Setup for Claude and ChatGPT is on the connect page. One honest note: in chat apps like ChatGPT that only speak MCP, this is capture and context. Nothing checks what the AI does there; it just knows more.

Or: one command.

If you’d rather not build it yourself, the Nuffo CLI sets up all three layers for Claude Code and Cursor on your machine:

npx @nuffo/cli connect
  1. 1

    Pairs this machine with your account

    You approve a short code in the browser. No passwords in the terminal.
  2. 2

    Adds the MCP server

    In Claude Code and Cursor, so your agent knows your projects and today’s plan, and can drop new ideas on your list.
  3. 3

    Installs the hooks

    In Claude Code, a PreToolUse hook checks shell commands that start projects (npm create, git init, cargo new and friends) and files written into a brand-new top-level folder; in Cursor, the same check runs before shell commands. Anything that isn’t part of one of your projects shows up in your agent’s own permission prompt with Nuffo’s question. Yes lets it through just this once (logged only after the command has actually run); no, and you pick: add it to a project, cool it for 7 days, swap a project, or not a side project (the day job, left alone from then on).
  4. 4

    Tells your agent the rules at the start

    A session-start hook passes on your projects, today’s three, and whether the current folder belongs to a project. A short, fixed rules block goes in ~/.claude/CLAUDE.md, between clear start and end markers, so it never touches the rest of the file.

Every file it edits is backed up first. npx @nuffo/cli status checks the connection, npx @nuffo/cli scan lists the repos in your code folders so you can pick your projects, and npx @nuffo/cli disconnect removes all of it again (MCP, hooks, the rules block) and revokes the token. The hooks fail open: if Nuffo is unreachable or errors, your commands run as normal and you see one short line about it, never a silent skip. And agents can’t write today: they can add to your list, but only you pick today’s three.

More on how it fits together is on the builders page.

Three sessions, before and after.

Made up, but you’ll probably recognise at least one of them.

The weekend hacker (Claude Code)

Before. Saturday morning: “add a share button to my recipe app.” By lunch the agent has suggested a proper design system, so there’s now a ui-kit package, a Storybook, and a half-written plan to publish it to npm. The share button works on desktop. Sunday is spent on the ui-kit.

After. The repo’s CLAUDE.md lists the recipe app as the current project, with “done = 20 people using the beta”. When the agent proposes the design system, the rule says “list it at the end”, so it lands in IDEAS.mdwith a date. The hook would have asked before any new package got scaffolded anyway. Share button ships Saturday. Sunday is free.

The solo founder (Cursor)

Before. A customer reports a billing bug. The fix touches the database layer, and the agent mentions the ORM is a version behind. One “sure, go ahead” later, it’s migrating the whole data layer, tests are red, and the customer is still waiting.

After. A .cursor/rules/focus.mdc with alwaysApply: true says: fix only what was asked, no dependency upgrades unless requested, small diffs. The prompt includes a one-line finish: “done = the failing invoice test passes.” The ORM upgrade becomes a note for next week. The customer gets a reply the same afternoon.

The team dev (Copilot and Codex)

Before. An agent-opened pull request meant to add one endpoint arrives with 40 changed files: reformatted imports, a new logging helper, and a renamed folder. Review takes longer than writing it by hand would have.

After. The repo has an AGENTS.md and a .github/copilot-instructions.md with the same short rules: one change per PR, no unrelated edits, suggest extras in the PR description instead of making them. The next PR touches four files. The suggestions in the description are actually good, and get their own tickets.

Common mistakes.

  • A rules file that’s a novel. Three pages of style preferences bury the one rule that matters. Put “ask before starting anything new” near the top and keep the whole thing short.
  • Rules in one tool only. You wrote a great CLAUDE.md, then opened the same repo in Cursor. Keep the text the same across files, or use the generator to make each one.
  • A hook that blocks everything. If it asks every time, you’ll click through without reading, and soon remove it. Only speak up for real starts.
  • A hook that fails closed. A check that stops your work when it’s broken will get uninstalled the first time it matters. Fail open, and say so.
  • Treating every idea as a threat. The goal is fewer accidental starts, not fewer ideas. Write them down generously.
  • Never saying no to yourself. Most sprawl isn’t the agent going rogue. It’s you, at 1am, saying “ooh, yes”. Guardrails are for that person too.
  • Too many projects in the file. If the rules list eight current projects, the agent can justify anything. Three projects is plenty; shelve the rest with a note on where you stopped.

Quick answers

Does a CLAUDE.md slow Claude down?

Not in any way you’d notice. It’s loaded as context at the start of a session, so a very long one takes up room and can blur the bits that matter. Keep it short: your projects, a few rules, the commands you actually use. Twenty sharp lines beat three pages.

Can Claude Code hooks block a command?

Yes. A PreToolUse hook runs before a tool call such as a shell command. It can let it through, deny it with a reason, or ask you first. The example on this page asks only when a command looks like it starts a new project.

Can I use this with Cursor?

Yes. Put the same rules in a .cursor/rules/*.mdc file with alwaysApply: true. Cursor also has its own hooks (the Nuffo CLI uses its beforeShellExecution, afterShellExecution and sessionStart hooks), with a different response format from Claude Code’s, so the do-it-yourself hook here is for Claude Code only.

What about Codex, Copilot and Windsurf?

The rules part works everywhere: AGENTS.md for Codex and a growing list of other tools, .github/copilot-instructions.md for GitHub Copilot, and Windsurf’s rules folder. Hooks and permission settings differ from tool to tool, so check their docs before relying on them. Nuffo’s hook and one-command setup cover Claude Code and Cursor today.

What if I really want a new project?

Then start it, on purpose. The point isn’t to never begin anything; it’s that a new project is a decision you make, not something that happens on the way to a bug fix. If you’re already at three projects, shelve one first, with a note on where you left it.

Does it work with ChatGPT?

As capture and context, yes: connect ChatGPT to Nuffo over MCP and it can save ideas to your list and see your projects and today’s three. Nothing checks what ChatGPT does, though, so it’s a helpful memory, not a guard. Enforcement needs a hook, which today means Claude Code or Cursor.

Will a hook slow my agent down?

A small local script adds a few milliseconds. If you call a server, keep a short timeout and let the command through if the check fails (fail open), so your work never stops because a check is down.

Is a rules file enough on its own?

It helps a lot, and it’s free. But models don’t always follow instructions, especially deep into a long session or when you yourself are the one getting excited. A hook is the part that can’t be talked out of it.

What does Nuffo add, and what does it cost?

Your projects (three at most) live in one place, across tools. The hook checks new projects against them (folders, repo remotes, keywords), your AI can read your projects and today’s plan over MCP, and new project ideas wait a week before they can start. Everything an agent adds leaves an undoable receipt. The rules and one connected AI are free; the hook and project check are builder mode, part of Pro (every new account starts with 14 days of it, no card).

Your AI starts everything. Nuffo makes you finish.

Three projects, three things a day, and a hook that asks before your agent starts a fourth project. The rules are free; builder mode is Pro, and you get 14 days of it to start. Then go live a little.

Start free