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

siwah

Latest version: v1.2.0

Overview

Last scanned
28 Nov 2026
Published
28 Nov 2026
PyPI package Publisher: zidanmubarak
1 Stars
0 Forks
8 Versions
362 Downloads
Python Repo language

Scan summary

siwah was last scanned on 28 Nov 2026 at version 1.2.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 8 versions; the latest 5 were published within 6 days (23–28 Nov 2026).
  • Findings: No rules fired in version 1.2.0.
  • Downloads: 362 downloads.

Versions

8 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.2.0 LATEST 28 Nov 2026 No rules fired
1.1.0 27 Nov 2026 No rules fired
1.0.5 26 Nov 2026 No rules fired
1.0.4 24 Nov 2026 Not shown
1.0.3 23 Nov 2026 Not shown

No rules fired in 1.2.0

Findings

Findings for v1.2.0. 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.2.0; other versions have their own rules, not their own score.

README

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

Status: 1.2.0 is the current public release. The source bootstrap is the primary install; the same release is published to PyPI and verified from a clean environment.

siwah is a coding agent that runs in your terminal. A local Python daemon owns sessions, tools, provider calls, permissions, checkpoints, and accounting. A TypeScript terminal UI renders the work, while a headless runner and an Agent Client Protocol (ACP) bridge speak to the same daemon.

The harness is editable: prompts, tool guidance, skills, commands, subagents, hooks, and model profiles live in a git-backed directory under ~/.siwah/. siwah can improve that data through an evaluation-gated evolution loop, and can gate patches to its own core code. The kernel, evaluation fixtures, and recovery paths are protected from the agent. It is local-first: no hosted service, no telemetry, and no hardcoded model IDs, prices, or limits.

Features

  • Workflow: streaming agent loop, file/edit/search/shell/web tools, verifier with repair loop, checkpoints, undo/rewind/fork, plan mode, compaction, offload, queueing, memory, and recall.
  • Terminal: OpenTUI + Solid UI, Markdown, tool cards, diffs, task progress, session tabs, inline permission previews, image paste, themes, NO_COLOR, and persisted history. --ui plain is the no-Bun fallback.
  • Providers: OpenAI Chat Completions-compatible endpoints, live model discovery, /connect, capability probes, role routing, fallback, effort, and per-step allowance accounting.
  • Safety: ask/auto-edit/yolo, path guard, secret deny list, catastrophic-command denial, opt-in Docker/bubblewrap sandbox, kernel manifest, supervisor rollback, and dirty-repository refusal.
  • Extensibility: editable prompts, guidance, skills, commands, subagents, profiles, hooks, and MCP; project overrides under .siwah/; background jobs.
  • MCP auth: stdio and streamable HTTP servers, generic OAuth 2.1 discovery, PKCE, dynamic client registration, device flow for headless sessions, refresh, and tokens stored outside mcp.json.
  • Plugins: declarative bundles of skills, commands, subagents, hooks, and MCP servers; no Python code is imported. Install with siwah plugin install.
  • Evaluation: golden, heldout, and traps; mock and live modes; T0–T3 tiers; evolution Levels 0–2 with budget, canary, tags, rollback, and audit.

Requirements

  • Python 3.11+ and uv
  • Bun 1.3.14+ for the TUI from source (a compiled binary does not need Bun)
  • Git for checkouts, checkpoints, and updates
  • An OpenAI Chat Completions-compatible provider

Install

The bootstrap installs uv and Bun when missing, clones siwah to ~/.siwah/src, installs the editable siwah tool, and builds the TUI binary.

Windows PowerShell:

irm https://raw.githubusercontent.com/zidanmubarak/siwah/main/scripts/install/bootstrap.ps1 | iex

macOS/Linux:

curl -fsSL https://raw.githubusercontent.com/zidanmubarak/siwah/main/scripts/install/bootstrap.sh | bash

Open a new terminal and run siwah. The checkout in ~/.siwah/src is what /update and siwah update --apply fast-forward.

The editable install keeps the TUI source discoverable, so /update can fast-forward the checkout and rebuild the binary. The compiled TUI is written to ui/tui/dist/siwah-tui[.exe] and is found automatically. For a manual checkout, see Getting started. The source checkout remains the primary install for /update. See Releasing.

PyPI
uv tool install siwah       # recommended
# or: pip install siwah

The wheel contains the CLI, daemon, and evaluation engine, but not the platform-specific TUI binary. On the first interactive launch, siwah downloads the matching siwah-tui-<platform>-<arch> asset from the release and verifies its SHA256 checksum. You can also run siwah install-tui, place the binary in ~/.siwah/bin/ (Windows: siwah-tui.exe), or point SIWAH_TUI_BINARY at it. Without a binary, siwah run "..." --ui plain works; a source checkout can also run the TUI with Bun.

PyPI installs update with uv tool upgrade siwah or pip install -U siwah. /update applies only to the editable source checkout installed by the bootstrap. Evaluation from a wheel needs SIWAH_EVAL_DIR pointing at a source checkout's evals/ tree.

Quickstart

