feat(presets): what runs apart from where — a child runs like its parent, Runs on beats a preset's machine #65
Closed
gabrielvidal
wants to merge 0 commits from
preset-machine-split into main
pull from: preset-machine-split
merge into: gabrielvidal:main
gabrielvidal:main
gabrielvidal:unfinished-conversations
gabrielvidal:conversation-chain
gabrielvidal:llm-proxy-harbor
gabrielvidal:llm-proxy
gabrielvidal:worker-macos-app
gabrielvidal:macos-app-hub
gabrielvidal:macos-app-signin
gabrielvidal:promote-child-conversation
gabrielvidal:unsend-message
gabrielvidal:fix/link-rotation-race
gabrielvidal:bots-plugin-exploration
gabrielvidal:live-group-current-action
gabrielvidal:mobile-drawer-toast
gabrielvidal:pi-steer
gabrielvidal:pi-on-workers
gabrielvidal:model-field
gabrielvidal:tasks-plugin
gabrielvidal:conversation-titles
gabrielvidal:card-icon-beside-title
gabrielvidal:worktrees-cli
gabrielvidal:worktrees-plugin
gabrielvidal:agent-presets
gabrielvidal:no-plugin-white-flash
gabrielvidal:agy-tasks
gabrielvidal:home-declutter
gabrielvidal:perf-plugin-batching
gabrielvidal:fresh-context-plugin
gabrielvidal:remove-hooks-page
gabrielvidal:palette-plugins
gabrielvidal:linear-projects
gabrielvidal:agent-messaging
gabrielvidal:model-router
gabrielvidal:conv-card-layout
gabrielvidal:ask-more-options
gabrielvidal:agent-limits
gabrielvidal:generic-ui-strings
gabrielvidal:android-push-bridge
gabrielvidal:auto-translate
gabrielvidal:filter-chips
gabrielvidal:plugin-catalog
gabrielvidal:file-viewers
gabrielvidal:plugins-page-rework
gabrielvidal:hub-mcp-plugin
gabrielvidal:translation-plugin
gabrielvidal:scheduled-doors
gabrielvidal:cron-jobs-plugin
gabrielvidal:context-skills-plugin
gabrielvidal:files-plugins
gabrielvidal:worker-names
gabrielvidal:details-panel-perf
gabrielvidal:services-plugin-only
gabrielvidal:fix-test-env-leaks
gabrielvidal:bg-shells-plugin
gabrielvidal:feat-commits-plugins
gabrielvidal:fix-branch-line-tag-rows
gabrielvidal:retire-dead-leftovers
gabrielvidal:runner-into-harness-pi
gabrielvidal:retire-tool-proxy
gabrielvidal:new-project-policy-plugin-only
gabrielvidal:guest-jobs-sonnet
gabrielvidal:push-buttons-everywhere
gabrielvidal:mail-send-plugin
gabrielvidal:ui-polish-batch
gabrielvidal:command-palette-plugin
gabrielvidal:keyboard-shortcuts-plugin
gabrielvidal:prompt-shortcuts-plugin
gabrielvidal:matomo-site-grants
gabrielvidal:lab-chrome-plugin
gabrielvidal:performance-plugin
gabrielvidal:whats-new-plugin
gabrielvidal:skills-agents-plugin
gabrielvidal:goals-plugin-only
gabrielvidal:storage-server-side
gabrielvidal:plugin-scheduled-conversations
gabrielvidal:plugin-fences
gabrielvidal:handoff-plugin
gabrielvidal:plugin-commands
gabrielvidal:plugin-speed
gabrielvidal:cleanup-provider-harness
gabrielvidal:plugin-conversation-labels
gabrielvidal:plugin-plan-usage
gabrielvidal:fix-worker-harness-sync
gabrielvidal:plugin-gcloud-reauth
gabrielvidal:feat/plugin-cards-in-thread
gabrielvidal:feat/plugin-proxy-wake
gabrielvidal:unify-subagents-children
gabrielvidal:wave3d-frontend-typed-plugins
gabrielvidal:wave3c-sidecar-strict-plugins
gabrielvidal:wave3a-catalog-accounts-profiles
gabrielvidal:wave3b-pricing-usage-cutover
gabrielvidal:wave1a-typed-plugins
gabrielvidal:wave1b-sidecar-runtime
gabrielvidal:fix-ios-overlay-scroll
gabrielvidal:batch2-work-resources-core
gabrielvidal:batch2-apikeys
gabrielvidal:plugin-blue-green-deploy
gabrielvidal:plugin-ship
gabrielvidal:plugin-project-env
gabrielvidal:plugin-memories
gabrielvidal:plugin-activity
gabrielvidal:plugin-templates
gabrielvidal:plugin-desk-phone
gabrielvidal:batch1-platform
gabrielvidal:plugins-list-view
gabrielvidal:dash-plugins
gabrielvidal:pets-plugin
gabrielvidal:ha-push-channel
gabrielvidal:mail-agents
gabrielvidal:graph-fix
gabrielvidal:graph-plugin
gabrielvidal:services-plugin
gabrielvidal:left-to-do-plugin
gabrielvidal:plugins-gallery
gabrielvidal:home-conv-menu
gabrielvidal:meta-business
gabrielvidal:agy-rdrand
gabrielvidal:bg-lag
gabrielvidal:conv-load-perf
gabrielvidal:askform-instant
gabrielvidal:fix/drawer-menu-done-chip
gabrielvidal:pi-midrun-compaction
gabrielvidal:interrupt-menu-btn
gabrielvidal:authz
gabrielvidal:inkling
gabrielvidal:repo-plugins
gabrielvidal:work-sync
gabrielvidal:leftovers
gabrielvidal:fix/agy-guest-guard
gabrielvidal:feat/model-presets
gabrielvidal:scroll-back
gabrielvidal:feedback-bell
gabrielvidal:feat/movies-tool
gabrielvidal:feat/running-thread-padding
gabrielvidal:feat/drawer-filter-button-card-chat
gabrielvidal:burn-rate
gabrielvidal:guest-install
gabrielvidal:guest-usage
gabrielvidal:guest-palette
gabrielvidal:guest-form-links
gabrielvidal:form-open-buttons
gabrielvidal:clarifier-lean
gabrielvidal:auto-archive
gabrielvidal:guests-profile
gabrielvidal:conv-motion
gabrielvidal:share-target
gabrielvidal:terminal-sync
gabrielvidal:work-context-past
gabrielvidal:work-context-brief
gabrielvidal:enroll-codes
gabrielvidal:open-image-file
gabrielvidal:worker-uploads
gabrielvidal:conv-drawer-search
gabrielvidal:stack-motion-v3
gabrielvidal:notif-stack-fixes
gabrielvidal:home-motion
gabrielvidal:i18n-fr
gabrielvidal:local-electricity-cost
gabrielvidal:cache-pill-thread
gabrielvidal:cache-scenarios
gabrielvidal:fresh-start
gabrielvidal:msg-select
gabrielvidal:shortcuts-setup
gabrielvidal:ui-0-40-3
gabrielvidal:outbox-landing
gabrielvidal:resume-scope
gabrielvidal:conv-filter-range
gabrielvidal:fix-subagent-form-session
gabrielvidal:ask-form-integration
gabrielvidal:form-visual-options
gabrielvidal:watcher-perf
gabrielvidal:last-msg-summary
gabrielvidal:secret-fields
gabrielvidal:commit-review
gabrielvidal:summary-mode-fixes
gabrielvidal:service-tag-parser
gabrielvidal:clarifier
gabrielvidal:fetch-diet-2
gabrielvidal:fetch-diet
gabrielvidal:conv-look
gabrielvidal:pwa-links
gabrielvidal:tool-widgets
gabrielvidal:worker-autoupdate
gabrielvidal:usage-rings
gabrielvidal:opencode-harness
gabrielvidal:notif-diet
gabrielvidal:conv-resources
gabrielvidal:scheduled-tasks
gabrielvidal:profiles
gabrielvidal:notify-exact-cost
gabrielvidal:usage-measuring
gabrielvidal:guest-projects
gabrielvidal:usage-calibration
gabrielvidal:account-switch
gabrielvidal:multiuser-improve
gabrielvidal:form-groups
gabrielvidal:multiuser
gabrielvidal:motion-reel
gabrielvidal:dashboards-fixes
gabrielvidal:split-big-files
gabrielvidal:held-regex
gabrielvidal:subagent-interrupts
gabrielvidal:form-html
gabrielvidal:tokunia-video
gabrielvidal:settings-uniform
gabrielvidal:worker-ask-fix
gabrielvidal:worker-generic-mac
gabrielvidal:runner-shortcuts
gabrielvidal:notify-unify
gabrielvidal:perf-list-cache
gabrielvidal:mac-worker
gabrielvidal:model-switch
gabrielvidal:pipeline-paths
gabrielvidal:multi-account
gabrielvidal:feature-flags
gabrielvidal:qwen38-support
gabrielvidal:url-prompt
gabrielvidal:running-pages
gabrielvidal:homelab-tag
gabrielvidal:root-project
gabrielvidal:or-models
gabrielvidal:deploying-loader
gabrielvidal:worktree-diff
gabrielvidal:conv-tags
gabrielvidal:tags-page
gabrielvidal:agents-page
gabrielvidal:icon-picker-shortcuts
gabrielvidal:conv-cta
gabrielvidal:stamp-refine
gabrielvidal:post-task-cache
gabrielvidal:post-tidy-completed
gabrielvidal:form-badge
gabrielvidal:hooks-delay-seconds
gabrielvidal:cost-dashboard
gabrielvidal:plan-forms
gabrielvidal:form-mobile
gabrielvidal:guidelines-dag
gabrielvidal:skills-view
gabrielvidal:navbar-hold
gabrielvidal:spawnbox-status
gabrielvidal:hold-editable-expand
gabrielvidal:drawer-transparent
gabrielvidal:hold-fix
gabrielvidal:hold-editable
gabrielvidal:charroll-bump
No Reviewers
Labels
No items
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Assignees
gabrielvidal (Gabriel Vidal)
Clear assignees
No Assignees
gabrielvidal
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gabrielvidal/ai-agent#65
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
An agent preset is now what runs (harness, model, effort, thinking). Where it runs is a separate pick: a preset's machine is only a default, which the run's own machine pick beats. A conversation started from another one —
ai-agent newinside a run,--detachincluded, or hub-mcpstart_conversation like=— now runs like it by default: it takes the parent's preset (else its exact harness/model/effort/thinking) and the parent's machine, for whatever the caller left unset. Gabriel's choices are in formpresets-vs-machines_uwgxdv.Goes with ai-agent-plugins #63 (agent-presets 1.1.0, hub-mcp 1.3.0): merge the two together.
Key changes
backend/runs/inherit.py(new):/api/spawnwithparent(or the newlike) fills the unset settings from that conversation.model, noharness): the parent's preset, re-routed. Otherwise its harness, model (route.exact→ transcriptcontextModel→meta.model), effort, thinking and additional system prompt. Its login comes too when the machine is also inherited.worker): the parent's machine (the lab for a lab run), plus its profile. A lab-only harness (pi) ignores it.childdefault may name a preset instead. "Same as parent" (parent) or no default means inherit.worker_offline,preset_unroutable,worker_harness,account) is retried without it, and the answer carriesinherited.machineDropped.inherited(SpawnInheritedschema). A guest's conversation passes nothing on.runs/routes.py:SpawnBody.like, plus the soft retry. A worker CLI'slikemust be visible to it, likeparent.runs/service.py:thinkingapplies when the caller sent none, both on a new run and on a step-down (popped from the meta patch).meta.modelis stamped at spawn and resume, so a child started before its parent's transcript is indexed still gets the model.plugins/run_router.py:brief(…, worker)andGET /api/plugins/run-presets?worker=(resolved throughworkers/picks, so names andlabwork), cached per machine.resolveandturnpassthinkingthrough.cli/ai_agent.py):--preset NAME, the same as--model preset:NAME. Combining it with--modelor--harnessis refused.--detachinside a run sendslike(no link and no report-back, but the same defaults).--json.--modelto get past an error.AgentPresetPickerloses its Machine section and the Custom chip's machine suffix. Save as preset also saves the thinking setting.SpawnComposershows the Runs on chip (WorkerSelect) next to the preset chip. In preset mode the pick is sent asworkertogether withpreset:<id>, and the brief is fetched per pick.WorkerSelectgainsautoHint("Best's default machine — EVOX2").schemas/misc.py(LadderNowfields,RunPresetsResponse.worker,SpawnInherited), plusopenapi.jsonandsrc/generatedregenerated, andcore/i18n_keys/ui.jsonupdated (3 new strings, 1 stale one dropped).?worker=, Best has a default machine, andchildisparent.CLAUDE.mdand the run-presets endpoint indocs/plugins.md.Key decisions
--on) > the parent's machine > the route's machine > the preset's machine > the profile's default.--modelkeeps the parent's machine,--onkeeps its model settings. The parent's login only follows when the machine does too, since another machine may not hold it.likerather than reusingparentwithreport:false: a detached run stays out of the parent's children list and its fan-out limit.Changelog
ai-agent newinside a run,--detachtoo) runs like it by default — same agent preset (or model, effort and thinking) and same machine; it says so on stderr.ai-agent new --preset NAME.start_conversation like=to start a conversation that runs like another one.ai-agent send --model preset:best) no longer fails, and presets step down to the next route in place again.Test notes
/data): 190 modules. 184 pass. The 6 that fail (test_agy,test_authz_matrix,test_local_energy,test_opencode,test_profiles,test_typed_plugins) fail on main with the same test ids (full lists diffed).test_spawn_inherit.py(20 tests: preset and exact parents, explicit picks, lab-only harness, guest parent, the soft-machine retry,likewithout the child link).test_run_router.py: thinking on resolve and step-down, the brief per machine,?worker=laband an unknown worker.test_ai_agent73, including--preset,likeon--detach, and the inherited line).tsc --noEmitis clean, and vitest passes 189 files / 1,240 tests (SpawnPreset.test.tsxadds a Runs on pick going out with the preset and the brief asked withworker=).newin a Best conversation → "like this conversation — the Best preset on the Homelab", launched on Fable.--model sonnet→ only the machine.--detach→like.sonnet --effort high --no-thinkparent → sonnet · high · thinking false · its login, which proves themeta.modelstamp.--preset free→ pi.POST /api/resumewithpreset:everyday→ 200 (a 409 on main's plugin).thinking: false.cb8d4ecc(CLI spawn machine/model forensics) proposes "pi on workers" and clearer errors. This PR covers its "child inherits the parent's model" item. Left alone, as asked.🤖 Generated with Claude Code
Screenshots
Merged into
mainasf1c864c8by the auto-ship batch https://ai-agent.lab.gabvdl.xyz/conversation/9527ab6e-d304-4ef3-b27b-061eb0f2ccf0.Pull request closed