Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

mystack-rig

Latest version: v1.7.4

Overview

Last scanned
28 Nov 2026
Published
28 Nov 2026
PyPI package Publisher: mystack-cloud
4 Stars
1 Forks
15 Versions
1.6K Downloads
Python Repo language

Scan summary

mystack-rig was last scanned on 28 Nov 2026 at version 1.7.4. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 15 versions; the latest 5 were published within 4 days (25–28 Nov 2026).
  • Findings: No rules fired in version 1.7.4.
  • Downloads: 1,568 downloads.

Versions

15 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.7.4 LATEST 28 Nov 2026 No rules fired
1.7.3 27 Nov 2026 No rules fired
1.7.2 27 Nov 2026 No rules fired
1.7.1 25 Nov 2026 Not shown
1.7.0 25 Nov 2026 Not shown

No rules fired in 1.7.4

Findings

Findings for v1.7.4. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 1.7.4; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

PyPI Tests License: MIT Ruff

rig

Secure, fast, cost-efficient ephemeral remotes with full local parity—so coding agents and humans can develop and e2e-test for real.

pip install mystack-rig
rig init
rig create

Architecture

Run rig from your machine, CI/CD, or a control plane: it provisions cloud VMs you can create and dispose anytime, and you work on /workspace via agent TTY or editor. SSH/HTTPS reaches VMs through the firewall; HTTPS reaches the provider. The CLI stores env state in S3-compatible object storage.

Cloud providers

Provider host.provider Status
Hetzner Cloud hetzner (default) Supported (VMs, firewall, snapshots, S3-compatible object storage)
AWS aws Coming next
GCP gcp Coming next

rig create reads host.provider. Omit it and the provider is Hetzner. --provider overrides the file. aws and gcp are accepted as names and refused until those clouds can provision.

State storage (environment records, outputs) is separate from the VM provider and can be any of:

