Skip to content

Remove Research Agent Mode; point the Agent tab to Maple Work - #1336

Merged
AnthonyRonning merged 2 commits into
masterfrom
research/remove-agent-mode
Oct 28, 2026
Merged

AnthonyRonning merged 2 commits into
masterfrom
research/remove-agent-mode

Conversation

@AnthonyRonning

@AnthonyRonning AnthonyRonning commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Removes Maple Research's desktop Agent Mode: embedded Goose, ACP "Agent connections", MCP, agent tools and permissions, project folders and tasks, and the native Maple API session that only Agent Mode used. Maple Work (apps/maple-agent) replaces it.

The only piece kept is the sidebar Chat | Agent switch for desktop accounts with the agent_mode flag. Choosing Agent opens a static page in the main view:

Agent Mode is now Maple Work
Thank you for beta testing Agent Mode. Your feedback went a long way: it shaped Maple Work, our private AI that works on your computer. Point it at a project and it reads your files, runs commands and finishes the task.
[Download Maple Work] → https://maple.ai/work/download
Your Agent Mode tasks don't move to Maple Work. They're still on this computer. To open them, install Maple v3.4.5 from GitHub and sign in with this account. Skip its update prompt (or turn off Automatic updates in Settings → About) so it stays on v3.4.5.
Maple v3.4.5 on GitHub

154 files, +460 / −58,873.

Behaviour

  • Switch: shown on Tauri desktop when agent_mode is on, and always while the user is in Agent so they can get back. There is no plan gate any more: the UpgradePromptDialog "agent" variant and the billing check are gone. The last-used mode is still restored at launch and reset to Chat on sign-out and account deletion, as before.
  • Sidebar in Agent: the wordmark/collapse row, the switch and the account menu only. The Chat sidebar is unchanged.
  • Local Agent data is never touched: the agent/ and acp/ app-data dirs, Goose session DBs, attachments and the Agent localStorage keys stay as they are, so v3.4.5 can still open old tasks. Delete history and Delete account now cover chats only, and their copy says so.
  • maple acp prints Maple agent connections have moved to Maple Work: https://maple.ai/work/download to stderr and exits 1, instead of launching the GUI for stale ACP client configs. --version is kept.
  • Local OpenAI Proxy: still stopped and scrubbed on every explicit sign-out. A small effect in routes/__root.tsx now covers implicit account changes, which Agent Mode's auth lifecycle used to handle. The legacy maple-agent-* proxy-key registry is removed.
  • Quit: still waits for an in-progress update install (renamed statics); only the Agent drain is gone.
  • Separate commit: the switch never got back to Chat under macOS Reduce Motion. This is a pre-existing bug on master. The reduced-motion path navigated from inside the radio's change handler, where history.push("/") changed the URL but left the router on /agent. Navigation now runs after the event.

Dependencies and CI

  • Rust:
    • Removed goose, goose-providers, rmcp, agent-client-protocol, tauri-plugin-dialog, async-trait, tokio-util, chrono, httpdate, process-wrap, pulldown-cmark, icu_properties, libc, windows and ciborium, plus tokio io-std/process. tokio fs is now declared explicitly.
    • Cargo.lock goes from 1012 to 844 packages, removals only: no remaining package changed version or checksum. The aaif-goose git source is gone; pdf_oxide is the only git dependency left.
    • Removed the Windows 8 MiB main-thread stack reserve. PR #821 (Agent task stack overflow) added it for Goose futures, and every remaining command is async.
  • npm: removed @tauri-apps/plugin-dialog and @radix-ui/react-hover-card; bun.lock changes are removals only.
  • Capabilities: dropped dialog:default and opener:allow-reveal-item-in-dir.
  • CI: bumped ci-v1-research-rust to ci-v2-research-rust in every reader and writer, so the ~1 GB Goose git database stops being restored. The first master run after merge starts cold. No timeouts changed.
  • Docs and skills: deleted the change-maple-agent-mode skill and docs/agent-mode-{acp,mcp}.md. AGENTS/README/development-contracts, validate-maple (new Agent placeholder smoke), review-maple-security and the Research-fact lines in apps/maple-agent docs now describe the current app.
  • Strict clippy: cargo clippy --all-targets -- -D warnings for Research now passes. It failed on master, only in agent files.

Labels ci:package and ci:windows are set so the Windows build compiles here. This Mac cannot build Windows or Linux, and those lanes cover the stack-reserve removal and the dropped windows/libc crates.

Validation

Local mde workspace (OpenSecret, billing, flags; Pro fixture with agent_mode on, Free fixture with it off; debug Tauri app from this worktree):

  • Chat: sent a message, got a reply with the thinking block, auto title and Recents entry.
  • Switch: Chat → Agent → Chat → Agent → Chat works, with macOS Reduce Motion on. Also checked in Chrome with and without reduced motion.
  • Placeholder:
    • The copy matches.
    • Both links open the system browser (Maple Work download page, GitHub v3.4.5 release).
    • Collapsing and reopening the sidebar works.
    • Relaunch lands back on the placeholder.
  • Settings no longer has Agent connections, and the data section reads "Chat history". Log out works.
  • Free account: no switch.
  • Quit exits cleanly.

