hive.terminal-tools-pty-sessions

by aden-hive 11k Apache-2.0 Updated Aug 13, 2026
hive.terminal-tools-pty-sessions skill by aden-hive
hive.terminal-tools-pty-sessions — Backend skill by aden-hive

hive.terminal-tools-pty-sessions is an open-source backend skill for Claude Code and compatible agents, published by aden-hive. Its author describes it as: “Use when you need state across calls — building env vars, navigating with cd, driving REPLs (python -i, mysql, psql, node), or responding to interactive prompts (sudo password, ssh host-key confirmation, mysql connect…”. The project has 11k stars on GitHub and is available under the Apache-2.0 license. Add it to your setup with `git clone https://github.com/aden-hive/hive ~/.claude/skills/terminal-tools-pty-sessions`.

What hive.terminal-tools-pty-sessions does

PTY sessions are how you talk to interactive programs — programs that detect a terminal (`isatty()`) and behave differently when they don't see one. Use a session when:

Installation

Add hive.terminal-tools-pty-sessions to your agent with:

git clone https://github.com/aden-hive/hive ~/.claude/skills/terminal-tools-pty-sessions

Always review a skill's source before installing it. This command comes from the skill's public repository; the linked repo is the source of truth for exact setup steps.

What's inside

The SKILL.md for hive.terminal-tools-pty-sessions is organised into these sections:

  • Why PTY (and not subprocess pipes)
  • Bash on macOS — by deliberate policy
  • Three modes of terminalptyrun
  • 1. Default: send command, wait for prompt sentinel
  • 2. rawsend: send raw input, no waiting
  • 3. readonly: drain currently-buffered output
  • Custom prompt detection (expect)
  • Always close
  • Common patterns
  • Stateful navigation
  • Python REPL
  • ssh with host-key prompt

When to use it

Reach for hive.terminal-tools-pty-sessions when you want backend help from your agent without writing the same instructions every session. Load the skill and the agent picks it up automatically for relevant tasks.

Strengths

  • Clear Apache-2.0 license — safe to read and adapt
  • Ships in aden-hive/hive, an established project with 10,923 GitHub stars
  • Actively maintained (recent commits)

Topics

agentagent-frameworkagent-skillsanthropicautomationautonomous-agentsclaudeharnessharness-engineeringhuman-in-the-loopopenaipythonself-hostedself-improving

Frequently asked questions

What does hive.terminal-tools-pty-sessions do?
Use when you need state across calls — building env vars, navigating with cd, driving REPLs (python -i, mysql, psql, node), or responding to interactive prompts (sudo password, ssh host-key confirmation, mysql connection). Teaches the prompt-sentinel exec pattern (default mode), raw I/O for REPLs (raw_send=True then read_only=True), the one-in-flight-per-session rule, and the close-or-leak-against-the-cap discipline. Bash on macOS — never zsh; explicit shell=/bin/zsh is rejected. Read before calling terminal_pty_open.
How do I install hive.terminal-tools-pty-sessions?
Run git clone https://github.com/aden-hive/hive ~/.claude/skills/terminal-tools-pty-sessions in your agent, then reload your skills. Review the source at https://github.com/aden-hive/hive before installing.
Is hive.terminal-tools-pty-sessions free to use?
Yes. hive.terminal-tools-pty-sessions is free and open source under the Apache-2.0 license, so you can read, run, and adapt it within that license's terms.
Where does hive.terminal-tools-pty-sessions come from?
hive.terminal-tools-pty-sessions ships inside aden-hive/hive, a repository that contains 25 catalogued skills in total. The repository's 10,923 GitHub stars apply to that whole collection, not to this skill on its own.

Related skills

More Backend →

Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers. Use when designing new APIs, reviewing API specifications, or establishing API design standards.

39k wshobson MIT

MUST USE for ANY work on .py .pyi .rs .ts .tsx .mts .cts .go files. One philosophy: strict types, modern stacks (Pydantic v2 / serde+thiserror / Zod / gin+sqlc+pgx+slog), modern toolchains (uv+basedpyright+ruff / cargo+clippy+miri / Bun+Biome+tsc / gofumpt+golangci-lint v2+nilaway+go-race), parse-don't-validate, exhaustive match, typed errors, no any/unwrap/panic, 250 LOC ceiling, TDD, consumer-routed logging. Routes to references/{python,rust,typescript,rust-ub,go}/ + references/logging.md. Triggers: write/edit Python/Rust/TypeScript/Go code, new project, gin server, bubbletea TUI, CJK IME, connect-go RPC, sqlc pgx, branded ids, exhaustive match, unsafe Rust, miri, oversized file, refactor, TDD, e2e test, logging, log levels, structured logging, observability, arena, allocator, bumpalo, const fn, const generics, comptime, zero-alloc, bitfield, repr, scopeguard, errdefer, Zig-like, zerocopy, packed struct.

68k code-yeongyu Other