René's URL Explorer Experiment


Title: feat: engine-ops async folding workspace builder by tony · Pull Request #1075 · tmux-python/tmuxp · GitHub

Open Graph Title: feat: engine-ops async folding workspace builder by tony · Pull Request #1075 · tmux-python/tmuxp

X Title: feat: engine-ops async folding workspace builder by tony · Pull Request #1075 · tmux-python/tmuxp

Description: Adds an opt-in async workspace builder backed by libtmux's experimental engine-ops stack, plus CLI switches for single-session, parallel, and matrix loads. What's here EngineOpsWorkspaceBuilder (workspace/builder/engine_ops.py): a WorkspaceBuilderProtocol that lowers an expanded workspace dict to libtmux's declarative Workspace IR and abuilds it asynchronously. The build folds: a multi-pane window's commands collapse into a handful of ;-chained dispatches instead of one send-keys per line, so a session renders in a few round-trips rather than dozens. Registered as the engine-ops entry point. workspace_builder: engine-ops config key selects the builder. tmuxp load --engine-ops selects it for a single load without editing the workspace file; the load spinner keeps working via a structural-event bridge. tmuxp load --engine-ops-engine {subprocess,control_mode} picks the async engine the fold runs on (default subprocess). subprocess forks a tmux per dispatch; control_mode drives the whole fold over one persistent tmux -C control-mode client, trading per-call process spawns for a single long-lived connection. Applies to --engine-ops, --parallel, and --expand alike. (imsg has no async engine, so it isn't offered here.) tmuxp load --parallel builds every WORKSPACE_FILE as one WorkspaceSet: all sessions compile into a single rebased, folded plan sharing one preflight, instead of one detached load per file. --dry-run prints the compiled tmux plan without touching the server; --no-fold dispatches one command per operation for debugging. -a/--append and -s are rejected (they describe single-session semantics). tmuxp load --expand KEY=V1,V2 expands one parameterized file into a session per value, substituting $KEY placeholders (e.g. session_name: app-$env). Repeat --expand for a matrix (Cartesian product). Implies the folded set build. Plugin support on the set path --parallel/--expand run the post-build before_script plugin hook on each built session (loaded before the fold so the version pre-flight still gates; run in the file's import sandbox; a raising hook is logged, not fatal to the other sessions). Mid-build hooks (before_workspace_builder, on_window_create, after_window_finished) can't fire without unfolding the plan, so a plugin that overrides one is skipped with a warning; reattach isn't fired on fresh builds (as on any fresh sequential load). Load a workspace on its own for the full hook sequence. See docs/topics/plugins.md. Notes Session collisions surface as FileExistsError (on_exists='error'); duplicate session names in a set are rejected up front. Progress streaming through abuild(on_event=...) is intentionally not wired here: the plugin hooks run after asyncio.run returns and never touch the event stream. (A future streaming PR should route on_event through a bounded non-blocking pump — libtmux's sets.py currently awaits the sink inline, which would head-of-line-block the fold.) Try it via uvx / uv tool This branch pins libtmux to its unreleased engine-ops branch via [tool.uv.sources], and a recent uv (tested with 0.11.25) honors that pin when installing from git — so no extra flags are needed. Do not add --with git+…libtmux…: the pin already supplies it, and a second URL fails with a "conflicting URLs" error. You'll also need tmux on your PATH. These commands attach to the new session; add -d (--detach) to build it in the background instead. Run it once, ephemerally, with uvx: uvx --from git+https://github.com/tmux-python/tmuxp.git@engine-ops tmuxp load --engine-ops ./workspace.yaml Pick the engine the fold runs on. The default is subprocess (a tmux fork per dispatch); pass --engine-ops-engine control_mode to drive the whole fold over one persistent tmux -C client instead: uvx --from git+https://github.com/tmux-python/tmuxp.git@engine-ops tmuxp load --engine-ops --engine-ops-engine control_mode ./workspace.yaml Build several workspaces as one folded set: uvx --from git+https://github.com/tmux-python/tmuxp.git@engine-ops tmuxp load --parallel a.yaml b.yaml Or expand one parameterized file into a matrix of sessions: uvx --from git+https://github.com/tmux-python/tmuxp.git@engine-ops tmuxp load --expand env=dev,prod ./app.yaml The --engine-ops-engine switch works on the set path too: uvx --from git+https://github.com/tmux-python/tmuxp.git@engine-ops tmuxp load --expand env=dev,prod --engine-ops-engine control_mode ./app.yaml Install it persistently as tmuxp on your PATH: uv tool install --from git+https://github.com/tmux-python/tmuxp.git@engine-ops tmuxp Then load any workspace through the folding builder: tmuxp load --engine-ops ./workspace.yaml Dependency Pins libtmux to the engine-ops branch via [tool.uv.sources] — the engine-ops workspace API is unreleased (libtmux.experimental). Draft until that lands.

Open Graph Description: Adds an opt-in async workspace builder backed by libtmux's experimental engine-ops stack, plus CLI switches for single-session, parallel, and matrix loads. What's here EngineOpsWorkspaceBu...

X Description: Adds an opt-in async workspace builder backed by libtmux's experimental engine-ops stack, plus CLI switches for single-session, parallel, and matrix loads. What's here EngineOpsWor...

Opengraph URL: https://github.com/tmux-python/tmuxp/pull/1075

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:33b52359-bb52-2df9-afa4-176a4dd380b7
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9A90:2AF6F7:29F553:3840CD:6B009DC9
html-safe-nonce5c0aeb975a83d2c849d9f862cd42db3b826fca55f9a97d66d3747254bee5bc72
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QTkwOjJBRjZGNzoyOUY1NTM6Mzg0MENEOjZCMDA5REM5IiwidmlzaXRvcl9pZCI6IjcxMDE4NzY4NjQwOTU5MTk1NjEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacf7944dc24b50e403ff65919c0265ec8c7f2008b2998850a5494eabc6c240d0ac
hovercard-subject-tagpull_request:3991966758
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/tmux-python/tmuxp/pull/1075/files
twitter:imagehttps://avatars.githubusercontent.com/u/26336?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/26336?s=400&v=4
og:image:altAdds an opt-in async workspace builder backed by libtmux's experimental engine-ops stack, plus CLI switches for single-session, parallel, and matrix loads. What's here EngineOpsWorkspaceBu...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None52c95ce7e48016ae14399656b4ee812462b6f1fa28c5008c8394da64794c00b8
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/tmux-python/tmuxp git https://github.com/tmux-python/tmuxp.git
octolytics-dimension-user_id37234308
octolytics-dimension-user_logintmux-python
octolytics-dimension-repository_id12398170
octolytics-dimension-repository_nwotmux-python/tmuxp
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id12398170
octolytics-dimension-repository_network_root_nwotmux-python/tmuxp
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release1c9ddec8215f9a94e295c8310c3579b9c54ba31a
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/tmux-python/tmuxp/pull/1075/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftmux-python%2Ftmuxp%2Fpull%2F1075%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ftmux-python%2Ftmuxp%2Fpull%2F1075%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=tmux-python%2Ftmuxp
Reloadhttps://github.com/tmux-python/tmuxp/pull/1075/files
Reloadhttps://github.com/tmux-python/tmuxp/pull/1075/files
Reloadhttps://github.com/tmux-python/tmuxp/pull/1075/files
tmux-pythonhttps://github.com/tmux-python
tmuxphttps://github.com/tmux-python/tmuxp
Codehttps://github.com/tmux-python/tmuxp
Issues113 (113)https://github.com/tmux-python/tmuxp/issues
Pull requests29 (29)https://github.com/tmux-python/tmuxp/pulls
Discussionshttps://github.com/tmux-python/tmuxp/discussions
Actionshttps://github.com/tmux-python/tmuxp/actions
Security and qualityhttps://github.com/tmux-python/tmuxp/security
Insightshttps://github.com/tmux-python/tmuxp/insights
Sign up for GitHub https://github.com/signup?return_to=%2Ftmux-python%2Ftmuxp%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Ftmux-python%2Ftmuxp%2Fissues%2Fnew%2Fchoose
tonyhttps://github.com/tony
masterhttps://github.com/tmux-python/tmuxp/tree/master
engine-opshttps://github.com/tmux-python/tmuxp/tree/engine-ops
Conversation 1 https://github.com/tmux-python/tmuxp/pull/1075
Commits 14 https://github.com/tmux-python/tmuxp/pull/1075/commits
Checks 14 https://github.com/tmux-python/tmuxp/pull/1075/checks
Files changed https://github.com/tmux-python/tmuxp/pull/1075/files
Please reload this pagehttps://github.com/tmux-python/tmuxp/pull/1075/files
feat: engine-ops async folding workspace builder https://github.com/tmux-python/tmuxp/pull/1075/files#top
Show all changes 14 commits https://github.com/tmux-python/tmuxp/pull/1075/files
19ee0d2 chore(deps): Pin libtmux to the engine-ops branch (dev) tony Jul 4, 2026 https://github.com/tmux-python/tmuxp/pull/1075/commits/19ee0d2d2ccf2412c411c16af2076e43186153ef
90dd70e feat(builder): Add engine-ops async folding workspace builder tony Jul 4, 2026 https://github.com/tmux-python/tmuxp/pull/1075/commits/90dd70ebce09b12f77a724d6f0ddc46e2af869b8
485fcf1 cli(load): Add --engine-ops builder flag tony Jul 4, 2026 https://github.com/tmux-python/tmuxp/pull/1075/commits/485fcf177bf62a5657b90074bc08bb6ef645e80b
1aab758 cli(load): Add --parallel workspace-set build tony Jul 4, 2026 https://github.com/tmux-python/tmuxp/pull/1075/commits/1aab7583826592406cdabdba154a3f46767e91ee
e438e31 cli(load): Add --expand matrix loads tony Jul 4, 2026 https://github.com/tmux-python/tmuxp/pull/1075/commits/e438e310a9177ce4a1248459f52f371cb6c69ae7
46f9c59 cli(load): Run before_script on set builds tony Jul 4, 2026 https://github.com/tmux-python/tmuxp/pull/1075/commits/46f9c59c9476b26ad43c8a66bdd58b45460955d1
f578c8b chore(deps): Re-lock libtmux to engine-ops tip tony Jul 5, 2026 https://github.com/tmux-python/tmuxp/pull/1075/commits/f578c8b9099070a8256fb41588c2be4f9ef9dadd
ea1cbdb chore(deps): Re-lock libtmux to engine-ops tip tony Jul 5, 2026 https://github.com/tmux-python/tmuxp/pull/1075/commits/ea1cbdbaf6a4e38ada13d71da4a81cf754b252f1
3468ea9 Load(feat[engine-ops]): Add --engine-ops-engine to pick the async engine tony Jul 5, 2026 https://github.com/tmux-python/tmuxp/pull/1075/commits/3468ea9e4db5177e29ec7ea3af5d5582d9b07c1f
99b2410 chore(deps): Re-lock libtmux to engine-ops tip tony Jul 5, 2026 https://github.com/tmux-python/tmuxp/pull/1075/commits/99b24109f57bb86d49b32f5e8297ba6a7d00ca17
3f9a4dc chore(deps): Re-lock libtmux to engine-ops tip tony Jul 5, 2026 https://github.com/tmux-python/tmuxp/pull/1075/commits/3f9a4dcff5d72c82b3b38e9ce65c2c8a1474ad9b
a518728 chore(deps): Re-lock libtmux to engine-ops tip tony Jul 5, 2026 https://github.com/tmux-python/tmuxp/pull/1075/commits/a518728ba8d23f4adcb62590caea0ca6d462711a
0e24551 chore(deps): Re-lock libtmux to rebased engine-ops tip tony Jul 5, 2026 https://github.com/tmux-python/tmuxp/pull/1075/commits/0e24551621142df5d2a1fe2c4c6c5ff65f3b6e54
55a4866 chore(deps): Bump libtmux engine-ops pin tony Jul 11, 2026 https://github.com/tmux-python/tmuxp/pull/1075/commits/55a4866741065e72d462e38fa8df4881285b72bc
Clear filters https://github.com/tmux-python/tmuxp/pull/1075/files
Please reload this pagehttps://github.com/tmux-python/tmuxp/pull/1075/files
Please reload this pagehttps://github.com/tmux-python/tmuxp/pull/1075/files
plugins.md https://github.com/tmux-python/tmuxp/pull/1075/files#diff-ac8c70820b3e8f8d0bf1cc1a71fb31f49acf69ae9012c523ecc8b5a8e60c2b55
pyproject.toml https://github.com/tmux-python/tmuxp/pull/1075/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
load.py https://github.com/tmux-python/tmuxp/pull/1075/files#diff-5a6cefe222da9d8e8c0fc10b55805661c46f32e982551da24a26d1ec0674828c
engine_ops.py https://github.com/tmux-python/tmuxp/pull/1075/files#diff-917b304f8d4f30db828f8edd2df1804812c261864d9e4aaf9223622a61109a32
test_load_parallel.py https://github.com/tmux-python/tmuxp/pull/1075/files#diff-800caff42820fd625ba54cd528a8ce0c0aaaf2cb61bb16890afa612858062ec3
test_load_parallel_plugins.py https://github.com/tmux-python/tmuxp/pull/1075/files#diff-8c2c54e0ec44ecb2da0904434a8f88ffeabc247b32e8b564cf42e1e99e6067fb
test_builder_engine_ops.py https://github.com/tmux-python/tmuxp/pull/1075/files#diff-57919ac8f0b1cba4b8259308efc5ecc67a87bcaaa86bc182390fb757c2f0dee3
uv.lock https://github.com/tmux-python/tmuxp/pull/1075/files#diff-84321598744d84dbee2318e634c74c9aae39a1c253f1c4bd17ebf9ef2f807b11
docs/topics/plugins.mdhttps://github.com/tmux-python/tmuxp/pull/1075/files#diff-ac8c70820b3e8f8d0bf1cc1a71fb31f49acf69ae9012c523ecc8b5a8e60c2b55
View file https://github.com/tmux-python/tmuxp/blob/55a4866741065e72d462e38fa8df4881285b72bc/docs/topics/plugins.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/tmux-python/tmuxp/pull/1075/{{ revealButtonHref }}
https://github.com/tmux-python/tmuxp/pull/1075/files#diff-ac8c70820b3e8f8d0bf1cc1a71fb31f49acf69ae9012c523ecc8b5a8e60c2b55
https://github.com/tmux-python/tmuxp/pull/1075/files#diff-ac8c70820b3e8f8d0bf1cc1a71fb31f49acf69ae9012c523ecc8b5a8e60c2b55
pyproject.tomlhttps://github.com/tmux-python/tmuxp/pull/1075/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
View file https://github.com/tmux-python/tmuxp/blob/55a4866741065e72d462e38fa8df4881285b72bc/pyproject.toml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/tmux-python/tmuxp/pull/1075/{{ revealButtonHref }}
https://github.com/tmux-python/tmuxp/pull/1075/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
https://github.com/tmux-python/tmuxp/pull/1075/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
https://github.com/tmux-python/tmuxp/pull/1075/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
https://github.com/tmux-python/tmuxp/pull/1075/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
Please reload this pagehttps://github.com/tmux-python/tmuxp/pull/1075/files
Please reload this pagehttps://github.com/tmux-python/tmuxp/pull/1075/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.