Logo de Sesh

Sesh

ComunidadePopular
joshmedeski
sesh

Use when starting work in a terminal session — opening a project or directory, connecting to a session by name, cloning a repo to work in, or running a command or coding agent somewhere other than the current shell. Sesh resolves names and directories to sessions across tmux, zoxide, config, and tmuxinator. Use instead of `tmux new-session`, `tmux new-window`, `tmux attach`, or `tmux send-keys`.

Visão geral

Publicado porjoshmedeski
Repositóriosesh
Nome da habilidadesesh
Estrelas
2.8K
Forks
126
Arquivos incluídos
Somente instruções
LicençaMIT
Links
  • Instruções em Markdown

    Um arquivo SKILL.md que o modelo carrega sob demanda, consumindo tokens apenas quando uma solicitação é realmente relevante para a habilidade.

  • Funciona com qualquer LLM

    As habilidades de IA são escritas em Markdown simples, não em código específico de um provedor. Por isso, funcionam com GPT, Claude, Gemini, Grok ou um modelo local.

  • Sem arquivos extras

    Tudo de que o modelo precisa está nas instruções — sem arquivos extras para sincronizar.

  • Código aberto

    Publicada por joshmedeski no GitHub. Leia os arquivos da habilidade antes de instalá-la.

Instalação

Instale a habilidade de IA Sesh no TypingMind para usá-la com qualquer LLM ou adicione-a a outro agente que leia SKILL.md.

1

Instalar no TypingMind

O TypingMind instala uma habilidade diretamente da pasta dela no GitHub — lê o arquivo SKILL.md, reúne os arquivos de recursos em um pacote e armazena o resultado localmente.

  1. Abra o app e vá para Plugins → Habilidades.
  2. Escolha "Instalar do GitHub".
  3. Cole a URL abaixo, que aponta para a pasta da habilidade, e confirme.
    https://github.com/joshmedeski/sesh/tree/main/skills/sesh
  4. Ative a habilidade em cada chat em que quiser disponibilizá-la.
Plugins → Habilidades → Adicionar habilidade → Via URL do GitHub. Depois, cole a URL da pasta e pressione Continuar.
2

Instalar em outro agente

Qualquer agente que leia o formato Agent Skills pode usar esta habilidade — copie a pasta para o diretório de habilidades desse agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/joshmedeski/sesh.git /tmp/sesh
mkdir -p .claude/skills
cp -r /tmp/sesh/skills/sesh .claude/skills/sesh
Reinicie Claude Code após copiar para que a nova habilidade seja reconhecida.

Use no TypingMind

Ative Sesh em qualquer chat do TypingMind e o modelo cuida do resto. O nome e a descrição da habilidade ficam no prompt do sistema e, assim que uma solicitação relevante aparece, o modelo carrega as instruções completas automaticamente — sem precisar de acionamento manual e sem consumir tokens até que ela seja realmente usada.

O modelo carrega Sesh automaticamente assim que uma solicitação é relevante para essa habilidade.

Funciona com qualquer modelo de IA

Habilidades de IA são instruções em Markdown simples, não código específico de um provedor. Por isso, Sesh não fica vinculada ao modelo para o qual foi criada. Instale-a uma vez no TypingMind e use-a com GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ou um modelo local executado por conta própria — tudo com suas próprias chaves de API.

  • Carregada apenas quando necessário

    O prompt do sistema contém apenas o nome e a descrição. As instruções são buscadas na primeira solicitação relevante, então uma habilidade sem uso não gera custo.

  • Troque de modelo durante a conversa

    Como a habilidade é composta de instruções, não de código, trocar de modelo não afeta seu funcionamento — o próximo modelo lê o mesmo arquivo SKILL.md.

Instruções da habilidade

Este é o conteúdo de SKILL.md que o modelo carrega. Leia antes de instalar — uma habilidade é um conjunto de instruções que seu modelo seguirá.

Starting work with sesh

When work needs to start somewhere other than the shell you're in, call sesh, not tmux.

Reaching for tmux new-session -s <name> or tmux new-window -t <session> throws away what the user set sesh up to do: resolve a rough name or a directory to the right session, start it from its configured root with its startup commands, reuse what's already running instead of duplicating it, and decide whether to move the user or leave them where they are.

If sesh is not on PATH, fall back to raw tmux. Otherwise use the commands below.

Session or window?

This is the first decision, and the one most worth getting right.

A session per unit of work. That's the model — a project, a repo, a directory. If the work has its own directory, it wants its own session:

bash
sesh connect ~/c/sesh
sesh connect sesh          # a name works too; sesh resolves it

