panes
它能做什么
这个技能让你的智能体设置 Paradev 工作区的布局。适合希望终端和面板按自己需要排列、而不想手动移动的人。
适用场景
- ✓当你想在 Paradev 中并排显示多个终端时。
- ✓当你想打开新标签页,或调整、移动、关闭窗格时。
- ✓当你想打开、隐藏或展开右侧边栏时。
技能链接
https://github.com/ParadevAI/Paradev/blob/main/plugins/superset/skills/panes/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请分割我的工作区,让测试运行器和开发服务器并排显示。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会检查布局命令是否可用,找到你的工作区,并把每项更改应用到你正在查看的实时布局中。它只打开你要求的窗格,并清理为该任务打开的窗格。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Paradev Pane Layout
paradev is an alias for the superset CLI: every superset command here also runs as paradev.
Script the tabs and split panes of a workspace with superset panes. Commands go
to the host, then to the desktop app, which applies them to the live layout the
user is looking at. Every change is visible immediately, so build layouts the
user asked for and clean up what you open.
A workspace has two pane areas, each with its own tabs and split panes: the main area in the center, and the right sidebar beside it, where the app opens Changes, Files, Pages, and the browser. Terminals go in the main area unless the user asks for the sidebar.
Establish the control surface
- Run
superset schema 2>/dev/null | jq -re '.commands[] | select(.path==["panes"]) | .commands[].path[1]' || superset panes --helpand requirelist,split,new-tab,resize,equalize,move,swap,focus, andclose; sidebar control also needsopenandsidebar.panesis new in CLI 1.38.0. If it is missing, runsuperset updateand recheck. The app-bundled CLI (~/.superset/bin/superset) updates only with the desktop app, so if it still lackspanes, updating the app is the fix. - Resolve the workspace. Inside a workspace, use
$SUPERSET_WORKSPACE_ID; otherwisesuperset workspaces list --local --jsonand pick the target. - Panes live in the desktop app. A host with no desktop attached (a standalone
superset start) has no panes, and an older desktop app answers "This host is too old forsuperset panes". Surface either rather than retrying.
Read the layout
superset panes list --workspace "$WS" --json
The result has activeTabId and tabs[] for the main area, and sidebar with
open, fullScreen, activeTabId, and tabs[] for the right sidebar. A
result without sidebar comes from a desktop app too old to control the
sidebar. Each tab has layout, a split tree
of { type: "split", direction, ratio, first, second } and
{ type: "pane", paneId } nodes, plus a flat panes[] with each pane's kind
(terminal, chat-v3, browser, …), terminalId, active, and the agent
running in it with its state. row splits sit side by side and column splits
stack; ratio is the first child's share.
Inside a workspace, the pane you are running in is the one whose terminalId
equals $SUPERSET_TERMINAL_ID:
ME=$(superset panes list --workspace "$WS" --json \
| jq -r --arg t "$SUPERSET_TERMINAL_ID" \
'[.tabs[], .sidebar.tabs[]?][].panes[] | select(.terminalId==$t) | .id')
Pane IDs are unique across both areas, so every command that takes --pane
finds the pane wherever it is. Search both lists, as above.
Change the layout
Every mutating command returns the new pane or tab ID plus the full updated
layout, so chain commands from its output instead of listing again. Read IDs
with --json | jq -r .paneId (or .tabId, .terminalId); --quiet does not
reduce these results to an ID.
| Goal | Command |
|---|---|
| Split a pane, new terminal in the new half | panes split --workspace $WS --pane P --direction right|left|down|up [--command CMD] |
| Open a tab with a terminal | panes new-tab --workspace $WS [--command CMD] [--sidebar] |
| Show an existing terminal instead | add --terminal <terminal-id> to split or new-tab (not with --command) |
| Set a pane's share of its split | panes resize --workspace $WS --pane P --ratio 0.05–0.95 |
| Even out every split | panes equalize --workspace $WS [--tab T] |
| Exchange two panes, even across tabs | panes swap --workspace $WS --pane A --with B |
| Move a pane beside another | panes move --workspace $WS --pane P --to Q --direction right|left|down|up |
| Move a pane into a tab of its own | panes move --workspace $WS --pane P --new-tab |
| Move a pane to the other area | panes move --workspace $WS --pane P --sidebar|--main |
| Open Changes, Files, Pages, or a browser in the sidebar and show it | panes open changes|files|pages|browser --workspace $WS [--url URL] [--slug PAGE] [--background] |
| Show a file in the editor | panes open file PATH --workspace $WS [--line N] |
| Show one file's diff in Changes | panes open changes PATH --workspace $WS [--line N] |
| Show the sidebar | panes sidebar show --workspace $WS [--full-screen] |
| Hide the sidebar | panes sidebar hide --workspace $WS |
| Bring a pane and its tab to the front |
常见问题
我能立刻看到更改吗?
可以。每项更改都会应用到实时布局中,因此你可以立即看到。
它会清理自己打开的窗格吗?
会。该技能会清理为该任务打开的窗格。
如果布局命令缺失怎么办?
该技能会建议更新命令行,某些情况下还需要更新应用。
详情
作者的原始描述
Arrange the tabs and split panes of a Paradev (formerly Superset) workspace in the desktop app from an agent, in the main area and the right sidebar. Use when the user asks to split a pane, open a tab, run a command in a new pane, resize, swap, move, focus, close, or even out panes, lay out a dashboard of terminals, show them something side by side, or open, show, hide, or expand the right sidebar with Changes, a file in the editor, Files, Pages, or a browser in it, including "split this and run the tests on the right", "open the logs in a new tab", "make this pane bigger", "put the server and
repo: ParadevAI/Paradev
热度
- GitHub 星标
- 16k
- 排名
- #10868
- 许可证
- —
- 更新时间
- 2026/11/2
评论
- …