/tricorder:tricorder-clifrom tricorder
CLI reference for the tricorder daemon — build diagnostics, test results, source lookup, eval comments, and logs. Fallback when MCP tools are unavailable.
Ships in tricorder. 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.
Read when SKILL.md points to them.
tricorder is a daemon-based GHCi build monitor. The daemon is per-project,
scoped by the current working directory, and every query command starts it if
it isn't running. Output is human-readable text by default, or JSON with
--json.
Run tricorder <command> --help for exact flags. CLI.md holds the
--help output of every command.
tricorder status. It blocks until the daemon finishes the pending build.All good., the daemon runs the configured test suites. Run tricorder test suites --failed-only to see failures.Never run cabal build or cabal test yourself. The daemon builds after every edit and runs tests after each clean build.
| Command | Use |
|---|---|
status | Build diagnostics and test summary |
test suites | Test suites, cases, failures, output |
source | Haskell source of project or installed modules |
eval-comments | Results of eval comments in watched sources |
daemon info|start|stop|restart | Manage the daemon |
log | Daemon log |
ui | Interactive auto-refreshing display, for humans |
status, test suites and eval-comments accept:
-j, --json for machine-readable output.-c, --use-current to skip waiting for the pending build and read the current, possibly incomplete, state.--prevent-daemon to fail instead of starting the daemon when it isn't running.One line per diagnostic with a 1-based index, then a summary:
[1] E src/Foo/Bar.hs:42 `something` not in scope
[2] W src/Foo/Bar.hs:10 redundant import
2 error(s), 1 warning(s) (71 modules, 1.2s)
Format: [N] <E|W> <file>:<line> <title>. A clean build prints:
All good. (71 modules, 17.3s)
Test suite results follow the summary when suites are configured:
All good. (71 modules, 17.3s)
test:my-test passed
test:other-test failed
-v, --verbose prints the full GHC message under each diagnostic, and full test suite error messages.--expand N prints only diagnostic #N in full. Use it to read one error without the rest.Exit code is 1 when any error is present or any test suite fails. Warnings alone give 0.
--json returns the full build state:
{
"buildId": 3,
"phase": {
"tag": "Finished",
"contents": {
"completedAt": "2026-03-30T12:00:00Z",
"durationMs": 420,
"moduleCount": 42,
"testSuites": [...]
}
}
}
Prefer the text output. Reach for --json only when parsing the whole state.
tricorder test suites [TEST-TARGET...] prints a YAML list, one entry per suite:
- name: tricorder:test:tricorder-test
status: failed
passed_cases: 479
total_cases: 480
duration_ms: 250
TEST-TARGETs to show only those suites.-f, --failed-only shows only failed suites and, within them, only failed cases. When nothing failed it prints no failed test suites.--fields picks the fields. Available: name, status, error, passed_cases, total_cases, duration_ms, output, cases(description, outcome, failure). Nest with parentheses.--help-json prints the JSON schema of the --json output.To read why a case failed:
tricorder test suites --failed-only --fields 'name,cases(description,failure)'
Exit code is 1 when any shown suite failed or errored.
tricorder source Module[#function] prints the Haskell source of a project or installed module, or of one function in it. Use it to read library code instead of hunting through the Nix store or ~/.cabal.
--max-depth N (default 5) caps the hops, --max-modules N (default 24) caps the modules read.The daemon evaluates eval comments in the watched source files. Use them for quick type checks and experiments.
./src/Source/Module.hs (line 123)
Expression:
:t someFunc
Output:
someFunc :: Int -> Int
With --json:
{
"state": "done",
"comments": [
{
"expression": ":t someFunc",
"file": "./src/Source/Module.hs",
"line": 123,
"state": { "output": "someFunc :: Int -> Int\n\n", "state": "completed" }
}
]
}
The top-level state is done once the build finishes. Only then does comments appear. Before that, state names the build stage the daemon is in.
tricorder daemon info shows daemon information (--json available).tricorder daemon start is a no-op when the daemon already runs.tricorder daemon restart and stop wait for clients with pending requests. --ignore-pending-queries skips the wait.tricorder log prints the daemon log. --print-path prints the log file path instead, for grepping or tailing.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub tweag/tricorder --plugin tricorder2 skills in this plugin
Other plugins' skills for the same job