Skip to content
Development
Command

/tidy

Remove old lookagain review runs, keeping today's results by default

From plugin
lookagain
102 skills1 agent2 commands
> /plugin marketplace add HartBrook/lookagain
> /plugin install look@hartbrook-plugins

Command definition

tidy.md
description: Remove old lookagain review runs, keeping today's results by default
allowed-tools: Glob, Bash(rm -rf .lookagain/????-??-??T??-??-??)
argument-hint: "[key=value ...]"

Tidy Old Review Runs

You are cleaning up old review results from `.lookagain/`.

Parse arguments

The user may pass key=value pairs after the command name. The raw argument string is:

> $ARGUMENTS

If the argument string is empty or blank, the user provided no overrides — use all defaults. Parse `key=value` pairs from the string. For any key not provided, use the default.

| Key | Default | Description | |---|---|---| | `keep` | `1` | Keep runs from the last N days | | `all` | `false` | Remove all runs including today's (`true` or `false`) |

Process

1. Use Glob to list all directories under `.lookagain/` matching the pattern `.lookagain/????-??-??T??-??-??/`.

2. If no run directories exist, tell the user there's nothing to tidy and stop.

3. Determine which runs to remove:

  • If the resolved `all` value is `true`, remove ALL run directories.
  • Otherwise, calculate the cutoff date by subtracting the resolved `keep` value (in days) from today's date. Remove only run directories whose date portion (the `YYYY-MM-DD` prefix of the directory name) is strictly before the cutoff date.

4. Before deleting, validate each directory name matches the exact pattern `YYYY-MM-DDTHH-MM-SS` (all digits in the right positions). Skip any directory that doesn't match.

5. For each validated run directory to remove, use Bash to delete it: `rm -rf .lookagain/<run-id>`

6. Report what was done:

## Tidy Complete

Removed N run(s): <list of run-ids removed>
Kept M run(s): <list of run-ids kept>

If nothing was removed, say so:

## Nothing to Tidy

All N run(s) are within the keep window.
Read more
@hartbrook
Ships withlookagain

Sequential code review with fresh agent contexts. Each pass runs in an independent subagent, ensuring unbiased analysis that catches issues other passes might miss.

101 skill1 agent
Get the whole plugin

Stars on GitHub

Momentum

stars in total
10
Star history of HartBrook/lookagain on GitHub, a chart by star-history.com

Other commands on lookagain.

again

again

Command

Run sequential code review passes with fresh contexts to catch more issues

@hartbrook@hartbrookInstall Command

More commands from other plugins.

build
Auto-invoked

build

Command

Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

@addyosmani@addyosmaniInstall Command