Checks:

  • Frontend: format, lint (0 errors, same 13 warnings as master), typecheck, 1026 tests (master 1371; the difference is deleted Agent tests), build:fast.
  • Rust: fmt, strict clippy, 85 + 3 tests.
  • deps-research cargo-deny, scripts/ci (503 tests), actionlint, flake ci-scripts/workflows checks.
  • Pre-commit hook on both commits.
  • Review: five review lenses (leftovers, chat parity, native safety, CI/docs, placeholder) with three-vote verification. Only three doc nits were confirmed; all are fixed.

Not in this PR

  • Flags:
    • Keep agent_mode on for the beta cohort. It gates the switch here and Agent Mode in v3.4.5, and billing also uses it as the Maple Work beta-discount cohort.
    • agent_connections has no reader in new builds. Archive it once v3.4.5 is no longer a supported rollback.
  • Release notes: suggest "Agent Mode has moved to Maple Work (https://maple.ai/work/download). Research v3.4.5 remains on GitHub for opening old Agent Mode tasks." If another release with Agent Mode ships before this one, update the v3.4.5 link.
  • Windows runtime smoke (launch, sign in, chat, PDF OCR, proxy, update install) after the stack-reserve removal.
  • Backend: the older hosted-agent surface (OpenSecret agent tables, SDK /v1/agent methods) is a separate feature that neither Research nor Maple Work calls. It is left as is.

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

AnthonyRonning and others added 2 commits October 27, 2026 23:47
Agent Mode (embedded Goose, ACP agent connections, MCP, agent tools and the
native Maple API session) has moved to Maple Work (apps/maple-agent).
Research keeps only the desktop Chat | Agent switch for accounts with the
agent_mode flag. The Agent page thanks beta testers, links
https://maple.ai/work/download and explains how to open old tasks with v3.4.5.

- Native: delete agent*, maple_api and their 41 commands; drop goose,
  goose-providers, rmcp, agent-client-protocol, tauri-plugin-dialog and the
  other agent-only crates (Cargo.lock 1012 -> 844 packages, removals only).
  `maple acp` prints the Maple Work pointer and exits 1. Quitting still waits
  for an in-progress update install. Drop the Windows 8 MiB stack reserve
  that existed for Goose futures.
- Frontend: delete the Agent Mode UI, services, Agent connections settings
  and their tests. The switch no longer has a plan gate; in Agent the sidebar
  shows only the switch and account menu. The local proxy is still reset on
  every sign-out and on implicit account changes. History and account
  deletion copy covers chats only.
- Local Agent data and its localStorage keys are left untouched so v3.4.5
  can still open old tasks.
- Docs, skills and CI follow; the Research Rust CI cache key is bumped so the
  Goose git database is no longer restored.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With prefers-reduced-motion the switch navigated from inside the radio's
change handler. Going back to Chat pushed "/" to history there, which changed
the URL but left the router on /agent, so the app stayed on the Agent page.
Run the navigation after the event instead; the animated path already does,
from transitionend. Reproduced on master and fixed here in the Tauri app and
in Chrome with and without reduced motion.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@AnthonyRonning AnthonyRonning added ci:windows Run Windows checks on this PR ci:package Build unsigned packages on this PR labels Oct 27, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Maple development preview: https://f52266a9.maple-ca8.pages.dev

Commit: 14d8ff61b0d6fe9d35b71d1893a7462a9ff00df6

Uses development API, billing, flags and PCR configuration. Cloudflare Access applies.

