26 Unix tools. One binary. Zero dependencies. · the missing coreutils for AI pipelines · vrk mcp - expose all 26 tools to any AI agent · brew install vrk - ready in 5 seconds · 26 Unix tools. One binary. Zero dependencies. · the missing coreutils for AI pipelines · vrk mcp - expose all 26 tools to any AI agent · brew install vrk - ready in 5 seconds

vrk assert

About

Checks a condition on your pipeline data and either passes it through or stops the pipeline. You can match JSON with jq expressions or plain text with substring and regex checks. If the condition fails, nothing reaches the next step.

The problem

You pipe JSON through a pipeline and assume the shape is correct. Three steps later, a malformed record silently corrupts your output. You only notice when a customer reports wrong data.

Before and after

Before

curl -s https://api.example.com/health | jq -e '.status == "ok"' > /dev/null

After

vrk grab https://api.example.com/health | vrk assert --contains '"status":"ok"'

Example

vrk grab https://api.example.com/health | vrk assert --contains '"status":"ok"'

Exit codes

CodeMeaning
0All conditions passed; input passed through to stdout
1Assertion failed, or runtime error
2No condition specified, mixed modes, invalid regex, interactive TTY

Flags

FlagShortTypeDescription
--containsstringAssert stdin contains this literal substring
--matchesstringAssert stdin matches this regular expression
--message-mstringCustom message on failure
--json-jboolEmit errors as JSON to stdout
--quiet-qboolSuppress stderr output on failure