Start the TUI with siwah. The launcher starts the daemon through the supervisor if needed. Run /connect, choose a provider, and paste the API key (stored in ~/.siwah/auth.json, mode 600). Run /models, choose a model, and send a task such as: Find the failing test, explain the cause, and fix it.

For headless use:

siwah run "Fix the failing test in this repo" --permission auto-edit
siwah run "Summarize the project" --json
siwah run "Plan the refactor" --effort high --model opencode-go/<model-id>

siwah run uses ask by default. In a non-interactive environment, pass --permission auto-edit for file edits or --permission yolo for shell commands too. --auto and --bypass alias yolo; the path guard and catastrophic-command denial remain active.

Add providers and role targets in ~/.siwah/harness/config.toml; siwah writes opencode-go and openai templates on first run. Restart siwah after editing provider or role settings. Credentials come from the configured environment variable first, then the auth file. Legacy ~/.siwah/config.toml files are migrated on first load. See Configuration.

MCP and plugins

Add a remote MCP server without OAuth:

siwah mcp add context7 --url https://mcp.context7.com/mcp
siwah mcp test context7

To use GitHub's hosted MCP server, set GITHUB_PAT_TOKEN in your launch environment to a GitHub personal access token, then run these commands. The hosted server requires only HTTPS access from Siwah.

siwah mcp add github --url https://api.githubcopilot.com/mcp/ --bearer-token-env-var GITHUB_PAT_TOKEN
siwah mcp test github

Use --force on the add command to replace an existing local github entry. Relaunch Siwah from the environment with the token, then open /mcp.

For servers that advertise OAuth, use auth=oauth and complete the login once:

siwah mcp add context7-oauth --url https://mcp.context7.com/mcp/oauth \
  --auth oauth --scope profile --scope email
siwah mcp auth context7-oauth          # add --device on a headless/SSH host
siwah mcp list                          # oauth=authenticated

Discovery, PKCE, dynamic client registration, refresh, and device flow are generic. Tokens are stored in ~/.siwah/mcp-auth/<server>.json with mode 600, not in mcp.json. See Configuration.

Plugins bundle harness data and MCP servers:

siwah plugin install ./my-plugin
siwah plugin list

They are declarative; hooks still execute commands, so install only trusted bundles. See Plugins.

Permissions

Mode File edits Shell and network Typical use
ask prompt prompt Interactive work; the default
auto-edit allow prompt Agent-driven refactors with a human watching
yolo allow allow Deliberate unattended runs

In the TUI, /permissions cycles the modes; AUTO appears in yolo. siwah --allow-all (alias --bypass) starts the TUI in yolo. Rules can be added per tool, path, or command with allow, ask, or deny; the last matching rule wins. Default deny paths include .env files, SSH keys, AWS and GCloud credentials, and credentials.json.

yolo still denies catastrophic commands that target the filesystem root, disks, or shutdown. It does not turn the path guard into an operating-system sandbox. See Security.

Checkpoints and plan mode

Each session gets a shadow git repository under ~/.siwah/checkpoints/<session-id>/; your project .git is not modified. /undo restores the previous checkpoint, /rewind N targets N steps back and can fork, and /checkpoints lists snapshots (Enter restores, f forks). /compact summarizes the model context without changing the transcript. /plan enters read-only plan mode and writes <repo>/.siwah/plan.md; /execute-plan sends the edited plan back in build mode.

Subagents, MCP, hooks, and jobs

