Home

mweinbach / agent-coworker

publicmweinbach/agent-coworker
Overview Code History Branches Pull requestsIssuesInsights
main
HomeOverview Code PRsIssues

Harness engineering upgrade (#54)

7 months ago

a9cb35a
Authored
Max Weinbach3/21/2026, 1:59:48 PM
* feat: inject harness context into runtime turns

Co-authored-by: Max Weinbach <mweinbach@users.noreply.github.com>

* feat: enforce raw loop strict validation

Co-authored-by: Max Weinbach <mweinbach@users.noreply.github.com>

* test: add websocket harness golden flows

Co-authored-by: Max Weinbach <mweinbach@users.noreply.github.com>

* test: cover child-agent harness flows and docs drift

Co-authored-by: Max Weinbach <mweinbach@users.noreply.github.com>

* test: stabilize harness resume persistence check

Co-authored-by: Max Weinbach <mweinbach@users.noreply.github.com>

* fix: avoid dialog trigger on usage page

Co-authored-by: Max Weinbach <mweinbach@users.noreply.github.com>

* test: preserve agent exports in session mocks

Co-authored-by: Max Weinbach <mweinbach@users.noreply.github.com>

* fix: ignore runtime home paths in docs check

Co-authored-by: Max Weinbach <mweinbach@users.noreply.github.com>

* fix: validate relative links in docs check

Co-authored-by: Max Weinbach <mweinbach@users.noreply.github.com>

* fix: address review feedback on harness validation

Co-authored-by: Max Weinbach <mweinbach@users.noreply.github.com>

* fix: address remaining review comments

Co-authored-by: Max Weinbach <mweinbach@users.noreply.github.com>

* fix: resolve final low-severity review comments

Co-authored-by: Max Weinbach <mweinbach@users.noreply.github.com>

* fix: detect dot-relative doc links in docs check

Co-authored-by: Max Weinbach <mweinbach@users.noreply.github.com>

* fix: preserve failing run budgets

Co-authored-by: Max Weinbach <mweinbach@users.noreply.github.com>

* fix: keep usage help dialog in one flex item

Co-authored-by: Max Weinbach <mweinbach@users.noreply.github.com>

* Frontend Skill

* refactor: share harness context normalization

Co-authored-by: Max Weinbach <mweinbach@users.noreply.github.com>

* fix: clear stale validation on failed retries

Co-authored-by: Max Weinbach <mweinbach@users.noreply.github.com>

* fix: align docs path validation and loop budgets

Resolve bare markdown doc links from the current document and remove a misleading raw-loop budget override so validation paths stay consistent.

Made-with: Cursor

* Made-with: Cursor

* Preserve draft model selection and fix raw loop step counting

* fix(desktop): full-width titlebar under chrome, glass sidebar to top

- Shell: row layout with full-width .app-titlebar-backdrop + centered title
- Extract SidebarCollapseControl fixed next to traffic lights (darwin padding)
- AppTopBar: context toggle + busy only; z-stack so backdrop drags over left pane
- Update styles/tests for removed leading strip

Made-with: Cursor

* fix(desktop): restore sidebar collapse clicks under titlebar drag layers

- Remove redundant app-window-drag-strip from chat shell (z-60 intercepted hits)
- Raise collapse control z-index and set no-drag on its wrapper for Electron

Made-with: Cursor

* Unify desktop topbar with sidebar frame controls

* Update styles.css

* fix deferred desktop draft model defaults

* Preserve draft model selection before first desktop send

* fix: gate queued draft sends on deferred model defaults

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Max Weinbach <mweinbach@users.noreply.github.com>

Parent576de8f

55 files changed
  • AGENTS.md+1−2
  • CLAUDE.md+6−5
  • CONTRIBUTING.md+5−4
  • GEMINI.md+2−1
  • apps/desktop/src/App.tsx+5−6
  • apps/desktop/src/app/store.actions/thread.ts+25−2
  • apps/desktop/src/app/store.actions/workspace.ts+2−4
  • apps/desktop/src/app/store.actions/workspaceDefaults.ts+27−8
  • apps/desktop/src/app/store.helpers.ts+5−1
  • apps/desktop/src/app/store.helpers/runtimeState.ts+14−10
  • apps/desktop/src/app/store.helpers/threadEventReducer.ts+60−15
  • apps/desktop/src/app/types.ts+3−0
  • apps/desktop/src/styles.css+62−18
  • apps/desktop/src/styles/tokens.css+12−3
  • apps/desktop/src/ui/ChatView.tsx+87−16
  • apps/desktop/src/ui/Sidebar.tsx+1−1
  • apps/desktop/src/ui/layout/AppTopBar.tsx+5−3
  • apps/desktop/src/ui/layout/SidebarCollapseControl.tsx+30−0
  • apps/desktop/src/ui/settings/pages/UsagePage.tsx+38−33
  • apps/desktop/test/app-topbar.test.tsx+9−7
  • apps/desktop/test/chat-view.stability.test.tsx+167−0
  • apps/desktop/test/protocol-v2-events.test.ts+1−2
  • apps/desktop/test/thread-reconnect.test.ts+281−6
  • apps/desktop/test/workspace-settings-sync.test.ts+1−2
  • apps/desktop/test/workspace-startup.test.ts+1−2
  • docs/architecture.md+4−4
  • docs/harness/config.md+9−1
  • docs/harness/context.md+28−1
  • docs/harness/index.md+8−0
  • docs/harness/runbook.md+45−2
  • scripts/check_docs.ts+161−0
  • scripts/run_raw_agent_loops.ts+549−68
  • skills/frontend-skill/LICENSE.txt+201−0
  • skills/frontend-skill/SKILL.md+184−0
  • skills/frontend-skill/agents/openai.yaml+4−0
  • src/agent.ts+5−23
  • src/harness/buildTurnSystemPrompt.ts+34−0
  • src/harness/contextStore.ts+29−9
  • src/harness/rawLoopValidation.ts+399−0
  • src/harness/renderHarnessContextSection.ts+82−0
  • src/server/agents/DelegateRunner.ts+9−2
  • src/server/session/TurnExecutionManager.ts+5−2
  • src/tools/context.ts+4−1
  • tasks/lessons.md+2−0
  • test/agent.test.ts+46−0
  • test/delegateRunner.test.ts+40−0
  • test/docs.check.test.ts+80−1
  • test/harness-context-store.test.ts+34−1
  • test/harness.raw-loop-validation.test.ts+243−0
  • test/harness.renderHarnessContextSection.test.ts+63−0
  • test/harness.ws.e2e.test.ts+535−0
  • test/helpers/wsHarness.ts+93−0
  • test/run_raw_agent_loops.test.ts+141−0
  • test/session.stream-pipeline.test.ts+2−0
  • test/session.test.ts+1−0