Skip to content

Rename afx reset to afx refresh (keep reset as a deprecated alias for one release) #1489

Closed

Description

@waleedkadous

What

Rename the builder context-reset command afx reset (shipped in Spec 1273, PR #1320) to afx refresh. Same behavior, same flags — this is purely a naming change.

Why

"reset" miscommunicates the command's core guarantee. In git-adjacent muscle memory reset means "throw work away," while this command's whole point is the opposite: it refuses to clear until the builder's saved state is verified (nonce, min-bytes, quiet-window — every gate fails safe without clearing). A name that reads as destructive works against a feature built to be safe. "refresh" says what actually happens: same state, fresh context window. It also matches the vocabulary of the upcoming porch-triggered automatic flow (#1470, "builder context refresh"), so the manual command and the automatic flow share a vocabulary.

Prescribed design (no open decisions)

  1. afx refresh <builder> becomes the canonical command — help text, docs, and skill files all lead with it.
  2. afx reset remains a working alias for one release: it runs identically but prints a one-line notice (afx reset has been renamed to afx refresh; this alias will be removed in a future release) to stderr. Remove it in a later release — file nothing for that now, just note it in the deprecation line.
  3. --dry-run output, log lines, and error messages that name the command say refresh.
  4. Sweep every reference across both trees (codev/ and codev-skeleton/) and the Claude skill files (.claude/skills/afx/): docs, resources, prompts, lessons. Grep for afx reset repo-wide before claiming done.
  5. Internal identifiers (function names, file names like reset.ts) may be renamed or left as-is at the builder's discretion — the user-facing surface is what matters; don't let an internal-rename diff balloon the PR.
  6. Tests: existing reset tests keep passing against refresh; add one test pinning the alias (runs + prints the notice).

Activity

  1. added
    area/tower
    on Aug 17, 2026
  2. added 3 commits that reference this issue on Aug 17, 2026
  3. added 3 commits that reference this issue on Aug 18, 2026
  4. added a commit that references this issue on Aug 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/tower

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions