All challenges

Git · medium

Clean sweep

#8

Situation

You are in noa-notes, a small patient-notes client. Someone left real work in progress next to debug junk: logs, a scratch notes/ folder, and a tmp/ cache. The tracked edit in src/api/client.ts is intentional and must survive.

Objective

Remove every untracked file and directory. Keep the modifications in src/api/client.ts. Leave nothing staged, and keep history on main untouched.

The repo at start

repo/
├── README.md
├── build.log
├── notes/
│   └── ideas.md
├── src/
│   ├── index.ts
│   └── api/
│       ├── client.ts   (modified - keep)
│       └── retry.ts
└── tmp/
    ├── cache.json
    └── debug.log

Checks you will turn green

  • No untracked files remain
  • Work in progress survived, unstaged
  • Nothing staged
  • History untouched on main

Concepts

working treeuntrackedtrackedstaging

Play it in your terminal

With sharpen installed, this command opens exactly this challenge in your local arena:

sharpen 8

First time? The full install is right below.

How to play

  1. 1 Install Claude Code if you do not have it yet: claude.com/claude-code
  2. 2 Install sharpen from npm:
    npm install -g @juanwmedia/sharpen
  3. 3 Then launch it; the arena opens in your browser:
    sharpen 8
  4. or Or try it without installing anything:
    npx @juanwmedia/sharpen 8
  5. 4 And to update when a new version ships:
    sharpen update