workspace-switcher
Set up, inspect, select, or troubleshoot isolated Codex profiles for multiple ChatGPT accounts and workspaces. Use when a user wants to avoid repeated logout/login, keep Personal/Business/Enterprise workspaces separate, inspect official usage windows, or choose the identity used by a future native Codex process.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-14
- Stars
- ★ 1.6k
- Forks
- 491
01 前言 Front Matter
- name
- workspace-switcher
- description
- Set up, inspect, select, or troubleshoot isolated Codex profiles for multiple ChatGPT accounts and workspaces. Use when a user wants to avoid repeated logout/login, keep Personal/Business/Enterprise workspaces separate, inspect official usage windows, or choose the identity used by a future native Codex process.
03 SKILL.md 正文
Masaka Codex Workspace Switcher
Use the Masaka CLI bundled with this plugin. Resolve the plugin root two directories above this file. Prefer an installed masaka command; otherwise run node <plugin-root>/src/cli.mjs with the same arguments.
Identity model
Treat one profile as exactly one (ChatGPT account, ChatGPT workspace) identity with its own CODEX_HOME. Codex owns browser login, token refresh, and credential storage. Masaka stores display metadata and selects which isolated profile a future native Codex process uses.
Direct mode changes only newly started Codex processes. Proxy mode may route the next request of an existing client after onboarding, but never moves an in-flight response to another identity. Do not claim that a running conversation changes account or crosses workspace governance boundaries.
Workflow
- Run
masaka doctorand report missing prerequisites without changing unrelated files. - Use
masaka status,masaka profiles, andmasaka usagefor read-only inspection. - Use
masaka use <name-or-number>only after the requested profile is unambiguous. Explain that the selection applies to a future process or, in Proxy mode, the next request. - For a new profile, give the user
masaka add [name]to run in their own terminal so they can complete the official browser login. Verify afterward withmasaka status. - Show
masaka shell-initwhen the user wants ordinarycodexcommands to follow the selected profile. Never edit shell startup files unless the user explicitly asks. - Use
masaka onboardingormasaka proxy ononly when the user explicitly requests the optional local Proxy setup. State that the loopback daemon becomes the sole OAuth refresh owner while Proxy mode is active.
Do not start a nested interactive Codex TUI from an agent tool call. Provide the exact command for the user to run in a new terminal instead.
Safety boundaries
- Never print, copy, decode for display, or manually edit credential values or
auth.json. - Never describe profile switching as a way to bypass service limits or quotas. Usage windows remain authoritative per account and workspace.
- Do not reuse one profile for a different account or workspace. Add a new profile instead.
- Renew a profile only for the same identity and only after its active sessions are closed.
- Deletion requires the user's explicit request and exact-profile confirmation; Masaka moves deleted profiles to recoverable trash.
- Preserve the user's existing Codex configuration, plugins, skills, sessions, and shell setup unless they explicitly request a scoped change.
04 同仓库更多 Skills
worktable-review-with-annotations
Create, inspect, reply to, update, or resolve situated Worktable annotations. Use when feedback belongs to a Doc section, block, text range, or HTML Doc, or when the user asks to address existing review feedback and coordinate a requested artifact edit.
worktable-find-and-synthesize-context
Find, assess, and synthesize context from Worktable Docs and Records. Use when the user asks what a workspace contains, wants workspace-backed research, needs current facts reconciled across artifacts, or requests a cited synthesis without changing workspace state.
worktable-create-or-update-docs
Create, edit, rename, or maintain narrative Worktable Docs. Use for plans, decisions, briefs, notes, research syntheses, and other durable prose when the user requests a new artifact or a safe update to an existing one.
worktable-create-or-manage-records
Organize repeated structured information as durable Worktable Records. Use for research datasets, inventories, directories, pipelines, trackers, and other collections whose items need identity, fields, filtering, links, validation, or individual updates.
worktable-create-or-manage-interactive-html
Create or improve durable visual and interactive artifacts in Worktable. Use for dashboards, trackers, calculators, mini apps, slide presentations, and other requests that benefit from a polished HTML Doc.
worktable-collaborate-threads
Read, answer, and hand off messages through durable Worktable threads with users or other authenticated participants. Use when the user asks to check addressed messages, reply to a participant, continue a thread, request another agent's help, wait briefly for a response, or watch for comments and messages sent to the agent.