/novafabric:novafabric-instrumentfrom novafabric
Instruments Python AI agents with NovaFabric to capture runs as replayable, sealable Run Capsules. Records model calls, tool calls, traces, and environment locks locally with no server needed.
Ships in novafabric. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
NovaFabric records one run of a command as a Run Capsule: a folder you own with the run's model calls, tool calls, trace, environment lock and outputs. Capture, validate, verify and replay run locally with no server. A capsule is unsealed unless the user has turned sealing on, and by default it contains prompt and response text (see "Honest limitations"). Say both before the first capture.
nova api-proxy --help and
nova mcp-proxy --help first: automatic model-call capture runs inside a Python
interpreter; those two proxies record HTTP model APIs and MCP servers for other clients.novafabric-deploy skill.Run each step, read its output, and confirm it before moving on.
Find the entrypoint and its Python environment. Identify how the agent runs
(python agent.py, python -m myagent, uv run …) and which interpreter it uses
(an activated venv, .venv/bin/python, uv run). No code change to the agent is needed.
Install NovaFabric into that same environment. The capture hooks load inside the
agent's own interpreter (a sitecustomize loader that imports novafabric), so
novafabric must be importable there, not only on the shell's PATH:
pip install novafabric # inside the agent's venv; or: uv add novafabric
The optional local dashboard needs the extra: pip install 'novafabric[serve]'.
First-run setup (idempotent):
nova init
Creates ~/.novafabric/ (or $NOVAFABRIC_HOME) with capsules/, keys/,
replays/ and an Ed25519 key pair (mode 600) used to sign Evidence Bundles. It does
not turn on capsule sealing; its last line says
"Capsule sealing is off until you run nova seal init".
Optional — turn on sealing (experimental), only if the user wants tamper-evident capsules:
nova seal init
Fully offline. It creates a local ECDSA P-256 signing key and a local seal CA. The identity is self-asserted: a seal proves that the holder of this key signed, not who that holder is. No RFC 3161 timestamp is configured, so seals carry no trusted time. Only captures made after this step are sealed. Details: NovaSeal configuration.
Capture a run. Wrap the existing command, using the environment from step 1:
nova capture -- python agent.py [args...] # or: uv run nova capture -- python agent.py
The -- stops nova from reading the agent's own flags. The output prints
Capsule written: <path> (run_id=<run-id>); by default the path is
~/.novafabric/capsules/<run-id>/ (--output-dir changes the base directory). If the
output says Workload never started: command not found: python, use the interpreter
that exists (python3, .venv/bin/python).
Validate, then verify:
nova validate ~/.novafabric/capsules/<run-id>/
nova verify ~/.novafabric/capsules/<run-id>/
validate prints Valid capsule: <run-id> status=success for a well-formed capsule.verify on an unsealed capsule exits 1 with No .seal/ directory found and
says sealing is opt-in. That is the expected result without step 4. Tell the user so;
do not report it as a passing check, and do not hide it.verify on a sealed capsule ends with a summary line such as
signature_ok=True, … identity_trust=self-asserted. Report the trust level too.Use the capture (offer these, do not force them):
nova replay <capsule-dir> --mode forensic.
nova replay with no --mode defaults to mocked, which re-runs the agent (see below).nova export-evidence <capsule-dir> --key ~/.novafabric/keys/signing_key.pem --output evidence.zipnova lineage provenance <run-id>. It prints No results when the run
recorded no lineage edges, which is normal for a plain script.[serve] extra):
nova serve --experimental. It binds 127.0.0.1:4321 and is not read-only: its
admin token can delete runs and erase PII.Optional: let Claude Code read the capsules through NovaFabric's MCP evidence
server (experimental). It is read-only and offline: it lists, summarizes and
verifies the capsules directly under the directories passed with --scope, and never
returns prompt or response content. It is new in v0.110.0 (v0.109.0 and earlier have no
nova mcp serve); with v0.110.0 or later on PyPI, uvx novafabric mcp serve --scope <dir>
starts it without a local install. Register it with absolute paths:
claude mcp add novafabric-evidence -- /abs/path/to/venv/bin/nova mcp serve \
--scope /abs/path/to/.novafabric/capsules
Details: MCP client setup. Ask before adding it: it changes the user's Claude Code configuration.
model-calls.jsonl at every capture level.
NOVAFABRIC_CAPTURE_WIRE_RESPONSES=off drops only the generic wire hook's response
bodies. Treat a capsule as sensitive data. The secret scanner matches known key
formats; it cannot prove that no secret remains. To check a capsule, run the read-only
nova scan-secrets <capsule-dir>, which reports the findings recorded at capture.
nova redact is different: it rewrites the capsule, which breaks an existing seal
(nova verify fails afterwards). Never run it without asking the user first.nova seal init (or a configured
novaseal.yaml), and its identity is self-asserted unless the user pins a CA.nova api-proxy and
nova mcp-proxy cover other clients.forensic, mocked, semantic, exact, and the
experimental intervention). Only mocked and intervention re-run the command:
mocked serves recorded responses for OpenAI chat completions and responses and
Anthropic messages (works today). Experimental: Ollama /api/chat and
/api/generate, AWS Bedrock Converse / ConverseStream, and a call sent through
httpx or requests to another model host in NovaFabric's URL registry (for example
Hugging Face Inference, Google Gemini, Mistral), served from its recorded response
bytes. It serves recorded results for
MCP call_tool, functions declared with novafabric.capture.record.tool, and the
supported framework tool surfaces (experimental). Every other tool (HTTP, shell,
files, undeclared functions) runs live, and the network is observed, not blocked
(--hermetic blocks it: experimental, Linux only).mocked refuses up front a capsule with a model call it cannot serve (for example
one whose response was never recorded): ModelSurfaceNotServable, exit 1, unless
--permissive is passed. nova replay <capsule-dir> --dry-run lists such calls first.mocked needs novafabric importable in the agent's interpreter, as capture does.
Otherwise the replay reports dispatcher_install_failed.nova replay --help before promising a replay result.nova validate <capsule-dir> passes, and model-calls.jsonl in the capsule has a record
for each model call the agent made. A passing validate alone does not prove the hooks
ran: check outputs/stderr.txt in the capsule. The line
[novafabric] hook install failed: No module named 'novafabric' means the agent's
interpreter cannot import novafabric (go back to step 2), and nothing was recorded from
inside the process. If model-calls.jsonl is empty with no such line, the SDK may not be on
a hooked path; read nova capture --help before trying anything else. If sealing was set up
first, nova verify reports signature_ok=True.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub mskazemi/novafabric --plugin novafabric2 skills in this plugin
Other plugins' skills for the same job