Claude Code

Supervise an agent with tests

One developer approves every diff and asks Claude Code to work test-first.

Caution. Keep it off production databases.

Steps

  1. Ask for tests first.
  2. Review each diff.
  3. Approve each action.

Prompt you can copy

Use TDD: write failing tests first.

What you get

Better results with tests.

Source

hn ·

For Developers. Claude Code. Added . Shared by @raylad.

Related

Build websites and tweak home automation

Over three days, one user had Grok Bot help build websites and work on their home automation. They noticed it used up much of their SuperGrok allowance quickly.

  • Individuals
  • Grok Bot

Run Cursor on a cloud PC from your phone

Using nothing but an iPhone, one user opened Cursor on Grok Bot's cloud computer. They said they could do most computer work without a physical PC.

  • Developers
  • Grok Bot