Skip to content

Quick Wins in Your First 24 Hours

Quick wins with Claude Code, Codex and Cursor are ten first-day techniques that pay off in minutes: five need no configuration (explaining code, characterization tests, test-first bug fixes, guarded refactors, and a pre-push review), and five need 10–30 minutes of setup. Each win pairs a copy-paste prompt with a check that proves the result without reading every line.

This page is for a developer who installed an agent yesterday and has not trusted it with real work yet. You have a standup in an hour, a module nobody has tested, and a stack trace from last night’s deploy. The prompts below work on that code today, and every one of them ends in evidence you can check in under a minute: a test that went red then green, a cited line number, a review report.

Not installed yet? Start with the Claude Code, Codex or Cursor quick start.

What you’ll walk away with from your first day

Section titled “What you’ll walk away with from your first day”
  • Five prompts that work on your real repository with nothing configured beyond installation
  • Five one-time setups — an instructions file, live library docs, plan-first work, a reusable skill, and parallel worktrees — that improve every task after them
  • A verification habit for each technique, so you judge the agent by evidence instead of by rereading its diff
  • A baseline you can measure against tomorrow, instead of a feeling

Start from a clean Git working tree (git status shows nothing to commit). A clean tree is your undo button: whatever the agent does, git diff shows it and git restore . removes it.

Stay on the tool’s default model on day one. The rule this site follows is to start on the default, raise effort before switching model, and switch only when your own results say so; the models hub lists the current defaults and prices.

  1. In a terminal at the repository root, run claude.
  2. Run /init. Claude Code writes a CLAUDE.md describing the project, its commands and its conventions. Read it now; Win 6 improves it.
  3. Check the permission mode in the footer; Shift+Tab cycles through the modes, including Manual, Accept edits, Plan and Auto. Manual asks before Claude edits a file or runs a command.
  4. Ask What is this project, and which commands build, test and lint it? A correct answer means the agent can run your checks, and every win below depends on that.

First 30 minutes: five wins with no configuration

Section titled “First 30 minutes: five wins with no configuration”

These five prompts are the same in all three tools. Paste them into a Claude Code or Codex session, or into Cursor’s Agent panel. Replace the file paths with a real file from your repository.

Win 1: Understand unfamiliar code with cited line numbers

Section titled “Win 1: Understand unfamiliar code with cited line numbers”

A 200-line function with cryptic names is a reading problem, not a writing problem, so keep the agent read-only. The verification is built into the prompt: every claim must cite a line, and you check two of them.

Check it: open two of the cited lines. If either does not say what the agent claims, discard the explanation and ask again with a smaller scope.

Win 2: Pin down current behaviour with characterization tests

Section titled “Win 2: Pin down current behaviour with characterization tests”

Tests for untested code are a strong first task, because they make every later change checkable. Ask for tests that record what the code does now, bugs included, rather than what it should do.

Check it: the last step is a one-line mutation test. If no test goes red when the code changes, the suite is decoration. The characterization tests guide covers the full technique.

Win 3: Fix a bug from the stack trace, test first

Section titled “Win 3: Fix a bug from the stack trace, test first”

Pasting a stack trace and asking for a fix works, but the fix is only proven when a test reproduced the bug first. Order matters: red, then fix, then green.

Replace PASTE_STACK_TRACE_HERE with the full trace, including the lines from your own code. Redact tokens, emails and customer identifiers from the trace before you paste it.

Check it: you need two outputs, the new test failing before the fix and the whole suite passing after it. A fix with no failing test first may have fixed a different problem.

Win 4: Refactor a long function behind a test gate

Section titled “Win 4: Refactor a long function behind a test gate”

A refactor is safe when behaviour is pinned before the structure changes. The prompt makes the agent build that pin first when it is missing.

Check it: the same tests pass before and after, and the type check and lint are clean. You review the shape of the new functions, not every moved line.

Before a human reviewer sees the change, have an agent review it. The built-in review commands read the diff and report findings with file and line references.

Run /code-review in the session to review your current changes. /security-review runs a security-focused pass.

