ops_tmux_remote_deploy

ops_tmux_remote_deploy is a skill for Claude Code, Codex from frontier-ai-next/mgarlbot. It costs 30 tokens per session (987 once invoked), scanned A, original, MIT.

A deployment procedure for running an app and an FRP server on one remote VPS through SSH, using tmux sessions so processes stay alive after disconnecting.

In plain words
What is it for?
Use it to deploy an app remotely, start or restart Docker Compose or native processes, keep them running in tmux, and check their health and network listeners.
Why use it?
It prevents remote processes from stopping when the SSH connection closes and makes restarts repeatable and checkable.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to deploy an app remotely, start or restart Docker Compose or native processes, keep them running in tmux, and check their health and network listeners.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/frontier-ai-next/mgarlbot/ops_tmux_remote_deploy
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add frontier-ai-next/mgarlbot --skill ops_tmux_remote_deploy
Clone the repo
git clone --depth 1 https://github.com/frontier-ai-next/mgarlbot

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ops_tmux_remote_deploy

README.md
[![agentmods](https://agentmods.dev/badge/skills/frontier-ai-next/mgarlbot/ops_tmux_remote_deploy/github.svg)](https://agentmods.dev/skills/frontier-ai-next/mgarlbot/ops_tmux_remote_deploy)
Your own site
<a href="https://agentmods.dev/skills/frontier-ai-next/mgarlbot/ops_tmux_remote_deploy"><img src="https://agentmods.dev/badge/skills/frontier-ai-next/mgarlbot/ops_tmux_remote_deploy/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ops_tmux_remote_deploy

Your own site · 80×15
<a href="https://agentmods.dev/skills/frontier-ai-next/mgarlbot/ops_tmux_remote_deploy"><img src="https://agentmods.dev/badge/skills/frontier-ai-next/mgarlbot/ops_tmux_remote_deploy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 987 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00030 $0.00987
Opus 5 $0.00015 $0.00494
Sonnet 5 $0.00006 $0.00197
Haiku 4.5 $0.00003 $0.00099

Measured 9d ago against content hash 810bb3bd6e02, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

ops_tmux_remote_deploy scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- Check core tools: `tmux`, `curl`, `ss` (or `netstat` fallback).
skills/ops_tmux_remote_deploy/SKILL.md · 98 lines

How it starts

The opening of the file, as written. The whole thing — 98 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Remote deploy via tmux (single VPS baseline)

Use this skill when the user wants: "deploy on that server", "run frps and project in tmux", "keep processes alive after disconnect".

Always run commands on VPS via SSH wrapper:

ssh -F /data/.ssh/config vps 'REMOTE_COMMAND_HERE'

Never run host-level commands locally when the task is explicitly remote.

Goal

Create and maintain two tmux sessions on the VPS:

  • frps — FRP server process.
  • project_app — project runtime process (docker compose or native command).

Both sessions must be idempotent and verifiable.

Standard sequence

  1. Preflight

    • Verify SSH connectivity.
    • Check core tools: tmux, curl, ss (or netstat fallback).
    • Install tmux if missing (non-interactive apt for Debian/Ubuntu).
  2. Prepare frps

    • Ensure frps binary + config path are known (ask only if impossible to infer).
    • Restart frps session safely:
      • tmux has-session -t frps -> kill if exists.
      • start detached with explicit command and logs.
  3. Prepare app runtime

    • If repo has compose files and user asked containerized deploy: use docker compose up in project_app.
    • Otherwise start provided app command in project_app.
    • Same idempotent session restart pattern as frps.
  4. Health checks (mandatory)

    • tmux ls contains both sessions.
    • Process check (pgrep -af frps, app process or docker compose ps).
    • Port check with ss -ltnp for expected bind ports.
    • HTTP check with curl -fsS (or status code check) for app endpoint.
  5. Operational output

    • Report only operational facts: session names, process status, listening ports, endpoint status.
    • Provide follow-up commands for logs:
      • tmux capture-pane -pt frps -S -120
      • tmux capture-pane -pt project_app -S -120

Canonical command snippets

SSH preflight:

ssh -F /data/.ssh/config vps 'set -e; uname -a; command -v tmux >/dev/null || echo "__NO_TMUX__"'

Read the full file on GitHub · 98 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 98 lines · 30 tokens per session scan A 810bb3bd6e02

Subscribe to this mod's changes

ops_tmux_remote_deploy is a skill published in the GitHub repository frontier-ai-next/mgarlbot (17 stars, last pushed 1mo ago), licensed MIT. It adds 30 tokens to every session and 987 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories