Skip to content

Opensessions - #1469

Merged
shunkakinoki merged 12 commits into
mainfrom
opensessions
Apr 13, 2026
Merged

Opensessions#1469
shunkakinoki merged 12 commits into
mainfrom
opensessions

Conversation

@shunkakinoki

@shunkakinoki shunkakinoki commented Apr 13, 2026

Copy link
Copy Markdown
Owner

Summary by cubic

Add OpenSessions support via a tmux plugin and Ghostty keybinds to streamline session navigation. Also enables AMP integration in templates, updates Claude settings, and adjusts packages for stability.

  • New Features

    • Enable Ataraxy-Labs/opensessions TPM plugin in tmux and initialize TPM.
    • Add Ghostty keybinds for OpenSessions sidebar actions and quick switching.
  • Refactors

    • Update amp.url to https://ampcode.com; uncomment ampcode settings and model mappings in cliproxyapi templates.
    • Claude: set "effortLevel": "high"; add env flags (CLAUDE_CODE_DISABLE_*, CLAUDE_CODE_SUBAGENT_MODEL=sonnet); remove duplicate CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS.
    • Remove custom_models from factory/config.json; keep "completionSound": "off".
    • Nix/Homebrew: gate vllm to x86_64-linux, keep qwen-code for non-aarch64-linux; add tmux; remove @latest from claude-code and codex.

Written for commit ae85636. Summary will update on new commits.

@mesa-dot-dev

mesa-dot-dev Bot commented Apr 13, 2026

Copy link
Copy Markdown

You do not have enough credits to review this pull request. Please purchase more credits to continue.

@coderabbitai

coderabbitai Bot commented Apr 13, 2026

Copy link
Copy Markdown

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 6fc761eb-aa92-4b41-9a4b-fcbc8119abd2

📥 Commits

Reviewing files that changed from the base of the PR and between d1153f7 and ae85636.

📒 Files selected for processing (3)
  • config/claude/settings.json
  • config/cliproxyapi/config.template.yaml
  • config/cliproxyapi/config.tpl.yaml

Disabled knowledge base sources:

  • Linear integration is disabled

You can enable these sources in your CodeRabbit configuration.


📝 Walkthrough

Summary by CodeRabbit

  • New Features

    • Added keyboard shortcuts for Ghostty
    • Integrated tmux plugin for opensessions
  • Configuration

    • Completion sound setting changed to off
    • AMP endpoint updated to https://ampcode.com; ampcode integration disabled in templates
    • Claude settings: new effortLevel and environment flags to disable certain features
    • Package availability narrowed by CPU architecture; Homebrew additions/unchanged cask names updated

Walkthrough

Multiple configuration files were updated: AMP endpoint switched to production, AMP integration commented out in CLI proxy templates, factory custom models removed, Ghostty keybindings added, TPM plugin and tmux added, vllm restricted to x86_64-linux, and Homebrew brews/casks adjusted.

Changes

Cohort / File(s) Summary
AMP config
config/amp/settings.json
Updated amp.url from http://localhost:8317 to https://ampcode.com.
CLI proxy templates
config/cliproxyapi/config.template.yaml, config/cliproxyapi/config.tpl.yaml
Commented-out/disabled the top-level ampcode block (upstream-url, upstream-api-key, restrict-management-to-localhost, model-mappings).
Factory config
config/factory/config.json
Removed custom_models array and replaced with "completionSound": "off".
Ghostty keybindings
config/ghostty/config
Added "opensessions sidebar" macOS cmd keybind entries (multiple new keybind lines).
Nix packages
home-manager/packages/default.nix
Restricted vllm inclusion to x86_64-linux only (moved into architecture-specific conditional).
Tmux / TPM
home-manager/programs/tmux/tmux.conf
Added @plugin 'Ataraxy-Labs/opensessions' and run-shell ~/.tmux/plugins/tpm/tpm.
Homebrew (nix-darwin)
nix-darwin/config/homebrew.nix
Added tmux to brews; replaced claude-code@latestclaude-code and codex@latestcodex in casks.
Claude settings
config/claude/settings.json
Added "effortLevel": "high" and env flags: CLAUDE_CODE_DISABLE_1M_CONTEXT, CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING, CLAUDE_CODE_DISABLE_AUTO_MEMORY (all "1"), and CLAUDE_CODE_SUBAGENT_MODEL: "sonnet".

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

Poem

🐰
I hop through configs, tidy and bright,
AMP now travels by moonlit site.
Tmux plugins snap, keybinds take flight,
x86 gets vllm, Homebrew feels light.
A carrot-coded cheer for changes tonight! 🥕✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title 'Opensessions' directly refers to the main feature being added (OpenSessions TPM plugin and Ghostty keybinds), though it could be more descriptive.
Description check ✅ Passed The description comprehensively covers all changes including new features (TPM plugin, Ghostty keybinds) and refactors (AMP config updates, package management changes), directly relating to the changeset.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch opensessions

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@mesa-dot-dev

