Skip to content

add local buddy and local ultraplan flow#30

Draft
LaplaceYoung wants to merge 9 commits intopaoloanzn:mainfrom
LaplaceYoung:codex/buddy-ultraplan-whu-pr
Draft

add local buddy and local ultraplan flow#30
LaplaceYoung wants to merge 9 commits intopaoloanzn:mainfrom
LaplaceYoung:codex/buddy-ultraplan-whu-pr

Conversation

@LaplaceYoung
Copy link
Copy Markdown

Summary

This PR brings the local /buddy and /ultraplan capability gap fixes on top of free-code, based on a direct comparison against Enchograph/whu-code.

The comparison showed that whu-code also contains a large set of branding and i18n commits that are not part of this change. This PR intentionally keeps the scope narrow and only carries the buddy / ultraplan / Sorux-related deltas that are needed to restore the missing local workflows.

User Impact

Before this change:

  • BUDDY could be enabled, but the command surface was incomplete and the build path expected modules that were not fully wired.
  • /ultraplan still reflected the remote-first flow, which did not match the local-only expectation for this fork.
  • local planning output was harder to inspect and reuse once a planning run completed.

After this change:

  • /buddy is available as a local command surface with status display and interaction hooks.
  • /ultraplan launches a local planner flow in a new terminal instead of depending on the remote CCR-style path.
  • completed planning artifacts can be previewed and reinserted back into the current session.
  • Sorux wrapper updates preserve the caller working directory for local launch flows.

Root Cause

This fork had already diverged from upstream free-code, but the local companion and planning workflows were only partially wired. In practice that left the repository with feature flags, UI affordances, and expectations for /buddy and /ultraplan, while key local execution pieces were still missing or still shaped around the remote implementation.

Fix

The patch set is intentionally scoped to the local workflow path:

  • add the /buddy command entrypoint and local companion card / observer behavior
  • extend companion state handling so buddy interactions can be surfaced consistently in the REPL
  • replace the old remote-oriented /ultraplan flow with a local terminal orchestration path
  • add ultraplan profiles, planner prompt generation, artifact storage, artifact preview, and workspace snapshot capture
  • wire the choice dialog and prompt input notices to the new local ultraplan lifecycle
  • update Sorux launch handling so local planner launches preserve the active working directory
  • add focused tests for Sorux wrapper behavior and the new ultraplan helpers

Verification

Verified in a clean git worktree created from HEAD for this PR branch:

  • bun install
  • bun test
  • bun run build

Results:

  • bun test: 14 passed, 0 failed
  • bun run build: succeeded and built ./cli

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 13, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 4d57fb3f-9081-45f5-9a71-aa30a053ed76

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@LaplaceYoung LaplaceYoung changed the title [codex] add local buddy and local ultraplan flow add local buddy and local ultraplan flow Apr 13, 2026
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.

1 participant