Check it: fix every high finding, or write down why it is wrong. A review that finds nothing on a large diff is a signal to ask again with a narrower scope.

Rest of the day: five wins that need 10 to 30 minutes of setup

Section titled “Rest of the day: five wins that need 10 to 30 minutes of setup”

These take a one-time investment and improve every task after them. Do them in this order: the instructions file first, because every later win reads it.

Win 6: Tune the instructions file the agent reads every session

Section titled “Win 6: Tune the instructions file the agent reads every session”

The file from /init is a draft. It becomes useful when it holds the rules the agent cannot infer from the code: which commands prove a change, which directories are off limits, and what “done” means.

Claude Code reads CLAUDE.md at the start of every session. From v2.1.277 (the latest channel) it also reads AGENTS.md when a project has no CLAUDE.md, so a repository shared with Codex users can keep one file.

Check it: every command in the file ran successfully during this prompt. A shorter, verified file beats a long, guessed one; see pruning context files.

Win 7: Give the agent current library docs with Context7

Section titled “Win 7: Give the agent current library docs with Context7”

Models know library APIs as of their training data. The Context7 MCP server from Upstash fetches version-specific documentation on demand. The server works without an API key; a free key raises the rate limits.

Terminal window
claude mcp add --scope user --transport http context7 https://mcp.context7.com/mcp

To add a key, remove the keyless entry first (claude mcp remove context7 or codex mcp remove context7) and read the key from an environment variable that your secret store fills. Never type the key itself into a command:

Terminal window
# Claude Code: the shell expands the variable, and user scope stores the value in your user config, not the repository
claude mcp add --scope user --header "Authorization: Bearer $CONTEXT7_API_KEY" --transport http context7 https://mcp.context7.com/mcp
# Codex: stores only the variable name and reads the key when it connects
codex mcp add context7 --url https://mcp.context7.com/mcp --bearer-token-env-var CONTEXT7_API_KEY

In Cursor, put a keyed entry in your user-level ~/.cursor/mcp.json instead of the project file. Never commit a key to .cursor/mcp.json or .mcp.json: both live in the repository, so the key would land in Git history.

Then name the library and version in the prompt: Use Context7 to check the current Next.js routing API for the version in package.json before you change this file.

Each MCP server adds tools the agent has to choose between, and in some clients their definitions as well, so add servers one at a time as a task needs them. The Context7 guide covers pinning a library ID and the no-MCP CLI mode.

Win 8: Plan a feature and agree acceptance criteria before code

Section titled “Win 8: Plan a feature and agree acceptance criteria before code”

For anything larger than a bug fix, make the agent plan first and write acceptance criteria you can check. You approve three pages of plan instead of reviewing three hundred lines of wrong code.

Enter Plan mode with /plan or Shift+Tab, then paste the prompt. The agent reads and plans but does not edit.

Check it: each acceptance criterion maps to at least one test in the final change, and the tests ran green. That mapping is what you sign off on. The acceptance criteria guide shows how to write criteria an agent cannot misread.

Win 9: Save a prompt you repeat as a skill

Section titled “Win 9: Save a prompt you repeat as a skill”

By mid-afternoon you will have pasted the Win 5 review prompt three times. A skill turns it into a named, versioned file the agent loads on demand. Skills follow the open Agent Skills format (a folder with a SKILL.md), which all three tools support.

Create .claude/skills/pre-push-review/SKILL.md:

---
name: pre-push-review
description: Review uncommitted changes for bugs, missing error handling, security issues and untested behaviour changes before a push.
---
Review the uncommitted changes as a strict senior reviewer.
Report only real problems, each with file, line, severity (high, medium, low) and a one-line fix.
Do not edit files. If nothing is above low severity, say so in one line.

Invoke it with /pre-push-review, or let Claude Code load it when a request matches the description. Commit the folder so the team gets it too.

Check it: run the skill on a diff with a known bug, such as a removed null check. If the report misses it, tighten the skill text before you rely on it. Community skills install with npx skills add OWNER/REPO; read the SKILL.md before installing, because a skill is instructions your agent follows.