A window when it belongs inside a context that already exists. Reach for a window when the work is part of a session that's already running rather than a thing of its own:

bash
sesh window connect claude -t 'second brain' -c 'claude "<prompt>"'

Good reasons to add a window instead of a session:

  • The user named a session to put it in ("in my dotfiles session", "next to what I'm working on")
  • The work is a second track in the same project — tests, logs, an agent, a dev server — and the session for that project is already open
  • You're already inside the right session and just need another place to run something

If neither applies, use a session. Don't create a window in an unrelated session just because that session happens to be attached.

Either way, both commands select-or-create: they reuse what's there and only create on a miss, so it's safe to run them without checking first.

Sessions

bash
sesh connect <name|directory>

Connects to the session, creating it if it isn't running. The argument can be a path, a session name, a zoxide result, a configured session, or a tmuxinator config — sesh resolves across all of them, which is the main reason to call it instead of tmux.

bash
sesh connect ~/c/sesh              # by path
sesh connect sesh                  # by rough name
sesh connect 'second brain' -s     # names with spaces need quoting
sesh connect ~/c/api -c 'npm run dev'
FlagMeaning
-s, --switchSwitch the client rather than attach. Use when triggering sesh from outside the terminal — a hotkey, a script, another app.
-c, --commandStartup command. Only runs on a cold start — silently ignored if the session already exists.
-T, --tmuxinatorStart via tmuxinator if the session isn't running.

That -c caveat is the sharp edge: if the user might already have the session open, sesh connect -c may do nothing at all. To run a command in a session that may already be running, add a window (next section).

Two related entry points, for when the directory doesn't exist yet:

bash
sesh mkdir ~/c/new-project -c '<command>'   # create the directory, then connect to it
sesh clone <repo>                           # clone a git repo and connect to it

Use sesh mkdir rather than mkdir && sesh connect — it's one step and doesn't wait on zoxide.

Windows

bash
sesh window connect <name|directory> -t <session> -c '<command>'

Selects the window called <name> in <session>, creating it if it isn't there. Prints the window's session:index target.

bash
sesh window connect tests -c 'npm test -- --watch'   # in the current session
sesh window connect ~/c/sesh -t dotfiles             # window "sesh", rooted at that path

A directory argument is named after its basename and rooted there, so running it twice selects the window the first run created rather than duplicating it.

--command means different things on create and reuse

Identity is the window name:

  • Created window — the command becomes the window's process. The window closes when it exits.
  • Existing window — the command is typed in as keystrokes, into whatever is already running. If that's a shell, it runs. If it's a long-running process, you just typed at that process.

So launching an agent twice with the same window name starts one agent, then types the second prompt into the first agent's input. When each invocation must get its own window, pass --new:

bash
sesh window connect claude -t 'second brain' --new -c 'claude "<prompt>"'

--new always creates, letting windows share a name; a later connect without it reuses the lowest-indexed one. Omitting the name also always creates — there's nothing to match on.

Targeting

-t <session> resolves the same way sesh connect does and starts the session if it isn't running, without moving the user's client. So you don't have to check whether the session is up, and cold and warm targets take the same command.

With no -t, the target is the attached session. Outside tmux that fails with Not inside a tmux session, use --target to specify one. — pass -t.

Focus: don't yank the user out of their work

Both commands move the user to what they connected to. That's right when they asked for it and wrong when it's a background step.

SituationFlag
The user asked for this and wants to land there(default)
Background work; leave them where they are-b (windows only)
Triggered from outside tmux — hotkey, script, another app-s

-b / --background creates the window without selecting it or moving the client. Prefer it for anything the user didn't explicitly ask to be taken to. Sessions have no -b; a window connect with -t is the way to set something up without moving.

Finding the right target

Don't guess a session name and don't invent one:

bash
sesh list -j                       # every source: tmux, zoxide, config, tmuxinator
sesh list -t                       # running tmux sessions only
sesh window list -t <session>      # windows in a session (-j for json)

When the user names a project or directory, pass what they said — sesh resolves it. Session names contain spaces (second brain) more often than you'd expect, so quote arguments.

Do not

  • Do not use tmux new-session, tmux attach, tmux new-window, or tmux split-window to start work. Use sesh connect or sesh window connect.
  • Do not use tmux send-keys to run a command. Use -c, which knows whether the target is new or already running.
  • Do not create a second session for a directory or name that already has one — both commands already select-or-create.
  • Do not put unrelated work in a window of whatever session happens to be attached. New work with its own directory gets its own session.
  • Do not guess session names. Run sesh list.
  • Do not move the user for background work. Use -b.

