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.
npx agentmods add commands/itophua/iterminal/agentsgit clone --depth 1 https://github.com/iTophua/iterminalWrote 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.
[](https://agentmods.dev/commands/itophua/iterminal/agents)<a href="https://agentmods.dev/commands/itophua/iterminal/agents"><img src="https://agentmods.dev/badge/commands/itophua/iterminal/agents.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00000 | $0.02885 |
| Opus 5 | $0.00000 | $0.01443 |
| Sonnet 5 | $0.00000 | $0.00577 |
| Haiku 4.5 | $0.00000 | $0.00288 |
Grade A, and why
AGENTS 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 3d 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.
How it starts
The opening of the file, as written. The whole thing — 246 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Commands Module
Tauri command handlers for SSH operations (russh 0.50 + russh-sftp 2.1).
Structure
commands/
├── mod.rs # Module exports
├── ssh.rs # SSH connection, shell, command execution (~540 lines)
├── sftp.rs # SFTP file operations (~1250 lines)
├── db.rs # Database CRUD, encrypted storage (~200 lines)
├── license.rs # License validation (~260 lines)
├── api.rs # HTTP API server for MCP (~200 lines)
└── system.rs # System info (fonts) (~50 lines)
Where to Look
| 符号 | 类型 | 文件 | 角色 |
|---|---|---|---|
SshClientHandler |
struct | ssh.rs | russh Handler 实现 |
SshSession |
struct | ssh.rs | SSH 连接 (Handle + Connection 凭据) |
ShellSession |
struct | ssh.rs | Shell 会话 (cancel_tx, resize_tx, write_tx) |
SESSIONS |
static | ssh.rs | Global SSH session storage (RwLock) |
SHELLS |
static | ssh.rs | Shell session storage (RwLock) |
connect_ssh |
async fn | ssh.rs | TCP + auth + License check (10s timeout) |
test_connection |
async fn | ssh.rs | Test connection with password/key auth |
get_shell |
async fn | ssh.rs | Spawns PTY + tokio task with Events |
write_shell |
async fn | ssh.rs | Sends data via mpsc channel |
resize_shell |
async fn | ssh.rs | Sends resize via mpsc channel |
disconnect_ssh |
async fn | ssh.rs | Sends cancel signal, closes all |
execute_command |
async fn | ssh.rs | Execute remote command |
get_system_monitor |
async fn | ssh.rs | Get system stats (CPU, memory, disk) |
get_network_stats |
async fn | ssh.rs | Get network interface stats |
list_processes |
async fn | ssh.rs | List top 50 processes by memory |
kill_process |
async fn | ssh.rs | Kill a process by PID |
SftpSessionState |
struct | sftp.rs | SFTP 会话 (Arc) |
create_sftp_connection |
async fn | sftp.rs | 创建独立 SFTP SSH 连接 |
get_sftp_session |
async fn | sftp.rs | 获取或创建 SFTP 会话 |
upload_file |
async fn | sftp.rs | 后台上传 (tokio::spawn + Events) |
download_file |
async fn | sftp.rs | 后台下载 (tokio::spawn + Events) |
upload_folder |
async fn | sftp.rs | 后台上传文件夹 |
compress_file |
async fn | sftp.rs | 远程压缩 (tar -czf) |
extract_file |
async fn | sftp.rs | 远程解压 (tar/unzip/gzip) |
search_files |
async fn | sftp.rs | 文件搜索 (find 命令) |
read_file_content |
async fn | sftp.rs | 文件预览 (支持二进制) |
write_file_content |
async fn | sftp.rs | 文件编辑 |
pause_transfer |
async fn | sftp.rs | 暂停传输 |
resume_transfer |
async fn | sftp.rs | 恢复传输 |
cancel_transfer |
async fn | sftp.rs | 取消传输 |
list_directory |
async fn | sftp.rs | 列出目录内容 |
is_directory |
async fn | sftp.rs | 检查远程路径是否为目录 |
is_local_directory |
async fn | sftp.rs | 检查本地路径是否为目录 |
LicenseType |
enum | license.rs | Free/Personal/Professional/Enterprise |
LicenseInfo |
struct | license.rs | License 信息 (类型、功能、过期时间) |
LICENSE_INFO |
static | license.rs | Global license state (RwLock) |
verify_license |
async fn | license.rs | 验证 License Key 格式和校验和 |
get_license |
async fn | license.rs | 获取当前 License 信息 |
get_max_connections |
async fn | license.rs | 返回最大连接数 (免费版 3, 付费版 999) |
check_connection_limit |
async fn | license.rs | 检查是否超限 |
start_api_server_command |
async fn | api.rs | 启动 HTTP API (端口 27149) |
stop_api_server |
async fn | api.rs | 停止 API 服务器 |
is_api_server_running |
async fn | api.rs | 检查 API 状态 |
get_monospace_fonts |
async fn | system.rs | 获取系统等宽字体列表 |
init_database |
async fn | db.rs | 初始化 SQLite 数据库 |
get_connections |
async fn | db.rs | 获取所有连接 |
get_connection_by_id |
async fn | db.rs | 根据 ID 获取连接 |
save_connection |
async fn | db.rs | 保存连接 (密码加密) |
delete_connection |
async fn | db.rs | 删除连接 |
export_connections |
async fn | db.rs | 导出连接为 JSON |
import_connections |
async fn | db.rs | 从 JSON 导入连接 |
migrate_from_localstorage |
async fn | db.rs | 迁移 localStorage 数据 |
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.
- 3d ago First seen · 246 lines · 0 tokens per session scan A 02559377157f
AGENTS is a command published in the GitHub repository iTophua/iterminal (4 stars, last pushed 9d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,885 tokens. 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-31.
Other commands, from other repositories
git
Git operations with intelligent commit messages and workflow optimization.
checklist
Generate a custom checklist for the current feature based on user requirements.
clarify
Identify underspecified areas in the current feature spec by asking up to 5 highly targeted clarification questions and encoding answers back into the spec.
specify
Create or update the feature specification from a natural language feature description.
analyze
Perform a non-destructive cross-artifact consistency and quality analysis across spec.md, plan.md, and tasks.md after task generation.
converge
Assess the current codebase against the feature's spec, plan, and tasks, then append any remaining unbuilt work as new tasks to tasks.md so implement can complete it.