-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add cmux omo command for oh-my-openagent integration
#2087
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 7 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
697f4ba
Add `cmux omo` command for OpenCode + oh-my-openagent integration
lawrencecchen 60aca2a
Auto-install oh-my-opencode plugin when running cmux omo
lawrencecchen 1b43d33
Use shadow config dir to avoid modifying user's opencode setup
lawrencecchen 763d7b1
Add Agent Integrations docs section with Claude Code Teams and oh-my-…
lawrencecchen 1025196
Remove uppercase from sidebar section headers
lawrencecchen ca5497e
Add more spacing above and below sidebar section headers
lawrencecchen b2a0bc7
Enable tmux mode in oh-my-opencode config, improve docs
lawrencecchen 6b42f9f
Add terminal-notifier shim to route oh-my-openagent notifications to …
lawrencecchen 45a0c37
Add pane geometry to tmux-compat for oh-my-openagent grid planning
lawrencecchen 29135b4
Add socket tests for tmux-compat pane geometry
lawrencecchen 44da195
Handle tmux -V in shim script directly (no socket needed)
lawrencecchen 7d3b53f
Lower default tmux pane min widths for cmux omo
lawrencecchen 2aa7f14
Merge origin/main into issue-2085-cmux-omo
lawrencecchen 4622d66
Merge remote-tracking branch 'origin/main' into issue-2085-cmux-omo
lawrencecchen 1804a31
Resolve merge conflicts with main (main-vertical layout, focus param)
lawrencecchen e5799e5
Implement select-layout equalize and resize-pane absolute width
lawrencecchen 91deb44
Fix equalize to use proportional divider positions
lawrencecchen 31c3c4d
Fix select-layout main-vertical to only equalize vertical splits
lawrencecchen 714fe00
Re-equalize agent column after kill-pane
lawrencecchen 5487d5e
Address PR review comments
lawrencecchen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,30 @@ | ||
| export const navItems = [ | ||
| { titleKey: "gettingStarted" as const, href: "/docs/getting-started" }, | ||
| { titleKey: "concepts" as const, href: "/docs/concepts" }, | ||
| { titleKey: "configuration" as const, href: "/docs/configuration" }, | ||
| { titleKey: "keyboardShortcuts" as const, href: "/docs/keyboard-shortcuts" }, | ||
| { titleKey: "apiReference" as const, href: "/docs/api" }, | ||
| { titleKey: "browserAutomation" as const, href: "/docs/browser-automation" }, | ||
| { titleKey: "notifications" as const, href: "/docs/notifications" }, | ||
| { titleKey: "changelog" as const, href: "/docs/changelog" }, | ||
| export type NavLink = { titleKey: string; href: string }; | ||
| export type NavSection = { sectionKey: string; children: NavLink[] }; | ||
| export type NavEntry = NavLink | NavSection; | ||
|
|
||
| export function isSection(entry: NavEntry): entry is NavSection { | ||
| return "sectionKey" in entry; | ||
| } | ||
|
|
||
| /** Flatten sections into an ordered list of links (for pager prev/next). */ | ||
| export function flatNavItems(entries: NavEntry[]): NavLink[] { | ||
| return entries.flatMap((e) => (isSection(e) ? e.children : [e])); | ||
| } | ||
|
|
||
| export const navItems: NavEntry[] = [ | ||
| { titleKey: "gettingStarted", href: "/docs/getting-started" }, | ||
| { titleKey: "concepts", href: "/docs/concepts" }, | ||
| { titleKey: "configuration", href: "/docs/configuration" }, | ||
| { titleKey: "keyboardShortcuts", href: "/docs/keyboard-shortcuts" }, | ||
| { titleKey: "apiReference", href: "/docs/api" }, | ||
| { titleKey: "browserAutomation", href: "/docs/browser-automation" }, | ||
| { titleKey: "notifications", href: "/docs/notifications" }, | ||
| { | ||
| sectionKey: "agentIntegrations", | ||
| children: [ | ||
| { titleKey: "claudeCodeTeams", href: "/docs/agent-integrations/claude-code-teams" }, | ||
| { titleKey: "ohMyOpenCode", href: "/docs/agent-integrations/oh-my-opencode" }, | ||
| ], | ||
| }, | ||
| { titleKey: "changelog", href: "/docs/changelog" }, | ||
| ]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
89 changes: 89 additions & 0 deletions
89
web/app/[locale]/docs/agent-integrations/claude-code-teams/page.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,89 @@ | ||
| import { useTranslations } from "next-intl"; | ||
| import { getTranslations } from "next-intl/server"; | ||
| import { CodeBlock } from "../../../components/code-block"; | ||
| import { Callout } from "../../../components/callout"; | ||
| import { Link } from "../../../../../i18n/navigation"; | ||
|
|
||
| export async function generateMetadata({ params }: { params: Promise<{ locale: string }> }) { | ||
| const { locale } = await params; | ||
| const t = await getTranslations({ locale, namespace: "docs.claudeCodeTeams" }); | ||
| return { | ||
| title: t("metaTitle"), | ||
| description: t("metaDescription"), | ||
| }; | ||
| } | ||
|
|
||
| export default function ClaudeCodeTeamsPage() { | ||
| const t = useTranslations("docs.claudeCodeTeams"); | ||
|
|
||
| return ( | ||
| <> | ||
| <h1>{t("title")}</h1> | ||
|
|
||
| <Callout type="warn"> | ||
| {t.rich("nightlyWarning", { | ||
| nightly: (chunks) => <Link href="/nightly" className="underline">{chunks}</Link>, | ||
| })} | ||
| </Callout> | ||
|
|
||
| <p>{t("intro")}</p> | ||
|
|
||
| <h2>{t("usage")}</h2> | ||
| <CodeBlock lang="bash">{`cmux claude-teams | ||
| cmux claude-teams --continue | ||
| cmux claude-teams --model sonnet`}</CodeBlock> | ||
| <p>{t("usageDesc")}</p> | ||
|
|
||
| <h2>{t("howItWorks")}</h2> | ||
| <p>{t("howItWorksDesc")}</p> | ||
| <ul> | ||
| <li>{t("shimStep1")}</li> | ||
| <li>{t("shimStep2")}</li> | ||
| <li>{t("shimStep3")}</li> | ||
| <li>{t("shimStep4")}</li> | ||
| </ul> | ||
|
|
||
| <h2>{t("envVars")}</h2> | ||
| <table> | ||
| <thead> | ||
| <tr> | ||
| <th>{t("envVarName")}</th> | ||
| <th>{t("envVarPurpose")}</th> | ||
| </tr> | ||
| </thead> | ||
| <tbody> | ||
| <tr><td><code>TMUX</code></td><td>{t("envTmux")}</td></tr> | ||
| <tr><td><code>TMUX_PANE</code></td><td>{t("envTmuxPane")}</td></tr> | ||
| <tr><td><code>CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS</code></td><td>{t("envTeams")}</td></tr> | ||
| <tr><td><code>CMUX_SOCKET_PATH</code></td><td>{t("envSocket")}</td></tr> | ||
| </tbody> | ||
| </table> | ||
|
|
||
| <h2>{t("directories")}</h2> | ||
| <table> | ||
| <thead> | ||
| <tr> | ||
| <th>{t("dirPath")}</th> | ||
| <th>{t("dirPurpose")}</th> | ||
| </tr> | ||
| </thead> | ||
| <tbody> | ||
| <tr><td><code>~/.cmuxterm/claude-teams-bin/</code></td><td>{t("dirShim")}</td></tr> | ||
| <tr><td><code>~/.cmuxterm/tmux-compat-store.json</code></td><td>{t("dirStore")}</td></tr> | ||
| </tbody> | ||
| </table> | ||
|
|
||
| <h2>{t("tmuxCommands")}</h2> | ||
| <p>{t("tmuxCommandsDesc")}</p> | ||
| <ul> | ||
| <li><code>new-session</code>, <code>new-window</code> → {t("mapWorkspace")}</li> | ||
| <li><code>split-window</code> → {t("mapSplit")}</li> | ||
| <li><code>send-keys</code> → {t("mapSendText")}</li> | ||
| <li><code>capture-pane</code> → {t("mapReadText")}</li> | ||
| <li><code>select-pane</code>, <code>select-window</code> → {t("mapFocus")}</li> | ||
| <li><code>kill-pane</code>, <code>kill-window</code> → {t("mapClose")}</li> | ||
| <li><code>list-panes</code>, <code>list-windows</code> → {t("mapList")}</li> | ||
| </ul> | ||
| </> | ||
| ); | ||
| } |
108 changes: 108 additions & 0 deletions
108
web/app/[locale]/docs/agent-integrations/oh-my-opencode/page.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,108 @@ | ||
| import { useTranslations } from "next-intl"; | ||
| import { getTranslations } from "next-intl/server"; | ||
| import { CodeBlock } from "../../../components/code-block"; | ||
| import { Callout } from "../../../components/callout"; | ||
| import { Link } from "../../../../../i18n/navigation"; | ||
|
|
||
| export async function generateMetadata({ params }: { params: Promise<{ locale: string }> }) { | ||
| const { locale } = await params; | ||
| const t = await getTranslations({ locale, namespace: "docs.ohMyOpenCode" }); | ||
| return { | ||
| title: t("metaTitle"), | ||
| description: t("metaDescription"), | ||
| }; | ||
| } | ||
|
|
||
| export default function OhMyOpenCodePage() { | ||
| const t = useTranslations("docs.ohMyOpenCode"); | ||
|
|
||
| return ( | ||
| <> | ||
| <h1>{t("title")}</h1> | ||
|
|
||
| <Callout type="warn"> | ||
| {t.rich("nightlyWarning", { | ||
| nightly: (chunks) => <Link href="/nightly" className="underline">{chunks}</Link>, | ||
| })} | ||
| </Callout> | ||
|
|
||
| <p>{t("intro")}</p> | ||
|
|
||
| <h2>{t("usage")}</h2> | ||
| <CodeBlock lang="bash">{`cmux omo | ||
| cmux omo --continue | ||
| cmux omo --model claude-sonnet-4-6`}</CodeBlock> | ||
| <p>{t("usageDesc")}</p> | ||
|
|
||
| <h2>{t("whatYouGet")}</h2> | ||
| <p>{t("whatYouGetDesc")}</p> | ||
| <ul> | ||
| <li>{t("whatYouGet1")}</li> | ||
| <li>{t("whatYouGet2")}</li> | ||
| <li>{t("whatYouGet3")}</li> | ||
| <li>{t("whatYouGet4")}</li> | ||
| <li>{t("whatYouGet5")}</li> | ||
| </ul> | ||
|
|
||
| <h2>{t("firstRun")}</h2> | ||
| <p>{t("firstRunDesc")}</p> | ||
| <ol> | ||
| <li>{t("firstRunStep1")}</li> | ||
| <li>{t("firstRunStep2")}</li> | ||
| <li>{t("firstRunStep3")}</li> | ||
| <li>{t("firstRunStep4")}</li> | ||
| </ol> | ||
| <p>{t("firstRunSafe")}</p> | ||
|
|
||
| <h2>{t("howItWorks")}</h2> | ||
| <p>{t("howItWorksDesc")}</p> | ||
| <ul> | ||
| <li>{t("shimStep1")}</li> | ||
| <li>{t("shimStep2")}</li> | ||
| <li>{t("shimStep3")}</li> | ||
| <li>{t("shimStep4")}</li> | ||
| <li>{t("shimStep5")}</li> | ||
| </ul> | ||
|
|
||
| <h2>{t("directories")}</h2> | ||
| <table> | ||
| <thead> | ||
| <tr> | ||
| <th>{t("dirPath")}</th> | ||
| <th>{t("dirPurpose")}</th> | ||
| </tr> | ||
| </thead> | ||
| <tbody> | ||
| <tr><td><code>~/.cmuxterm/omo-bin/</code></td><td>{t("dirShim")}</td></tr> | ||
| <tr><td><code>~/.cmuxterm/omo-config/</code></td><td>{t("dirShadow")}</td></tr> | ||
| <tr><td><code>~/.cmuxterm/tmux-compat-store.json</code></td><td>{t("dirStore")}</td></tr> | ||
| </tbody> | ||
| </table> | ||
|
|
||
| <h2>{t("shadowConfig")}</h2> | ||
| <p>{t("shadowConfigDesc")}</p> | ||
| <ul> | ||
| <li>{t("shadowStep1")}</li> | ||
| <li>{t("shadowStep2")}</li> | ||
| <li>{t("shadowStep3")}</li> | ||
| <li>{t("shadowStep4")}</li> | ||
| </ul> | ||
|
|
||
| <h2>{t("envVars")}</h2> | ||
| <table> | ||
| <thead> | ||
| <tr> | ||
| <th>{t("envVarName")}</th> | ||
| <th>{t("envVarPurpose")}</th> | ||
| </tr> | ||
| </thead> | ||
| <tbody> | ||
| <tr><td><code>TMUX</code></td><td>{t("envTmux")}</td></tr> | ||
| <tr><td><code>TMUX_PANE</code></td><td>{t("envTmuxPane")}</td></tr> | ||
| <tr><td><code>OPENCODE_CONFIG_DIR</code></td><td>{t("envConfigDir")}</td></tr> | ||
| <tr><td><code>CMUX_SOCKET_PATH</code></td><td>{t("envSocket")}</td></tr> | ||
| </tbody> | ||
| </table> | ||
| </> | ||
| ); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -551,6 +551,9 @@ | |||||
| "apiReference": "مرجع الواجهة البرمجية", | ||||||
| "browserAutomation": "أتمتة المتصفح", | ||||||
| "notifications": "الإشعارات", | ||||||
| "agentIntegrations": "Agent Integrations", | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P3: Prompt for AI agents
Suggested change
|
||||||
| "claudeCodeTeams": "Claude Code Teams", | ||||||
| "ohMyOpenCode": "oh-my-opencode", | ||||||
| "changelog": "سجل التغييرات" | ||||||
| } | ||||||
| }, | ||||||
|
|
||||||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Guard the
-1index case before computing neighbors.Line 11 can return
-1; then Line 13 incorrectly setsnextto the first doc item. Add an early return when the path is not in the flattened nav.Suggested fix
const flat = flatNavItems(navItems); const index = flat.findIndex((item) => item.href === pathname); + if (index === -1) return null; const prev = index > 0 ? flat[index - 1] : null; const next = index < flat.length - 1 ? flat[index + 1] : null;📝 Committable suggestion
🤖 Prompt for AI Agents