Panes are outside sesh's scope; tmux split-window and tmux send-keys remain correct there.

Command reference

sesh connect <name|directory>          Connect to a session, creating it if it doesn't exist
  -s, --switch             Switch the client rather than attach
  -c, --command <cmd>      Startup command; ignored if the session already exists
  -T, --tmuxinator         Start via tmuxinator if the session isn't running

sesh mkdir <path>                      Create a directory and connect to it as a session
  -c, --command <cmd>      Startup command
  -s, --switch             Switch rather than attach

sesh clone <repo>                      Clone a git repo and connect to it as a session
  -d, --dir <name>         Directory git creates
  -c, --cmdDir <dir>       Directory to run git in

sesh window connect [name|directory]   Select a window, creating it if it doesn't exist
  -t, --target <session>   Target session (default: current attached session)
  -c, --command <cmd>      Command to run in the target
  -p, --path <dir>         Start directory (default: the target session's root)
  -b, --background         Create without selecting it or moving the client
  -s, --switch             Switch the client rather than attach
      --new                Always create, even when the name matches an existing window

sesh window list                       List the windows of a session
  -t, --target <session>   Target session (default: current attached session)
  -j, --json               Output as json

sesh list                              List sessions from all sources
  -j, --json               Output as json
  -t, --tmux               tmux sessions only
  -z, --zoxide             zoxide results only

sesh last                              Connect to the last tmux session
sesh root                              Print the root directory of the active session

Perguntas frequentes

O que a habilidade de IA Sesh faz?

Use when starting work in a terminal session — opening a project or directory, connecting to a session by name, cloning a repo to work in, or running a command or coding agent somewhere other than the current shell. Sesh resolves names and directories to sessions across tmux, zoxide, config, and tmuxinator. Use instead of `tmux new-session`, `tmux new-window`, `tmux attach`, or `tmux send-keys`.

Por que usar Sesh no TypingMind?

Porque basta instalar uma vez para usar com qualquer modelo. A habilidade Sesh é escrita em Markdown simples, e não em código específico de um provedor, então a mesma habilidade funciona com GPT-5, Claude, Gemini, Grok ou um modelo local — e é possível trocar de modelo no meio do chat sem que ela deixe de funcionar. No TypingMind, você usa suas próprias chaves de API e paga diretamente aos provedores, em vez de pagar uma assinatura por licença de usuário. Suas habilidades e chats permanecem no seu próprio armazenamento.

Como instalar Sesh no TypingMind?

Abra Plugins → Habilidades → Instalar do GitHub no TypingMind e cole https://github.com/joshmedeski/sesh/tree/main/skills/sesh. O TypingMind lê o arquivo SKILL.md e instala a habilidade para que possa ser ativada em cada chat.

Quais modelos de IA podem usar Sesh?

Qualquer modelo conectado no TypingMind. As habilidades de IA são instruções em Markdown simples, e não código específico de um provedor. Assim, GPT, Claude, Gemini, Grok e modelos locais podem carregar esta habilidade quando uma solicitação corresponder a ela.

Quantos modelos de IA posso usar com Sesh?

Quantos quiser. Desde que o modelo ofereça suporte a habilidades, é possível usar Sesh com ele — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e outros — tudo no TypingMind com suas próprias chaves de API.

A habilidade de IA Sesh é gratuita?

Sim. A habilidade é publicada no GitHub por joshmedeski sob a licença MIT. O pagamento é feito apenas ao seu provedor de IA pelos tokens usados.

O que são habilidades de IA?

Uma habilidade de IA é um conjunto reutilizável de instruções que ensina um modelo de IA a realizar uma tarefa específica. Ela segue o formato aberto Agent Skills: um arquivo SKILL.md com nome e descrição, além de scripts, templates ou arquivos de referência de que o modelo possa precisar. O modelo lê as instruções apenas quando sua solicitação corresponde à habilidade, então uma habilidade instalada não gera custos até ser usada.

Qual é a diferença entre habilidades de IA e plugins ou servidores MCP?

Um plugin ou servidor MCP oferece ao modelo novas ferramentas que ele pode acionar — código que é executado em algum lugar e retorna um resultado. Já uma habilidade de IA dá ao modelo o conhecimento e as orientações de que ele precisa: como abordar uma tarefa, quais etapas seguir e como deve ser um bom resultado. As habilidades são escritas em Markdown simples, por isso não precisam de servidor, chave de API nem ambiente de execução, e funcionam com qualquer modelo.

Ver lista completa

Crie seu próprio espaço de trabalho com IA agora

Inscreva-se na nossa newsletter para receber avisos sobre novos recursos e futuros sorteios 👇