task launches isolated child sessions. explore and review are read-only; general can implement. Custom specs live in ~/.siwah/harness/subagents/*.md or <repo>/.siwah/subagents/*.md. Children cannot launch further children, and read-only batches can run in parallel.

MCP servers are configured in ~/.siwah/harness/mcp.json or managed with siwah mcp add, list, status, show, and remove. The client supports stdio and streamable HTTP, follows tool pagination, and treats every MCP description and result as untrusted data. Resources, prompts, sampling, and server-initiated requests are out of scope.

Hooks live in ~/.siwah/harness/hooks/*.json; a PreToolUse hook can deny a call, while PostToolUse and session hooks can add context. Custom slash commands live in the harness or project commands/ directory. bash accepts background=true; jobs lists, tails, and kills process-local jobs. On Windows, bash uses Git Bash when available; cmd.exe is only a fallback.

Sandbox, best-of-N, and ACP

The command sandbox is opt-in:

[sandbox]
enabled = true
backend = "docker"      # auto, docker, bwrap, or local
image = "alpine:3.20"   # any image with the project's runtime
network = false

Docker is used when an image is configured, bubblewrap on Linux when available, and the local fallback is explicitly non-isolated. Sandboxed background commands fail closed rather than running unsandboxed.

siwah run --ultra N runs 2–5 attempts in separate git worktrees and applies the first passing attempt to a clean main worktree. It requires a clean repository and does not silently spend allowance.

siwah acp starts an ACP v1 stdio bridge for editors. It advertises text prompts; requests needing interactive approval are denied because client permission dialogs are not implemented. Filesystem and terminal methods are not advertised yet. siwah run --json and the daemon OpenAPI remain the primary headless surfaces.

Evaluation

siwah eval --suite golden
siwah eval --suite golden --baseline
siwah eval --suite golden --tier t0
siwah eval --suite traps
siwah eval --suite heldout

The public repository contains 30 golden tasks, 3 sample heldout tasks, and 3 traps. The full heldout suite is distributed separately and is loaded from SIWAH_HELDOUT_DIR, or point SIWAH_EVAL_DIR at a complete evaluation tree. Evaluation and evolution therefore need a source checkout or an explicit eval directory; a wheel install alone is not enough.

Mock runs are deterministic and cost no allowance. Live runs are opt-in:

SIWAH_LIVE=1 siwah eval --suite golden --live \
  --model opencode-go/<model-id> --max-allowance 0.05 --max-steps 16

Reports include pass rate, steps, tokens, allowance, duration, tool-error rate, cache-read ratio, and trap results. Heldout reports expose aggregate metrics only. See Evaluation.

Evolution

Level What changes Gate
0 Harness data, such as a prompt or guidance file Safety validation and a T0 smoke probe
1 Multi-file harness data T1 screening against a baseline, then a T2 gate
2 Core code outside protected paths Isolated worktree, diff limits, tests, lint, type check, smoke boot, T0–T3
$env:SIWAH_LIVE = "1"
siwah models probe opencode-go/<model-id>
siwah models privacy opencode-go/<model-id> --training false
siwah evolve --live --model opencode-go/<model-id> --max-allowance 0.05
export SIWAH_LIVE=1
siwah evolve --seed                          # deterministic cold-start cycle
siwah evolve --live --seed --probe-limit 2   # cheap live smoke
siwah evolve --pause
siwah evolve --reset-cooldown                # after a privacy/config preflight failure
siwah evolve log
siwah evolve --patch-file fix.diff           # Level 2 gate
siwah rollback evo-N                         # restore a harness tag

--live requires SIWAH_LIVE=1 in the same process, a real model, and a positive per-probe --max-allowance. The model must also have a privacy profile with training=false; siwah models probe reports training=unmarked when the provider catalog does not state it. Only mark training=false when the provider contract confirms it. Without --live, only an explicit --seed cycle runs; it is a smoke fixture, not evidence of coding quality. Promotions are committed and tagged, and the canary monitor records samples against configured thresholds. A privacy or config preflight failure no longer consumes a cycle; use siwah evolve --reset-cooldown if an older failed cycle left a cooldown behind.

Automatic post-session evolution is available when [evolution].auto is enabled and the session signals and cooldown conditions are met. It does not opt into paid live evaluation by itself. Production canary sampling is not connected end-to-end, so automatic post-session rollback is not a guarantee. Use explicit --live cycles when you need strict control.

Kill switches: SIWAH_EVOLVE=off, SIWAH_EVOLVE_AUTO=0, and siwah evolve --pause. The default budget allows 1.0 allowance per cycle, three cycles per day, a 40% weekly reserve, a 60-minute cooldown, and 45 minutes of wall time. See Evolution.

Known limitations

  • The path guard is an application-level guard. A deliberately malicious bash command can still write outside the workspace unless the opt-in sandbox is configured. The local sandbox fallback is not isolation.
  • The 1.2.0 provider adapter is OpenAI Chat Completions-compatible only.
  • Evolution's canary and automatic rollback path is not end-to-end; production session sampling is not connected. Level 2 recovery from a delayed daemon boot failure is not fully journaled.
  • ACP is minimal: text prompts only, no client permission dialogs, no loadSession, and no filesystem/terminal methods.
  • macOS Terminal and iTerm2 were not verified for 1.2.0. Windows Terminal, tmux, SSH, and Windows/WSL environments were verified. See Terminal support.
  • The full heldout suite is not public; the public samples are for format inspection. A wheel install does not include the TUI binary or eval fixtures.
  • Some model-specific harness overlays for complex model IDs may not resolve through both the gate and the loader.

Architecture

siwah (launcher)
  └─ supervisor (protected)
       └─ siwah daemon (FastAPI, HTTP + SSE)
            ├─ TUI (OpenTUI + Solid)
            ├─ siwah run (headless)
            ├─ ACP bridge
            └─ editor clients
  • src/siwah/kernel/ — protected guard, manifest, audit, snapshot, budget, gate, canary, supervisor, and evolution orchestration.
  • src/siwah/core/ — agent loop, SQLite sessions, checkpoints, context, verifier, plan mode, subagents, and trajectories.
  • src/siwah/providers/ — configuration-driven adapter, streaming, tool calls, usage and allowance accounting, profiles, and repair.
  • src/siwah/tools/ — filesystem, edit, search, shell, todo, web, memory, skill, recall, repo-map, tool-output, task, jobs, MCP, and syntax tools.
  • src/siwah/server/ — local HTTP + SSE protocol and OpenAPI.
  • src/siwah/adapt/ — evolution candidates, probing, promotion, canary, Level 2 worktrees, and best-of-N.
  • ui/tui/ — TypeScript terminal interface with generated API types.
  • evals/ — protected golden, heldout, and trap fixtures.

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 siwah

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

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Frame 2085668439 (1)
Group 1261154229