Skip to content
Development
Agent

pty

- `src/main/core/pty/` — `local-pty.ts`, `ssh2-pty.ts`, `pty.ts`, `pty-env.ts`, `pty-session-registry.ts`, `spawn-utils.ts`, `exit-signals.ts`, `controller.ts` - `src/main/core/terminals/` — terminal lifecycle, local and SSH terminal providers - `src/main/core/agent-hooks/` —

From plugin
emdash
5.4k24 skills24 agents

How it fires

How this agent gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.

Context preview

The summary Claude sees to decide when to auto-load this agent.

- `src/main/core/pty/` — `local-pty.ts`, `ssh2-pty.ts`, `pty.ts`, `pty-env.ts`, `pty-session-registry.ts`, `spawn-utils.ts`, `exit-signals.ts`, `controller.ts` - `src/main/core/terminals/` — terminal lifecycle, local and SSH terminal providers - `src/main/core/agent-hooks/` —

Agent definition

pty.md

Risky Area: PTY And Sessions

Main Files

  • `src/main/core/pty/` — `local-pty.ts`, `ssh2-pty.ts`, `pty.ts`, `pty-env.ts`, `pty-session-registry.ts`, `spawn-utils.ts`, `exit-signals.ts`, `controller.ts`
  • `src/main/core/terminals/` — terminal lifecycle, local and SSH terminal providers
  • `src/main/core/agent-hooks/` — hook server, event enrichment, OS notifications, hook config writer

Core Risks

  • PTY cleanup and exit handling
  • resize behavior
  • shell quoting and Windows command wrapping
  • tmux lifecycle
  • provider-specific resume/session behavior
  • env passthrough safety

Rules

  • use the allowlisted env passthrough model in `src/main/core/pty/pty-env.ts`
  • do not weaken quoting or spawn behavior casually
  • validate both direct spawn and shell-wrapped spawn cases when changing PTY startup logic
  • confirm renderer event flow if hook/plugin payload or notification behavior changes
Ships withemdash

Emdash is the Open-Source Agentic Development Environment (🧡 YC W26). Run multiple coding agents in parallel. Use any provider.

Get the whole plugin
Stats
5,373
Stars
554
Forks
Active
Maintenance
TypeScript
Language
Apache-2.0
License
21h ago
Last commit
11mo ago
Created

Repo: generalaction/emdash