@AnthonyRonning
AnthonyRonning merged commit 20d751c into master Oct 28, 2026
40 checks passed
@AnthonyRonning
AnthonyRonning deleted the research/remove-agent-mode branch October 28, 2026 00:19
AnthonyRonning added a commit that referenced this pull request Oct 28, 2026
agent-supply-chain and agent-provider had no cache, so every run cloned
the zed and trycua/cua git dependencies from GitHub only to run
`cargo metadata`: 0.3-11 min of fetching against 1.1-2.4 min of real
work (job 122541527929 on PR #1336: 5.4 min on cua, 4.7 on zed). Both
lanes ran at p90 10.7 min and are selected on about 30% of PRs.

They now share one rust-cache entry, agent-cargo-home, that holds only
the Cargo home (registry index and crates, git databases and checkouts):
a new lane field, cache_targets=False, drops the target directory. PRs
restore it; master pushes and the nightly run save it into the lanes'
home store, like every lane cache. These lanes run on the PRs that edit
Cargo.lock, where the prefix fallback from the previous commit restores
master's last graph, so Cargo fetches only what changed. Expected p90:
about 2.5 min.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
AnthonyRonning added a commit that referenced this pull request Oct 28, 2026
…et checkout (#1342)

* ci: restore lane caches by prefix after a lockfile change

Every ci.yml lane cache was keyed by sha256(flake.lock + Cargo.lock) in
rust-cache's shared key with add-rust-environment-hash-key off, so the
restore key equalled the cache key and any Agent Cargo.lock edit made
every Agent Rust lane fully cold. That hit 25% of PRs, two thirds of them
version bumps: PR #1338 (a version bump) took 10.6 min to ci-ok instead
of about 4.5, and its master push 18.6 min instead of about 10.5.

- The shared key now holds only the toolchain pins (flake.lock, and
  rust-toolchain.toml where the workspace has one), which must match.
- rust-cache's environment hash (rustc versions, CARGO*/RUST* variables)
  ends the restore key, and its lockfile hash (third-party Cargo.lock
  entries, member manifests with versions zeroed) ends only the cache key
  (config.ts at e18b4977). A version bump restores its exact cache; any
  other lockfile change restores the newest cache of the same lane and
  toolchain. Of the last 30 Agent Cargo.lock commits, 13 keep the exact
  key and 17 fall back by prefix; today all 30 start cold.
- The environment hash also covers the runner image's preinstalled
  rustup toolchains, so an image with a new Rust costs one cold run per
  lane until master saves again.
- Prefix ci-v2, so no lane cache can fall into the ci-v1 release
  families; a C4 contract test pins that and the rust-cache flag.
- agent-windows-updater also runs on master pushes (free windows-2025),
  so a master lockfile change saves its cache instead of leaving PRs
  cold until the nightly run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* ci: cache the Agent's Cargo home for its dependency lanes

agent-supply-chain and agent-provider had no cache, so every run cloned
the zed and trycua/cua git dependencies from GitHub only to run
`cargo metadata`: 0.3-11 min of fetching against 1.1-2.4 min of real
work (job 122541527929 on PR #1336: 5.4 min on cua, 4.7 on zed). Both
lanes ran at p90 10.7 min and are selected on about 30% of PRs.

They now share one rust-cache entry, agent-cargo-home, that holds only
the Cargo home (registry index and crates, git databases and checkouts):
a new lane field, cache_targets=False, drops the target directory. PRs
restore it; master pushes and the nightly run save it into the lanes'
home store, like every lane cache. These lanes run on the PRs that edit
Cargo.lock, where the prefix fallback from the previous commit restores
master's last graph, so Cargo fetches only what changed. Expected p90:
about 2.5 min.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* ci: blobless full-history checkout for the OpenSecret lanes

The OpenSecret jobs need full history (Nix requires revCount for the
recursively fetched submodule), and on Blacksmith that clone has been
slow since 10-27: checkout p50/p90/max os-eif 231/557/601 s, os-rust
76/475/527 s, os-sdk-e2e 21/333/427 s (job 122029252679 spent 8 min in
"Fetching the repository"). The plan job already clones the same history
blobless in 5-17 s.

os-rust, os-flake-check and deps-opensecret (through a new `filter`
matrix field from the planner), os-sdk-e2e and the os-eif PR candidate
now check out with filter: blob:none, keeping fetch-depth 0 and recursive
submodules: every commit and tree, but file contents only for the
checked-out tree (39 MB instead of 346 MB). The submodule is still
fetched in full. opensecret-eif-release.yml and the PCR checks are
unchanged.

Nix sees byte-identical source. Emulating actions/checkout on 7cdc65c
with Determinate Nix 3.24.0, a full clone (20 s, 346 MB) and a blobless
clone (7 s, 39 MB) give the same `git ls-files -s --recurse-submodules`
digest, submodule commit and working tree, the same flake source
(revCount 4091, narHash sha256-2mRvfa57+T2G0pQzpclNWod339i++bnhkfqFXHHy0D8=,
one store path) and the same derivations for eif-dev, eif-prod, the ci
dev shell and every checks.x86_64-linux entry. Git objects are content
addressed, so a missing blob could fail a build but never change its
source.

Expected: os-rust p90 about 9.3 to 4.4 min, os-sdk-e2e p90 9.8 to 5.7,
os-eif up to 10 min less checkout.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* ci: address review findings

rust-cache's save keeps every build of a crate still in the dependency
graph, so a master run that restored by prefix would carry the old graph's
builds into each new cache. A master run that will save a cache without an
exact hit now deletes the lane's target directory first; pull requests keep
the prefix fallback and version bumps stay exact hits.

The lane cache contract also checks that step, and checks key overlap in
both directions, including other workflows' rust-cache steps. The cache docs
name the Windows lanes' toolchain pin correctly.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

This branch was successfully deployed

1 active deployment
pages-pr-1336 — 14d8ff61 Deployed Oct 27, 2026 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:package Build unsigned packages on this PR ci:windows Run Windows checks on this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant