opensessions

作者 Ataraxy-Labs已验证

tmux sidebar for coding agents — Amp, Claude Code, Codex, OpenCode. Per-thread markers, local HTTP API, live session state.

1,216
Stars
72
Forks
Rust
语言
2026/8/23
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/Ataraxy-Labs/opensessions

快速入门

使用 opensessions 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

Part of the Ataraxy Labs stack — agent-native infrastructure for software development. See also: sem (semantic version control) · weave (entity-level merge driver) · inspect (semantic code review).

Read the manifesto: https://ataraxy-labs.com/#thesis · Essays: https://ataraxy-labs.com/blogs · LLMs: https://ataraxy-labs.com/llms.txt

opensessions

License: MIT Star History

tmux is all you need. make tmux great again :)

amp-img-e686694168e21738-aesthetic

opensessions is a sidebar for tmux when your sessions, agents, and localhost tabs start multiplying.

It lives inside your existing tmux workflow instead of replacing it: one small pane for session switching, agent state, repo breadcrumbs, and quick jumps back into the right terminal.

Built with Rust and ratatui for native performance and zero runtime dependencies.

tmux is the only supported mux today. There is older zellij integration code in the repo, but it is not stable enough to document as supported; we are looking for maintainers who want to help bring it back to that bar.

Install With TPM

Requirements:

  • tmux
  • TPM
  • curl or wget for downloading prebuilt binaries on first load

Add this to ~/.tmux.conf:

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

Then reload tmux and install plugins:

tmux source-file ~/.tmux.conf
~/.tmux/plugins/tpm/bin/install_plugins

Open the sidebar with prefix o → s.

TPM clones the repo into ~/.tmux/plugins/opensessions. On first load, opensessions downloads the matching prebuilt release bundle into bin/; that bundle includes opensessions-sidebar, opensessions-server, and lazydiff.

If your platform is unsupported or you are developing locally, you can still build from source:

cd ~/.tmux/plugins/opensessions
cargo build --release

If you want the same setup as a single shell command:

grep -q "Ataraxy-Labs/opensessions" ~/.tmux.conf 2>/dev/null || printf '\nset -g @plugin '\''Ataraxy-Labs/opensessions'\''\n' >> ~/.tmux.conf && tmux source-file ~/.tmux.conf && ~/.tmux/plugins/tpm/bin/install_plugins

Update

Use TPM's built-in update (prefix + U) or run:

~/.tmux/plugins/tpm/bin/update_plugins opensessions

No rebuild step:

No local rebuild is needed for normal installs. Reload tmux after TPM updates the plugin; opensessions will download the matching release bundle if bin/ is missing or incomplete.

The plugin automatically restarts the server on update so it picks up the new binary. Toggle the sidebar back on with prefix o → s if it was open.

Uninstall

Run the uninstall script before removing the plugin files — it cleans up tmux hooks, keybindings, sidebar panes, and environment variables that would otherwise persist and cause glitching:

sh ~/.tmux/plugins/opensessions/integrations/tmux-plugin/scripts/uninstall.sh

Then remove the set -g @plugin 'Ataraxy-Labs/opensessions' line from ~/.tmux.conf and run prefix + alt + u (TPM uninstall).

Today

  • Live agent state across sessions for Amp, Claude Code, Codex, and OpenCode.
  • Per-thread unseen markers for done, error, and interrupted states.
  • Session context in the UI: branch in the list, working directory in the detail panel, thread names, and detected localhost ports.
  • Programmatic metadata API: agents and scripts push status, progress, and logs to the sidebar via HTTP.
  • Fast switching with j/k, arrows, Tab, 1-9, session reordering, hide/restore, creation, and kill actions.
  • prefix o → s and prefix o → t for sidebar focus and toggle, prefix o → e for sidebar-safe even-horizontal layout in the current window, prefix o → 1 through 9 for quick switching, optional no-prefix shortcuts, and in-app theme switching.
  • Native Rust sidebar built with ratatui 0.30 and crossterm 0.29, with a local Rust WebSocket/HTTP server.