mesa-dot-dev Bot commented Apr 13, 2026

Copy link
Copy Markdown

Mesa Description

TL;DR

Add OpenSessions support via a tmux plugin and Ghostty keybinds to streamline session navigation. Also cleans up AMP/config templates and adjusts package installs for stability.

What changed?

  • config/amp/settings.json: Updated amp.url to https://ampcode.com.
  • config/cliproxyapi/config.template.yaml: Commented out the ampcode configuration section.
  • config/cliproxyapi/config.tpl.yaml: Commented out the ampcode configuration block.
  • config/factory/config.json: Removed custom_models array and added completionSound set to off.
  • config/ghostty/config: Added new keybind configurations for an 'opensessions sidebar'.
  • home-manager/packages/default.nix: Reconfigured vllm package to be available only on x86_64-linux systems.
  • home-manager/programs/tmux/tmux.conf: Introduced a new section for tmux Plugin Manager (TPM) plugins, specifically adding the 'Ataraxy-Labs/opensessions' plugin, and initialized TPM.
  • nix-darwin/config/homebrew.nix: Added "tmux" to installed brews and removed explicit "@latest" versioning for "claude-code" and "codex" casks.

Description generated by Mesa. Update settings

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates configuration settings for AMP, the CLI proxy, and the factory model list, while adding new keybindings to Ghostty and the opensessions plugin to tmux. It also restricts the vllm package to x86_64-linux and updates Homebrew package lists. Feedback was provided regarding the non-idiomatic hardcoding of the TPM path in a Nix environment, the potential redundancy of managing tmux via Homebrew when it is already handled by Home Manager, and the miscategorization of CLI tools like claude-code and codex as casks instead of formulas.

set -g @plugin 'Ataraxy-Labs/opensessions'

# Initialize TPM (keep at bottom)
run-shell ~/.tmux/plugins/tpm/tpm

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Hardcoding the path to TPM (~/.tmux/plugins/tpm/tpm) is not idiomatic in a Nix-managed environment. This creates a non-hermetic dependency on external state that may not exist if TPM hasn't been manually cloned. In a Home Manager setup, it is recommended to manage tmux plugins using the programs.tmux.plugins option, which handles installation and initialization automatically.

"sheldon"
"sshpass"
"temporal"
"tmux"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Adding tmux to the Homebrew brews list may be redundant if it is already managed via Home Manager (as indicated by the presence of home-manager/programs/tmux/tmux.conf). Managing core utilities through Nix is generally preferred in this setup to ensure consistency and avoid potential path conflicts between Homebrew and Nix-installed binaries.

"chatgpt"
"cmux"
"claude-code@latest"
"claude-code"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

claude-code is a CLI tool and should likely be listed under brews rather than casks. Casks are typically reserved for GUI applications. If this is a CLI tool distributed via a tap, moving it to the brews section will ensure it is installed correctly as a formula.

"claude"
"codex-app"
"codex@latest"
"codex"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

codex appears to be a CLI tool and should likely be moved to the brews list. The GUI version of the application is already correctly categorized as codex-app in the casks list.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
config/cliproxyapi/config.tpl.yaml (1)

41-52: Consider collapsing this fully-disabled AMP block to a short note.

Since AMP is intentionally off here, maintaining detailed commented mappings adds noise and drift risk.

✂️ Optional cleanup
 # AMP integration
