Skip to content

feat: control plane — isolation, work modes, lazy tools, UX safety - #175

Merged
Patel230 merged 4 commits into
mainfrom
feat/ux-p0-sandbox-diff-permission
Aug 5, 2026
Merged

feat: control plane — isolation, work modes, lazy tools, UX safety#175
Patel230 merged 4 commits into
mainfrom
feat/ux-p0-sandbox-diff-permission

Conversation

@Patel230

@Patel230 Patel230 commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds a product control plane so Hawk is progressive, reviewable, and safer by default—without dropping platform depth.

  • IsolationProfile (/isolation) unifies OS sandbox + container-required story; Bash wrap gets session mode via ContextWithMode
  • Work modes plan/act/review (/mode) with tool visibility + read-only bash + ephemeral prompts
  • Lazy model tool surface: essentials to the model; optional tools via ToolSearch select:
  • SpawnController facade over taskruntime for subagents
  • Diff-first Write/Edit (unified diff preview) and permission prompts with risk + why
  • Folder trust TUI (/trust), git agent branch (/branch-agent), /start onboarding
  • Auto-commit actually wired (--auto-commit, settings, /auto-commit)
  • TUI polish: control-plane HUD, first-session tip, clearer /help categories
  • Glyphs go through internal/ui/icons (emoji audit)

Doc: docs/architecture/control-plane.md

Test plan

  • go test ./internal/engine/ ./internal/tool/ ./internal/engine/safety/ ./cmd/
  • go test ./internal/testaudit/ -run TestNoEmojiInCmd
  • go build ./cmd/hawk
  • Manual TUI: /start, /mode plan, /isolation workspace, /trust add, /branch-agent, edit file → see diff
  • Manual: --auto-commit + Write → git commit appears
  • Permission prompt shows risk/why; y/n/a/d still work

Add a product control plane so Hawk feels progressive and reviewable:
IsolationProfile + /isolation, plan/act/review work modes, lazy model
tool surface with ToolSearch promote, SpawnController over taskruntime,
diff-first Write/Edit, richer permission prompts, folder-trust and git
agent-branch UX, /start onboarding, and wired auto-commit after edits.
Surface mode/iso/trust on narrow status bars, show a first-session
quick path, group new slash commands in /help, and improve mode,
isolation, permission, and cost presentation for a smoother TUI.
Replace raw check/alert runes so TestNoEmojiInCmd and pre-push pass.
… polish

Container attach now applies IsolationProfile(container) for a single
isolation story; ACP advertises hawkCapabilities and session snapshot;
add hawk exec CI workflow example; Welcome surfaces control-plane cmds.
@Patel230
Patel230 merged commit 88ae314 into main Aug 5, 2026
23 checks passed
@Patel230
Patel230 deleted the feat/ux-p0-sandbox-diff-permission branch August 5, 2026 07:50
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