Skip to main content

risqlet

Agent-facing risk analysis, mitigation and test-strategy toolkit for software projects.

risqlet gives coding agents and humans a shared, repo-native risk register (.risqlet/) plus a deterministic CLI that owns everything an LLM must never do by itself: schema validation, score arithmetic, priority ranking, lifecycle gates, and exports. Semantic work — eliciting risks, phrasing statements, proposing mitigations — stays with the host agent (the framework-provider pattern).

It also generates repo-grounded test strategies, ingests test results to keep mitigations honest, re-assesses risk at the PR/CI boundary, and turns accepted mitigations into coding-agent guardrails. The architecture is fixed by the two deep-research reports in docs/; design history lives in openspec/.

Design in one paragraph

All state lives in files under .risqlet/ (file-per-risk YAML, append-only decision log, config) — no server, no sessions, git is the database. Any coding agent that can run a shell command can use it; Agent Skills, hooks and an MCP adapter layer on top. Risk lifecycle transitions require a named human principal recorded in the event log: agents propose, humans decide.

Quick start

pip install risqlet        # or: uv tool install risqlet
risqlet setup              # configure your coding agents (skills, MCP, rules)
risqlet init               # scaffold .risqlet/ in your project
risqlet status             # where the analysis stands

risqlet setup is the one-command onboarding. It detects your coding agents and wires each one up at project or global scope, then risqlet setup --remove cleanly reverses it. It works both interactively and headlessly:

risqlet setup                                   # interactive: pick agents + scope
risqlet setup --agents claude,cursor --yes      # scriptable / CI (no prompts)
risqlet setup --all-detected --scope global     # configure every detected agent
risqlet setup --status                          # what's installed where
risqlet setup --remove                          # clean uninstall

Supported agents: Claude Code (full — skills, MCP, instructions, hooks, commands) plus an instructions + MCP tier (and skills where supported) for Cursor, opencode, Codex, Copilot, kilo, pi. Each gets exactly what it supports, reported honestly; MCP-global-only agents (Codex, pi) are flagged.

Core workflow once set up:

risqlet validate            # schema + lifecycle + gate checks
risqlet score --all         # compute derived priorities from the active policy pack
risqlet export --fmt strategy-md
risqlet catalog list        # browse the knowledge packs

The .risqlet/ register format

.risqlet/
├── config.yaml       # project, active catalogs, scoring policy, phase, constraints,
│                     # selected quality aspects (max 6 by default)
├── register/
│   └── R-0001.yaml   # one risk per file: statement, aspects, elicited_by provenance,
│                     # scores (values + rubric_anchors; derived is CLI-owned),
│                     # status lifecycle, embedded mitigations (residual_note required)
├── events.jsonl      # append-only decision log; status/phase transitions need
│                     # a `human:` principal — agents propose, humans decide
├── policies/         # optional user scoring-policy packs (shadow packaged ones)
└── strategy.md       # conventional target for `risqlet export --fmt strategy-md -o`

JSON Schemas for all file types are published in src/risqlet/schemas/ (generated from the models via python -m risqlet.model.schema_gen). Unknown extra fields are warnings, not errors — the format is open for forward-compatible annotation.

Every file is UTF-8 with \n line endings, on every platform — risqlet states the encoding rather than inheriting the host's locale, so a register written on Windows is byte-identical to one written on Linux and survives a round trip through either. This is part of the on-disk contract: the register is meant to be diffed, reviewed, and merged in git, which only works if the bytes do not depend on who wrote them.

Scoring policies are data, not code (src/risqlet/policies/packs/): ordinal factors plus derived fields via a product formula or a top-down first-match lookup table. Default is sod-ap-v1 (Severity×Occurrence×Detection with severity-dominant Action-Priority bands); li-v1 is a lightweight 3×3 likelihood×impact profile.

Knowledge catalogs

Six packaged packs, all original clean-room text. Four are enabled by default: iso25010 quality aspects, techniques, heuristics (including consistency oracles), and guidewords (element × guideword elicitation sets). Two are opt-in for security-heavy products (add them to config.catalogs): mitre-attack (adversary-tactic sweep, ATT&CK tactic names as facts, with the MITRE attribution notice) and owasp-web (the ten web risk categories). Entries are stable, citable ids (techniques.stress-testing) used by register provenance fields. risqlet catalog licenses lists every loaded pack's license, attribution, and any required notice. User packs in .risqlet/catalogs/ load the same way and may shadow packaged ones — including licensed decks you own (we never distribute those).

Pack Default License
iso25010, techniques, heuristics, guidewords on CC BY 4.0
owasp-web opt-in CC BY 4.0 (category names per OWASP taxonomy)
mitre-attack opt-in MITRE ATT&CK terms (royalty-free, attribution required)

Agent skills

