assh

assh is a cursor rule for Cursor from izzzzzi/agent-assh. It costs 1,423 tokens per session, scanned A, original, MIT.

Rules for using assh, a command-line tool for SSH access to remote computers. They cover connection setup, persistent tmux sessions, paginated output, and remote file operations.

In plain words
What is it for?
Use it when connecting to servers, running commands, reading stored output, managing services, or uploading and downloading files.
Why use it?
They provide a consistent way to work on servers while limiting noisy output and adding safeguards around remote operations.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it when connecting to servers, running commands, reading stored output, managing services, or uploading and downloading files.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/izzzzzi/agent-assh/assh
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.

Clone the repo
git clone --depth 1 https://github.com/izzzzzi/agent-assh

Made for: Cursor.

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 assh

README.md
[![agentmods](https://agentmods.dev/badge/rules/izzzzzi/agent-assh/assh/github.svg)](https://agentmods.dev/rules/izzzzzi/agent-assh/assh)
Your own site
<a href="https://agentmods.dev/rules/izzzzzi/agent-assh/assh"><img src="https://agentmods.dev/badge/rules/izzzzzi/agent-assh/assh/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 assh

Your own site · 80×15
<a href="https://agentmods.dev/rules/izzzzzi/agent-assh/assh"><img src="https://agentmods.dev/badge/rules/izzzzzi/agent-assh/assh.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,423 This file is loaded in full into every session.
When invoked 1,423 The same file — it is already loaded in full.
Security scan A 0 findings. 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.01423 $0.01423
Opus 5.5 $0.00569 $0.00569
Sonnet 5.5 $0.00285 $0.00285
Haiku 4.5 $0.00142 $0.00142

Measured 23d ago against content hash 9b3966c31ee8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

assh scanned grade A with 0 findings 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 23d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/assh.mdc · 105 lines

How it starts

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

assh — SSH for LLM agents

For any SSH work use assh, not raw ssh/scp/rsync: command output stays on the server and you read only the lines you need. If assh is missing, run npm i -g agent-assh.

Connect

You have Command
Key file assh connect -H HOST -u USER -i KEY -n NAME
~/.ssh/config alias assh connect --ssh-config ALIAS -n NAME
Password assh connect -H HOST -u USER -E PASSWORD_ENV -n NAME, then unset PASSWORD_ENV
Pasted provider block write it to a 0600 file, assh connect-info --file FILE -n NAME, delete the file

Optional on connect: -p PORT, -J JUMP, --reuse (return a live session for this host instead of opening another), --force-pty (gateways that reject -T, such as RunPod), --profile readonly|ops (allow-list for the session). connect-info takes only -p, -J and -i.

connect returns sid, identity and next_commands. Use the sid below.

Run a command, then read its output

assh session exec -s SID -- "cmd"
# {"ok":true,"rc":0,"seq":3,"stdout_lines":120,"stderr_lines":0,...}
assh session read -s SID --seq 3                        # JSON: content, total_lines, has_more
assh session read -s SID --seq 3 --offset 50 --limit 50 # next page (default limit is 50)
assh session read -s SID --seq 3 --stream stderr --raw  # plain text, no JSON wrapper
  • Pass the command as one quoted string. cd and export persist between execs.
  • ok:true means assh ran the command; rc is its exit status.
  • Read the seq that exec returned. Numbers are consumed by failed execs too, so gaps are normal.
  • Run one exec at a time per sid: they share one shell and run in order.
  • exec waits 300 s by default (-t SECONDS). After timeout the command is still running and later execs queue behind it: read its seq later, do not rerun it.
  • Pages are counted in lines, not bytes, so one huge line comes back whole. Trim on the server: | cut -c1-500, | tail -n 100.
  • stdin: cat script.sh | assh session exec -s SID --stdin -- "bash -s" (4 MiB max). Without --stdin piped input is rejected.

Read the full file on GitHub · 105 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. 23d ago Changed · +52 lines · +863 tokens per session 9b3966c31ee8
  2. 3mo ago First seen · 53 lines · 560 tokens per session scan A f12465f4f3bd

Subscribe to this mod's changes

assh is a cursor rule published in the GitHub repository izzzzzi/agent-assh (22 stars, last pushed 23d ago), licensed MIT. It adds 1,423 tokens to every session, about $0.0057 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

assh compared with cursor rules from other repositories

assh next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
asshizzzzzi/agent-asshCursor rule2223d agoMITA1,423Cursor
atmos-rulescloudposse/atmosCursor rule1.4ktodayApache-2.0A1,420Cursor
volcengine-skillsvolcengine/volcengine-agent-toolkitCursor rule423d agoMITA1,063Cursor
hatch3r-operabilityhatch3r/hatch3rCursor rule262mo agoMITA0Cursor
hatch3r-scalabilityhatch3r/hatch3rCursor rule262mo agoMITA0Cursor
hatch3r-progressive-deliveryhatch3r/hatch3rCursor rule262mo agoMITA0Cursor
hatch3r-observability-metricshatch3r/hatch3rCursor rule262mo agoMITA0Cursor