-# ampcode:
-  # upstream-url: "https://ampcode.com"
-  # upstream-api-key: "__AMP_UPSTREAM_API_KEY__"
-  # restrict-management-to-localhost: false
-  # Map non-prefixed model names to antigravity provider's gemini-prefixed models
-  # model-mappings:
-    # - from: "claude-opus-4-5-thinking"
-      # to: "gemini-claude-opus-4-5-thinking"
-    # - from: "claude-sonnet-4-6"
-      # to: "gemini-claude-sonnet-4-6"
-    # - from: "claude-sonnet-4-6-thinking"
-      # to: "gemini-claude-sonnet-4-6-thinking"
+# AMP integration is intentionally disabled in this template.
+# Re-enable by restoring ampcode upstream settings and model mappings.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@config/cliproxyapi/config.tpl.yaml` around lines 41 - 52, The commented-out
AMP configuration block (ampcode and its keys like upstream-url,
upstream-api-key, restrict-management-to-localhost, and model-mappings) is
verbose while disabled; replace the large commented section with a short
single-line note indicating AMP is disabled and mentioning where to restore full
config (e.g., "AMP disabled — uncomment ampcode block to enable upstream-url,
upstream-api-key, model-mappings for model name mappings"), removing the
detailed commented model-mappings entries to reduce noise and drift.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@config/cliproxyapi/config.tpl.yaml`:
- Around line 41-52: The commented-out AMP configuration block (ampcode and its
keys like upstream-url, upstream-api-key, restrict-management-to-localhost, and
model-mappings) is verbose while disabled; replace the large commented section
with a short single-line note indicating AMP is disabled and mentioning where to
restore full config (e.g., "AMP disabled — uncomment ampcode block to enable
upstream-url, upstream-api-key, model-mappings for model name mappings"),
removing the detailed commented model-mappings entries to reduce noise and
drift.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 9062781c-268b-46d5-83db-beec9160f6c6

📥 Commits

Reviewing files that changed from the base of the PR and between 48ad8f5 and d1153f7.

📒 Files selected for processing (8)
  • config/amp/settings.json
  • config/cliproxyapi/config.template.yaml
  • config/cliproxyapi/config.tpl.yaml
  • config/factory/config.json
  • config/ghostty/config
  • home-manager/packages/default.nix
  • home-manager/programs/tmux/tmux.conf
  • nix-darwin/config/homebrew.nix

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 issues found across 8 files

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="home-manager/programs/tmux/tmux.conf">

<violation number="1" location="home-manager/programs/tmux/tmux.conf:177">
P2: This hardcoded TPM bootstrap path is not provisioned by the repository's Home Manager tmux setup, so tmux will try to source a missing script on reload/startup.</violation>
</file>

<file name="config/amp/settings.json">

<violation number="1" location="config/amp/settings.json:2">
P2: Keep AMP pointed at the local proxy. This change bypasses the repository’s `localhost:8317` integration and sends requests straight to the upstream service instead.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

set -g @plugin 'Ataraxy-Labs/opensessions'

# Initialize TPM (keep at bottom)
run-shell ~/.tmux/plugins/tpm/tpm

@cubic-dev-ai cubic-dev-ai Bot Apr 13, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: This hardcoded TPM bootstrap path is not provisioned by the repository's Home Manager tmux setup, so tmux will try to source a missing script on reload/startup.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At home-manager/programs/tmux/tmux.conf, line 177:

<comment>This hardcoded TPM bootstrap path is not provisioned by the repository's Home Manager tmux setup, so tmux will try to source a missing script on reload/startup.</comment>

<file context>
@@ -168,4 +168,12 @@ set -g history-limit 2147483647
+set -g @plugin 'Ataraxy-Labs/opensessions'
+
+# Initialize TPM (keep at bottom)
+run-shell ~/.tmux/plugins/tpm/tpm
+
 # Persistent session history logger is managed by launchd/systemd.
</file context>
Fix with Cubic

Comment thread config/amp/settings.json
@@ -1,3 +1,3 @@
{
"amp.url": "http://localhost:8317"
"amp.url": "https://ampcode.com"

@cubic-dev-ai cubic-dev-ai Bot Apr 13, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: Keep AMP pointed at the local proxy. This change bypasses the repository’s localhost:8317 integration and sends requests straight to the upstream service instead.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At config/amp/settings.json, line 2:

<comment>Keep AMP pointed at the local proxy. This change bypasses the repository’s `localhost:8317` integration and sends requests straight to the upstream service instead.</comment>

<file context>
@@ -1,3 +1,3 @@
 {
-  "amp.url": "http://localhost:8317"
+  "amp.url": "https://ampcode.com"
 }
</file context>
Suggested change
"amp.url": "https://ampcode.com"
"amp.url": "http://localhost:8317"
Fix with Cubic

@shunkakinoki
shunkakinoki merged commit 6e20c83 into main Apr 13, 2026
26 of 27 checks passed
@shunkakinoki
shunkakinoki deleted the opensessions branch April 13, 2026 13:32

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 3 files (changes from recent commits).

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="config/cliproxyapi/config.template.yaml">

<violation number="1" location="config/cliproxyapi/config.template.yaml:42">
P2: The commented AMP template lost its YAML indentation, so uncommenting it produces an invalid or mis-scoped config.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

- from: "claude-sonnet-4-6-thinking"
to: "gemini-claude-sonnet-4-6-thinking"
# ampcode:
# upstream-url: "https://ampcode.com"

@cubic-dev-ai cubic-dev-ai Bot Apr 13, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: The commented AMP template lost its YAML indentation, so uncommenting it produces an invalid or mis-scoped config.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At config/cliproxyapi/config.template.yaml, line 42:

<comment>The commented AMP template lost its YAML indentation, so uncommenting it produces an invalid or mis-scoped config.</comment>

<file context>
@@ -39,17 +39,17 @@ quota-exceeded:
-      # to: "gemini-claude-sonnet-4-6"
-    # - from: "claude-sonnet-4-6-thinking"
-      # to: "gemini-claude-sonnet-4-6-thinking"
+# upstream-url: "https://ampcode.com"
+# upstream-api-key: "__AMP_UPSTREAM_API_KEY__"
+# restrict-management-to-localhost: false
</file context>
Fix with Cubic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant