AGENT SKILL

终端多路复用与远程操作工具

yas

终端多路复用器、远程文件系统与 git 客户端、语言服务器桥接,以及实验性 Wayland 合成器。当需要通过 CLI 创建、控制终端或读取终端中的内容;在服务器上读取、写入、查找文件或对文件进行 grep;检查仓库的状态、日志或差异;向语言服务器查询定义、引用、悬停、补全、签名帮助、符号、诊断信息或重命名计划;读取或写入服务器的键/值存储;或运行并交互 GUI 应用程序时使用。涵盖启动 PTY、发送按键、读取输出、列出 shell 执行过的命令、等待命令输出、检查退出状态、管理终端生命周期、将本地终端附加到远程终端、在整个目录树中搜索文件内容,以及通过实验性无头 Wayland 合成器驱动图形窗口(列出界面、截取截图、点击、输入和发送按键)。

License 许可
MIT
所属仓库
yas-run/yas
最近更新
2026-11-14
Stars
★ 0
Forks
1

01 前言 Front Matter

name
yas
description
Terminal multiplexer, remote filesystem and git client, language-server bridge, and experimental Wayland compositor. Use when you need to create, control, or read from terminals via the CLI; read, write, find, or grep files on a server; inspect a repository's status, log, or diffs; ask a language server for definitions, references, hover, completions, signature help, symbols, diagnostics, or a rename plan; read or write the server's key/value store; or run and interact with GUI applications. Covers starting PTYs, sending keystrokes, reading output, listing the commands a shell has run, waiting on a command's output, checking exit status, managing terminal lifecycle, attaching a local terminal to a remote one, searching file contents across a tree, and driving graphical windows through the experimental headless Wayland compositor (listing surfaces, capturing screenshots, clicking, typing, and sending key presses).

02 资源文件 500

03 SKILL.md 正文

yas CLI

yas is a terminal multiplexer and experimental headless Wayland compositor. Every terminal can run both CLI programs (via PTYs) and GUI applications (via the built-in compositor). Surfaces are video-encoded and streamed to browsers; the CLI gives programmatic control over both terminals and graphical windows.

Everything the CLI does works locally or against a remote over one wire — --on ssh:host, --on share:passphrase, or a named remote from yas remote — including the filesystem, git, and language-server commands. Beyond terminals it can:

  • Files — yas fs cat|find|grep|write|sync|mkdir|mv|rm|ln. grep searches file contents server-side across a tree (literal or regex, case, whole word, .gitignore-aware); find is a fuzzy path search.
  • Git — yas git status|log|diff|show|ls-tree|ls-files|merge-base, including ranges, --follow, and --watch to stream changes.
  • Code intelligence — yas lsp def|refs|hover|complete|signature|symbols|diag|rename, backed by real language servers running next to the code.
  • Key/value store — yas kv get|put|rm|ls, prefix-watchable, with compare-and-swap writes. Handy as host-local scratch space for scripts.
  • Command journal — yas terminal journal|output and history --since, given a shell that emits OSC 133 (see docs/shell-integration.md). wait --pattern matches only output produced after the wait began.

Install

curl -sf https://yas.run | sh

Windows (PowerShell):

irm https://yas.run/install.ps1 | iex

Learn

Run yas learn to print the full CLI reference (usage guide for scripts and LLM agents).

04 同仓库更多 Skills