Two portable playbooks (cross-vendor Agent Skills format) ship in skills/:

  • risk-analysis — the full six-phase facilitation: context grounding, aspect selection (max 6), multi-pass elicitation, rubric-anchored scoring, mitigation mapping, strategy export — with human gates recorded in the register's event log.
  • risk-quickscan — a diff/PR-scoped single-pass scan that adds proposed risks and recommends a full session when warranted.
  • risk-court — a targeted adversarial review of one high-stakes decision: the host convenes an independent panel to challenge it against the actual code, and risqlet review computes a deterministic SHIP/REMAND/BLOCK verdict from their charges (a category counts only when ≥2 distinct reviewers corroborate it). The verdict is advisory — recorded to .risqlet/reviews.jsonl, re-checked by validate, but never transitioning a risk; a human still decides. The host runs the reviewers; risqlet does the arithmetic and calls no model. Scope: an accept/sign-off/phase gate, not every proposed risk. Small evidence base so far — the mechanism is shipped, not a claim of universal accuracy.

Install them where your agent looks:

uv run risqlet skills install                          # ./.claude/skills (Claude Code project)
uv run risqlet skills install --target claude-user     # ~/.claude/skills
uv run risqlet skills install --target /path/to/dir    # opencode, kilo, Copilot, pi, ...

The skills drive the risqlet CLI, so any agent that can run shell commands can follow them; a skipped human gate simply leaves a register that fails risqlet validate.

MCP server

For MCP-connected clients without repo shell access (Claude Desktop, restricted setups), risqlet mcp runs a stateless stdio server exposing nine tools over the same core — validation, scoring, exports, catalog browsing, the playbooks as get_guidance topics, and gate-preserving register writes (risks enter as proposed; decisions require a human: principal).

uv sync --extra mcp        # or: pip install 'risqlet[mcp]'

.mcp.json / Claude Desktop config:

{
  "mcpServers": {
    "risqlet": {"command": "uv", "args": ["run", "risqlet", "mcp"]}
  }
}

Rule of thumb: coding agents with shell access get the best experience from the CLI + skills; use MCP when the client cannot run shell commands.

Platform support

Linux, macOS, and Windows. Each is exercised on every push by the test matrix (.github/workflows/test.yml), which runs the full suite plus a clean install of the built wheel and risqlet setup for every agent adapter — so what is claimed here is what CI actually runs.

Component Linux macOS Windows
CLI, register, validate / score / export ✅ ✅ ✅
diff / check and the CI gate ✅ ✅ ✅
setup (agent skills, MCP, instructions, commands) ✅ ✅ ✅
The setup check hook ✅ ✅ ✅
guardrails (shell hook templates) ✅ ✅ ❌

risqlet guardrails is POSIX-only: its hook templates are shell one-liners and its verifier uses POSIX process handling. On Windows it reports the guardrail as unsupported rather than installing a hook that would not work. Everything else, including the setup check hook, is shell-free and runs the same everywhere.

Honest limits

The human-principal gate is a convention enforced by validation, not authentication: an agent could write a human: event. On Claude Code, hooks add real enforcement; elsewhere, the audit trail plus code review is the control. Scores are ordinal heuristics for sorting attention, never measurements of "true" risk.

guardrails on Windows is a real gap, not a design stance — closing it means moving each guardrail's logic out of its shell template and into the CLI, the way the check hook already works.

Project

License

Code: Apache-2.0 (LICENSE). Catalog pack content (src/risqlet/catalog/packs/): CC BY 4.0 (LICENSE-CATALOG), authored under the clean-room protocol in CLEAN-ROOM.md — original text expressing established concepts, originators credited per entry.

Metadata

Release files for risqlet 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for risqlet 0.2.0
File Size Uploaded Provenance Actions
risqlet-0.2.0.tar.gz 188.6 kB Without provenance Details for risqlet-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for risqlet 0.2.0
File Interpreter ABI Platform Actions
risqlet-0.2.0-py3-none-any.whl Python 3 none any Details for risqlet-0.2.0-py3-none-any.whl

Total release size: 349.7 kB

Release files / risqlet-0.2.0.tar.gz

Download URL risqlet-0.2.0.tar.gz
Size 188.6 kB
Tags Source
SHA-256 checksum
How to use checksums
0637ed0ee3dfbe08fa291596e391de5fbebf35ea33290ed80a8f4a2bf87127cb
BLAKE2b-256 checksum
How to use checksums
603d91abbf7c36c245c800d1a401e17e6d922873ee91fc5fa74f1a09793886dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / risqlet-0.2.0-py3-none-any.whl

Download URL risqlet-0.2.0-py3-none-any.whl
Size 161.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6c7db9bf63553b88a973e8db032a4ad2e98722945624939306b996c333dd7a3b
BLAKE2b-256 checksum
How to use checksums
ebae641fe8f396f6ff2edcb69a911310e7190b1e21a53d6ddca3cfe4eb8fff1f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for risqlet 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page