Skip to content

feat(ambient): remove the plan-handoff auto-implement - #782

Merged
dean0x merged 8 commits into
mainfrom
feat/780-remove-plan-handoff
Nov 10, 2026
Merged

dean0x merged 8 commits into
mainfrom
feat/780-remove-plan-handoff

Conversation

@dean0x

@dean0x dean0x commented Nov 10, 2026

Copy link
Copy Markdown
Owner

What

Ambient mode no longer starts an implementation by itself.

Before, a prompt that began with Implement the following plan: made ambient mode invoke devflow:implement at once, with no question. Claude Code sends this prompt when you accept a plan in plan mode. Now that prompt gets the normal one-line orchestrator reminder, as every other prompt does.

Closes #780.

Changes

  • preamble hook: the plan-handoff branch is removed. The hook keeps two behaviors: the slash-command skip and the orchestrator reminder.
  • Orchestrator charter: the - Plan handoff: line is removed. All other lines stay the same.
  • The hooks/assets/implement-installed marker file is removed, with the code that synced it (charter-render.ts, installer.ts, uninstall.ts). The charter span table loses its only line span, so the shape field goes too.
  • devflow init removes an old marker file from existing installs (LEGACY_HOOK_FILES).
  • The ambient help and info texts no longer name the plan handoff.
  • Docs, the feature knowledge bases and the CHANGELOG [Unreleased] section state the change.

What stays

  • The charter, the per-prompt reminder, the slash skip, the git-repo gate and devflow ambient --enable/--disable/--status.
  • The charter routing line for real-scale work. It acts only on a work request from the user.
  • /implement. With no input after plan mode, it takes the plan from the conversation.

Tests

  • Handoff-only tests are removed, including tests/integration/ambient-activation.test.ts. Mixed tests keep their other checks.
  • New: a handoff prompt gets exactly the reminder, also with an old marker file next to the hook.
  • New: devflow init removes an old marker file and leaves the charter unchanged.
  • The install-snapshot goldens lose one line each (the marker file).

A prompt that begins with `Implement the following plan:` no longer
makes ambient mode invoke devflow:implement. The prompt gets the normal
orchestrator reminder. The charter loses its plan-handoff bullet, and
init removes the old implement-installed marker file.

Refs #780
A prompt that begins `Implement the following plan:` gets the normal
orchestrator reminder, also when an old implement-installed file sits
beside the hook. Delete the handoff directive tests, the sentinel gate
suite and the live handoff integration file. Keep the reminder, slash
skip, git gate and empty prompt checks.

Refs #780
The render writes the charter only and returns { charter }. Drop the
sentinel and plan-handoff line checks, the removeHandoffSentinel suite
and the handoff charter guard. Pin that the charter has no plan-handoff
routing. Init over an old implement-installed file removes it and keeps
the charter bytes.

Refs #780
The installed scripts no longer carry the implement-installed marker
file. Regenerated with the install-snapshot golden update: only the
three marker lines go.

Refs #780
@dean0x

dean0x commented Nov 10, 2026

Copy link
Copy Markdown
Owner Author

Evidence (head b2dbeb2)

Tests

  • Full build, typecheck and full suite at b20e94e: all pass. 408 test files, 19181 tests passed, 0 failed, 8 skipped.
  • b2dbeb2 changes one knowledge-base sentence only. It changes no code and no test.
  • Targeted files: shell-hooks, charter-render (3 files), agent-name-guards, ambient, no-config-read, install-snapshot, integration-config-gate and integration-spawn-context all pass.
  • RED checks: the old preamble with a marker file fails the new regression test. With the new LEGACY_HOOK_FILES entry removed from the build, the new init test fails.

Alignment check (independent agent): ALIGNED

  • No ambient path starts devflow:implement by itself. The only devflow:implement text left in the hooks is the charter routing line for a work request from the user. This line stays by decision.
  • The reminder text, the slash skip, the empty-prompt exit, the git gate and every other charter line are byte-identical.
  • /implement is unchanged. With no input after plan mode, it takes the plan from the conversation.
  • Upgrade: devflow init removes an old hooks/assets/implement-installed. Nothing reads that file now.
  • Its one stale knowledge-base sentence is fixed in b2dbeb2.

Notes

  • tests/integration/ambient-activation.test.ts is deleted. It was an opt-in live test with a handoff case and a reminder case. The shell tests still pin the reminder bytes.

@dean0x
dean0x merged commit dcbd9f0 into main Nov 10, 2026
3 checks passed
@dean0x
dean0x deleted the feat/780-remove-plan-handoff branch November 10, 2026 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ambient mode: remove the auto-implement behavior

1 participant