Programmatic API

Scripts and agents can push custom metadata to the sidebar over HTTP — no binary needed:

# Set a status pill on a session
curl -X POST http://127.0.0.1:7391/set-status \
  -H 'content-type: application/json' \
  -d '{"session":"my-app","text":"Deploying","tone":"warn"}'

# Set progress
curl -X POST http://127.0.0.1:7391/set-progress \
  -H 'content-type: application/json' \
  -d '{"session":"my-app","current":3,"total":10,"label":"services"}'

# Push a log entry
curl -X POST http://127.0.0.1:7391/log \
  -H 'content-type: application/json' \
  -d '{"session":"my-app","message":"Tests passed","source":"ci","tone":"success"}'

Endpoints: /set-status, /set-progress, /log, /clear-log, /notify

Tones: neutral, info, success, warn, error — each with a distinct icon and color.

Full reference: docs/reference/programmatic-api.md

Local Development

Build and run from a local clone:

git clone https://github.com/Ataraxy-Labs/opensessions.git
cd opensessions
cargo build --release
cargo test

Start the sidebar manually (outside tmux, for testing):

cargo run -p opensessions-sidebar

Start the server:

cargo run -p opensessions-server

For the full tmux workflow with keybindings, troubleshooting, and configuration options, follow the guide below.

Docs

A Few Concrete Bits

  • Session ordering is persisted in ~/.config/opensessions/session-order.json.
  • Amp watcher reads ~/.local/share/amp/threads/*.json and clears unseen state from Amp's session.json when a thread becomes seen there.
  • Claude Code watcher reads JSONL transcripts in ~/.claude/projects/.
  • Codex watcher reads transcript JSONL files in ~/.codex/sessions/ or $CODEX_HOME/sessions/ and resolves sessions from turn_context.cwd.
  • OpenCode watcher polls the SQLite database in ~/.local/share/opencode/opencode.db.
  • Hidden sidebars are stashed in a tmux session named _os_stash, so they can come back without restarting the sidebar process.
  • Clicking a detected port opens http://localhost:<port>.

Repo Layout

Apps

  • apps/tui-rs/ — Rust ratatui sidebar client (connects to server over WebSocket)
  • apps/server-rs/ — Rust server that assembles state from mux providers and agent watchers
  • apps/tui/scripts/ — Shell scripts for tmux sidebar launch and session switching

Packages

  • packages/runtime-rs/ — Shared Rust runtime: tmux provider, agent watchers, config, tracker, protocol
  • packages/sidebar-core-rs/ — Core sidebar state, input, and rendering logic

Integrations

  • opensessions.tmux — Root TPM entrypoint for users
  • integrations/tmux-plugin/ — tmux-facing scripts and host integration glue
  • integrations/amp/ — Amp agent integration
  • integrations/pi-extension/ — Pi extension integration

Current Caveats

  • The app is local-only; the default host is 127.0.0.1, and ports are derived per tmux socket unless explicitly overridden.
  • theme, sidebarWidth, sidebarPosition, detailPanelHeight, sessionFilter, and mux are wired through the runtime. plugins, port, and keybinding are parsed for compatibility but are not active runtime extension hooks today.
  • Inline theme objects exist in core, but the running server persists and broadcasts theme names.
  • tmux is the only supported mux today.

Star History

Star History Chart

License

MIT

常见问题

What is opensessions?

opensessions is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by Ataraxy-Labs. tmux sidebar for coding agents — Amp, Claude Code, Codex, OpenCode. Per-thread markers, local HTTP API, live session state. It has 1,216 GitHub stars.

Is opensessions safe to use?

Yes. opensessions passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install opensessions?

Clone the repository with "git clone https://github.com/Ataraxy-Labs/opensessions" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is opensessions written in?

opensessions is primarily written in Rust. It is open-source under Ataraxy-Labs on GitHub, so you can review or fork the full source.

Are there alternatives to opensessions?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh opensessions against similar tools.

评论 (0)

暂无评论,成为第一个分享想法的人!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI 智能体
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情