Win 10: Run independent tasks in parallel worktrees

Section titled “Win 10: Run independent tasks in parallel worktrees”

Three unrelated tasks — a feature, a bug fix and a docs update — do not have to wait for each other. Each agent gets its own Git worktree, so their edits never collide and each lands as its own branch.

Terminal window
# Terminal 1
claude --worktree order-emails
# Terminal 2
claude --worktree token-refresh-fix
# Terminal 3
claude --worktree api-docs

Each session runs in its own checkout on its own branch.

Check it: parallel work multiplies review load, so give each task a gate before you look at it: tests, type check and lint must pass on the branch. Merge the branch whose checks are green; send the others back with the failing output. Start with two tasks, not five. Parallel agents covers the tooling beyond day one.

How do you know the day’s output is right?

Section titled “How do you know the day’s output is right?”

The habit behind every win is the same: ask for evidence, then check the evidence instead of the code. This table is the whole review workflow for your first day.

WinEvidence you checkTime to check
1. Explain codeTwo cited line numbers match the claims1 minute
2. Characterization testsTests pass, and one deliberate mutation turns a test red1 minute
3. Bug fixNew test fails before the fix, full suite passes after1 minute
4. RefactorSame tests green before and after; type check and lint clean1 minute
5. ReviewEvery high finding fixed or rejected with a reason5 minutes
6. Instructions fileEvery listed command ran during the prompt2 minutes
7. Library docsGenerated code compiles against the installed library version (type check passes)1 minute
8. Planned featureEach acceptance criterion maps to a passing test5 minutes
9. SkillSkill report catches a planted bug (a removed null check)2 minutes
10. Parallel workChecks green on each branch before you open the diff1 minute per branch

You still own what you merge. The evidence tells you where to spend your reading: on the finding the reviewer flagged, the test that was hard to write, and the file that changed shape. Reading evidence instead of code turns this habit into a working method.

A feeling of speed is not a measurement. Controlled studies disagree: METR’s late-2025 follow-up with open-source developers found point estimates of about 18% less time with AI for returning developers and 4% for new recruits, but both confidence intervals cross zero, and METR says the results are hard to interpret (METR, published 2026-02-24). Your own numbers are the only ones that apply to your codebase.

What to recordHowWhat it tells you
Tasks closedCount tickets merged today and on a normal day last weekThroughput
Time per taskStart and end time for three to five tasksWhere the agent helps and where it does not
ReworkChanges reverted or reopened within a weekWhether speed cost quality
CoverageRun your coverage tool before Win 2 and at the end of the dayWhether the checkable surface grew

When quick wins go wrong, and how to recover

Section titled “When quick wins go wrong, and how to recover”
  • The agent edits files you did not ask it to touch. Run git diff --stat to see the blast radius and git restore <path> to drop the unwanted files. In Claude Code, Esc Esc (or /rewind) rolls the session back to an earlier checkpoint. Then add the off-limits paths to your instructions file (Win 6).
  • Tests pass, but the behaviour is wrong. The agent wrote tests that match its own implementation. Re-run the mutation step from Win 2; if nothing goes red, write the acceptance criteria yourself (Win 8) and ask for tests from those, without showing the implementation.
  • The agent changed an existing test to make it pass. Reject the change and restore the test file. Add Never edit an existing test to make it pass; report the conflict instead. to your instructions file. The protect the oracle guide covers enforcing this with hooks and CI.
  • The code uses an API that no longer exists. Install Context7 (Win 7) and name the library version in the prompt. If the error persists, paste the relevant page of the library’s changelog into the prompt.
  • The agent repeats the same mistake. The session context is polluted with failed attempts. Start fresh (/clear in Claude Code, /new in Codex, a new chat in Cursor) and restate the task with the constraint the agent kept breaking.
  • Parallel branches conflict at merge. The tasks were not independent. Merge the branch with the smallest diff first, then ask the other agent to rebase onto it and re-run its checks.