Storage Selected by Status
Hetzner Object Storage default endpoint (https://fsn1.your-objectstorage.com) Supported
Cloudflare R2 state_endpoint_url = https://<account-id>.r2.cloudflarestorage.com Supported

See State backend for the settings.

Coding agents

Chosen at rig init (agent.enabled in rig.yml, same multi-select as git projects: numbers, names, or all). Every selected agent is installed and configured on the VM. When more than one is selected, init asks which is the default for rig attach (agent.default). Pass --agent to open another one.

Agent agent.default API key
OpenCode opencode (default) Optional. One agent: coding_agent_api_key. Several agents: opencode_api_key. Enter skips and uses free Zen models
Claude Code claude One agent: coding_agent_api_key (Anthropic). Several agents: claude_api_key
Cursor CLI cursor One agent: coding_agent_api_key (CURSOR_API_KEY). Several agents: cursor_api_key

Each selected agent is asked for its own key. Scaffolds land under .rig/.opencode/, .rig/.claude/, and .rig/.cursor/ (plus shared AGENTS.md). MCP servers are declared once in .rig/mcp.json (below). Independent of editor (local IDE for rig dev).

MCP servers

Declare an MCP server once in .rig/mcp.json and every enabled agent gets it. The file uses Claude's .mcp.json schema, and values may reference MCP variables as ${NAME} or ${NAME:-default}:

{
  "mcpServers": {
    "awx": {
      "command": "python3",
      "args": ["-u", "/home/dev/awx-mcp-stdio.py"],
      "env": { "AWX_MCP_API_KEY": "${AWX_MCP_API_KEY}" }
    },
    "context7": {
      "url": "https://mcp.context7.com/mcp",
      "headers": { "CONTEXT7_API_KEY": "${CONTEXT7_API_KEY}" }
    }
  }
}
rig mcp add awx --env AWX_MCP_API_KEY -- python3 -u /home/dev/awx-mcp-stdio.py
rig mcp add context7 --url https://mcp.context7.com/mcp --header 'CONTEXT7_API_KEY=${CONTEXT7_API_KEY}'
rig mcp list      # servers, and whether each variable resolves
rig mcp check     # same, exit 1 on any problem (also lists ignored legacy files)
rig mcp remove awx
  • Bare --env KEY means KEY=${KEY}; --env KEY=value stores a literal. add prompts for each ${NAME} that has no default and no value yet, and vaults it (shared vars.yml; --personal for vars.<identity>.yml).
  • A variable resolves to the vaulted variable with the same name, ignoring case: AWX_MCP_API_KEY finds awx_mcp_api_key. Two variables that differ only by case are an error. Values come from the vars files, inventory and extra vars, not from play-level vars:.
  • The authorize Stage renders each enabled agent's own format and writes it into ~/.claude.json (mcpServers), ~/.cursor/mcp.json and opencode.json (mcp) on the Environment. A server with the same name is replaced; servers you added by hand there are kept. Secrets are written into those files (mode 0600).
  • A server whose variable has no value is skipped with a warning; the create still succeeds. An invalid .rig/mcp.json fails the Stage.
  • Fields rig does not translate (anything other than type, command, args, env, url, headers) are dropped with a warning.
  • rig mcp add/remove only edit local files. Push to a running Environment with rig apply --authorize; remove leaves the old entry on Environments that already have it until they are recreated.
  • Cursor's launcher passes --approve-mcps, so servers rig installs never prompt.
  • Support files for a server (for example a stdio wrapper script) are not managed by rig: install them from your own playbook (provision, configure or authorize) and point command at that path.
  • The per-agent .rig/.claude|.cursor|.opencode/mcp.json files from earlier versions are no longer deployed. If one still declares servers, rig apply/create and rig mcp check warn; move them to .rig/mcp.json.

Live agents

rig attach runs the agent as a live agent: a process kept running on the Environment inside its own tmux session (tmux -L rig, with a config rig ships, so it never touches a tmux you use yourself). Closing the terminal or losing the connection only detaches; the agent keeps working, and the next rig attach joins it.

rig attach                       # start the live agent, or join the running one
#   leave: close the terminal, or detach with Ctrl+b d. Ctrl+C still goes to the agent.
rig attach --restart             # replace it with a fresh process (resumes the same conversation)
rig attach --no-persist          # old behaviour: the agent ends with the SSH session
  • One live agent per Agent type per Environment. A second rig attach joins the first (both terminals see the same screen). Resume flags (-c, --resume, --session) apply only when a live agent is started; joining ignores them with a warning.
  • A bare rig attach joins whichever live agent is running. --agent picks another.
  • rig inspect lists live agents. rig apply and rig delete warn when there are any: a live agent keeps the credentials and MCP config it started with until rig attach --restart, and deleting the Environment ends it.
  • If the agent exits while nobody is attached, tmux has logged its output on the VM, and the next rig attach recovers the resume id from that log.
rig exec

Start an agent on a task and leave:

rig exec "fix the failing tests in /workspace/api"
rig exec @task.md                        # prompt from a file
echo "review the diff" | rig exec -      # prompt from stdin
rig exec --name dev-ab12cd34 --agent claude "..."

rig exec starts the live agent with the prompt, prints how to attach, and returns. It never creates an Environment and never waits.

  • Approvals are skipped by default (--permission-mode bypassPermissions for Claude Code, --force for Cursor, --auto for OpenCode), because an unattended agent that stops at a prompt just sits there. Claude Code refuses bypass mode as root unless it is told it runs in a sandbox, so rig sets IS_SANDBOX=1 for that run (harmless for the non-root workspace user), and authorize pre-accepts Claude's first-use warning dialog (skipDangerousModePermissionPrompt), whose default answer is "exit". The Environment has internet access, your tokens and root, so an agent reading untrusted text could be talked into acting on it. Use --no-auto-approve to supervise the run; it then pauses at each approval until you attach.
  • If a live agent is already running, rig exec queues the prompt into it for Claude Code, which runs it after the current turn. rig does this only when Claude's hooks report it idle or working, never while it waits at an approval dialog (typing there would answer the dialog). If it is waiting, the state is unknown, or the agent is OpenCode or Cursor (queue behaviour not yet verified), rig exec refuses with the reason; --restart replaces the live agent instead. A queued prompt runs under the existing agent's permission mode.
  • The agent's startup is checked: if it exits within a couple of seconds (for example no credentials), rig exec prints its output and fails.

The prompt reaches the VM on stdin and a private temporary file that is deleted when the agent starts, never on a command line.

How it works
  • tmux is installed at provision. The tmux config, two small helper scripts (rig-agent-state, rig-agent-queue) and Claude Code's state hooks are deployed by authorize.yml, so changing them never rebuilds the cached image. The hooks are merged into ~/.claude/settings.json next to any hooks you added.
  • The hooks record idle, working, waiting or ended in /run/rig/agents/claude.state; rig-agent-queue reads it before pasting.
  • A failed agent leaves its (dead) pane so the error stays readable; the next rig attach or rig exec replaces it.
  • Agent output is logged to /var/log/rig/rig-<agent>.log (the previous run's log is kept as .prev).

IDEs

rig dev opens the remote /workspace. Default is local editor + Remote-SSH; --browser uses code-server on the VM.

Mode Clients
Remote-SSH (default) VS Code (code), VS Code Insiders (code-insiders), Cursor (cursor), VSCodium (codium)
Browser (--browser) code-server (password: vaulted vscode_browser_password)

Chosen at rig init (editor.enabled in rig.yml, same multi-select as git projects: numbers, names, or all). When more than one is selected, init asks which is the default for rig dev (editor.default). Pass --editor to open another enabled one. These are local clients: nothing extra is installed on the VM, and each IDE downloads its own remote server the first time it connects. Browser login: rig vars decrypt vscode_browser_password.

Dev Containers

rig init looks for Dev Containers in the Repos you select and, when it finds any, asks whether to enable support (default yes). It records the answer in rig.yml and doesn't ask again. To enable it by hand, set editor.devcontainers: true; then rig dev looks for Dev Containers in your Repos on the VM (each Repo's root and its immediate subfolders: .devcontainer/devcontainer.json, .devcontainer.json, .devcontainer/<name>/devcontainer.json). One match opens straight away, several give a numbered prompt, none opens the plain folder.

  • rig dev --target api or --target api:backend skips the prompt; --select forces it. The last choice per Environment is remembered in /tmp/.rig/targets/.
  • Not supported with --browser. Agents still run on the VM, not in the container.
  • Docker is installed in the configure Stage and cached in the snapshot, so turning the flag on rebuilds the Workspace's snapshot once. New Workspaces get the task in .rig/configure.yml. Existing Workspaces must add it themselves, and existing Environments must be re-created:
- name: Install Docker for Dev Containers
  include_role:
    name: geerlingguy.docker
  when: install_docker | default(false)

See ADR 0005.

Workspace user

Rig doesn't make you work as root. Provision creates one non-root account, dev by default, with passwordless sudo and (once Docker is installed) the docker group. It is the account rig attach, rig exec, rig dev, the SSH alias, agents, code-server and Dev Containers all use, so VS Code remaps the container user's uid to match it and /workspace is writable from the container. Ansible still connects as root. Authorize copies root's authorized_keys to the user on every create.

Change the name in rig.yml (not root; a valid Linux user name):

host:
  user: dev

Agent config (~/.claude, ~/.cursor, ~/.config/opencode), the git token file and the git author live in that user's home. code_server_user is no longer used. Playbooks get rig_user and rig_home. Existing Workspaces: provision.yml and authorize.yml are regenerated, but your materialize.yml is not: add become_user: "{{ rig_user }}" to its clone task and owner/group: "{{ rig_user }}" to the /workspace task. Existing Environments predate the user and must be re-created. See ADR 0006.

Layout

rig init writes commit-friendly files into the current directory (including a subdirectory of a git repo):

rig.yml                 # workspace manifest (vm, agent, playbooks, repos)
.gitignore              # adds .rig/collections, roles, inventory (via init)
.rig/
  provision.yml         # managed; create base environment (cached)
  configure.yml         # user; image/service customizations (cached)
  authorize.yml         # managed; inject credentials (never snapshotted)
  materialize.yml       # user; populate /workspace after authorize
  finalize.yml          # user; destruction hooks before managed destroy
  destroy.yml           # managed; teardown system resources before VM delete
  vars.yml              # Shared Ansible vars (vaulted with shared data key)
  vars.<identity>.yml   # Personal secrets + master-key wraps (committed)
  requirements.yml      # Galaxy collections/roles
  local_roles/          # committed Ansible roles (searched first)
  AGENTS.md             # agent instructions
  .opencode/ | .claude/ | .cursor/  # agent config
  mcp.json              # user; MCP servers for every agent (see `rig mcp`)
  inventory.yml         # generated at create/apply (gitignored)
  collections/ roles/    # Galaxy installs (gitignored)

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases mystack-rig

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Frame 2085668439 (1)
Group 1261154229