Use Fistron from your coding assistant
Before you open a pull request, you can ask your coding assistant to run Fistron on your working copy: the review your request would get, the steps of a feature you wrote, the cause of a failed CI job, the tests a file is missing. The assistant only chooses the tool and tells you what it found; a tool that needs a model runs on the model you chose for it in Fistron, for example Mistral, Gemini, Apertus or a model of your own.
This page goes from nothing to a first answer. Each step ends with a check; if a check fails, see Troubleshooting.
See it
A session recorded for real at Fistron’s release
(the recording, for any asciinema
player): Fistron installed, connected to Claude Code, and the tools your
assistant calls, each with its own answer. It runs on Fistron’s synthetic
suite (examples/coding-assistant in Fistron’s repository) and a
synthetic Jenkins; no model is configured, so the tools that can run
by rules do. Your assistant words the answers for you.
- You do: install Fistron, connect it to your coding assistant, and ask about your branch, a failed job or a file.
- Fistron does: your assistant calls Fistron’s tools on your working copy: the review your pull request would get, the RCA of the job, the plan’s missing tests.
- You get: findings with their file and line, the failure’s cause and the tests a file lacks, each from Fistron’s own analysis.
# Your branch
shop $ git log --oneline --stat main..rename-chain
3748b8b Rename an action chain
testsuite/features/core/actionchain.feature | 5 +++++
testsuite/features/secondary/chain_listing.feature | 5 +++++
2 files changed, 10 insertions(+)
# Connect Fistron to your assistant (Claude Code here; any MCP client works)
shop $ claude mcp add fistron -- fistron mcp --engineer --checkout . --suite-map synthetic.toml --base main --config ../fistron.toml
Added stdio MCP server fistron with command: fistron mcp --engineer --checkout . --suite-map synthetic.toml --base main --config ../fistron.toml to local config
File modified: ~/.claude.json [project: ~/shop]
shop $ claude mcp list
Checking MCP server health…
fistron: fistron mcp --engineer --checkout . --suite-map synthetic.toml --base main --config ../fistron.toml - ✔ Connected
# You: "Review my branch with Fistron." Your assistant calls the tool review_branch; its answer:
shop $ mcp-call review_branch '{}' --keep findings -- fistron mcp --engineer --checkout . --suite-map synthetic.toml --base main --config ../fistron.toml
{
"findings": [
{
"rule": "undefined_step",
"level": "error",
"where": "testsuite/features/core/actionchain.feature:10",
"message": "Undefined step: `And I rename the action chain \"weekly\" to \"monthly\"`, no step definition matches this step."
},
{
"rule": "then_without_assertion",
"level": "warning",
"where": "testsuite/features/core/actionchain.feature:11",
"message": "A check that asserts nothing: `Then the action chain \"monthly\" should exist`, a check whose definition asserts nothing. The definition: testsuite/features/step_definitions/chain_steps.rb:5."
},
{
"rule": "feature_in_no_run_set",
"level": "warning",
"where": "testsuite/features/secondary/chain_listing.feature:1",
"message": "A feature in no run set: `List the actions of a chain`, a new feature no run set names: it never runs."
},
{
"rule": "then_without_assertion",
"level": "warning",
"where": "testsuite/features/secondary/chain_listing.feature:5",
"message": "A check that asserts nothing: `Then the action chain \"listed\" should exist`, a check whose definition asserts nothing. The definition: testsuite/features/step_definitions/chain_steps.rb:5."
},
{
"rule": "tag_without_hook",
"level": "note",
"where": "testsuite/features/secondary/chain_listing.feature:1",
"message": "A tag nothing reads: `@scope_action_chains`, no hook, profile, run set or task file reads this tag."
}
]
}
# You: "Why did this job fail? http://127.0.0.1:8941/jenkins/job/shop/job/nightly-integration/5/" The tool analyze_ci_failure:
shop $ mcp-call analyze_ci_failure '{"url": "http://127.0.0.1:8941/jenkins/job/shop/job/nightly-integration/5/"}' --keep status,classification,probable_root_cause -- fistron mcp --engineer --checkout . --suite-map synthetic.toml --base main --config ../fistron.toml
{
"status": "concluded",
"classification": "infrastructure",
"probable_root_cause": "infrastructure failure: Download (curl) error for 'http://mirror.example.test/updates/repodata/repomd.xml':"
}
# You: "Which tests is ActionChainHandler.java missing?" The tool missing_tests:
shop $ mcp-call missing_tests '{"file": "java/core/xmlrpc/chain/ActionChainHandler.java"}' --keep items -- fistron mcp --engineer --checkout . --suite-map synthetic.toml --base main --config ../fistron.toml
{
"items": [
{
"id": "api_uncalled:actionchain",
"priority": "high",
"title": "Test the API of actionchain: 2 methods no scenario calls",
"why": "No step definition reaches them. 1 change data (actionchain.renameChain)",
"state": null
}
]
}
The configuration it uses is examples/coding-assistant/fistron.toml in
Fistron’s repository; step 2 below says what each part does.
Before you start
- A working copy (a
git clone) of the repository you work on, with its remote’s default branch fetched (origin/HEAD; another branch:--base). - Python 3.11 or later and uv or pipx. If
you have neither, install pipx from your distribution
(
sudo dnf install pipx,sudo apt install pipx) and then uv withpipx install uv. - The GitHub CLI
gh, signed in, with read access to Fistron’s releases (given with your pilot or licence). - Claude Code, or another assistant that runs MCP servers (engineer.md).
1. Install Fistron with the extra mcp
Fistron is not on PyPI: pip install fistron installs nothing of ours.
One command installs Fistron’s command line with the extra mcp, its
signature verified (Install Fistron for your plan):
curl -fsSL https://get.fistron.io | sh # open Fistron
curl -fsSL https://get.fistron.io | sh -s -- --licence licence.paseto # with the closed core
The next release: fistron-install update.
In a copy of Fistron’s repository (Fistron’s own developers), install it editable instead, so that the tool follows your branch:
cd ~/git/Fistron
uv tool install --editable '.[mcp]'
Check:
fistron --version # fistron <version>
fistron mcp --help # usage: fistron mcp ... [--engineer] ... [--suite-map <file>] ...
If the shell says fistron: command not found, add ~/.local/bin to your
PATH (the installer says the line) and open a new terminal.
2. Configure the models
The tools read one configuration file. Write it to
~/.config/fistron/fistron.toml, with only what the tools need: one
endpoint (any OpenAI-compatible one) for the roles they use, and the CI
platform an RCA reads:
# Fistron for your coding assistant: one model for the roles its tools use.
[llm]
default_data_class = "internal" # what your working copy is
[llm.endpoints.mistral] # any OpenAI-compatible endpoint
base_url = "https://api.mistral.ai/v1"
model = "mistral-medium-latest"
api_key_env = "MISTRAL_API_KEY" # the key stays in this variable, never in the file
max_data_class = "internal" # what your contract with the provider allows
[llm.roles]
reviewer = "mistral" # the AI review of review_branch
reasoner = "mistral" # the RCA of analyze_ci_failure
assistant = "mistral" # fistron chat
# for analyze_ci_failure on GitHub Actions: the repositories it may read
[acquisition.github]
token_env = "GITHUB_TOKEN"
repositories = ["example/shop"]
mkdir -p ~/.config/fistron
"${EDITOR:-vi}" ~/.config/fistron/fistron.toml # paste the content above, with your values
chmod 600 ~/.config/fistron/fistron.toml
Then, in the shell you will start your assistant from, name the file and give the keys; the key is never written to a file:
export FISTRON_CONFIG=~/.config/fistron/fistron.toml
read -rs MISTRAL_API_KEY && export MISTRAL_API_KEY # paste the key, then Enter
export GITHUB_TOKEN=$(gh auth token) # for analyze_ci_failure on GitHub
Put the first line in ~/.bashrc to keep it; read the key from your
password manager rather than typing it each time. More endpoints, other
roles and other CI platforms: engineer.md.
Check, without sending the model anything:
fistron integrations check --no-llm-request
# [ ok] llm mistral (mistral-medium-latest, assistant, reasoner, reviewer): receives evidence up to internal
A [fail] line for GitHub means GITHUB_TOKEN is not set, or the token
cannot read the repositories you listed; it matters only for
analyze_ci_failure.
Without the configuration, or without a model for a role, the tools that
need none still work: check_feature and missing_tests always, and
review_branch with Fistron’s own findings (the AI review needs the role
reviewer). analyze_ci_failure needs [acquisition] for the job’s
platform; without the role reasoner it analyses by rules.
3. The suite map (optional)
The suite map’s configuration says where your Gherkin suite’s features,
step definitions and run sets are, and what the product’s functions are
(suite-map.md). check_feature needs it;
review_branch uses it for the suite-aware findings; missing_tests and
propose_test build the suite map from it. Without one, skip this step:
review_branch gives its other findings.
Propose it from your working copy, check it, and keep it outside the working copy:
cd ~/git/shop # your working copy
fistron suite-map detect --checkout . --output ~/.config/fistron/suite-shop.toml
cat ~/.config/fistron/suite-shop.toml # [suite] path, features, step_definitions, ...
If your project has a control plane with a Test plan, the
configuration an engineer saved there serves too: open the project’s
Documents, the newest document of kind suite_map_config, click
Show the JSON and save the JSON as ~/.config/fistron/suite-shop.json.
Give it to the tools in the same shell:
export FISTRON_SUITE_MAP=~/.config/fistron/suite-shop.toml
4. Connect your assistant
Claude Code, in your working copy: add Fistron’s server and check that Claude Code reaches it.
cd ~/git/shop
claude mcp add fistron -- fistron mcp --engineer
claude mcp list
# fistron: fistron mcp --engineer - Connected (with a check mark before Connected)
The server runs in the directory you start claude from, so start it in
the working copy, and from the shell where FISTRON_CONFIG,
FISTRON_SUITE_MAP and the keys are set: the server inherits that
environment. claude mcp add adds it for this working copy only; add
-s user to have it in every directory.
With Claude Code you can install the plugin instead: the same tools, and a skill for each that tells Claude when to use it. Use the plugin or the server above, not both.
claude mcp remove fistron # if you added the server above
claude plugin marketplace add fistron-io/Fistron # or the path of a copy of Fistron's repository
claude plugin install fistron@fistron
claude mcp list
# plugin:fistron:fistron: fistron mcp --engineer --checkout . - Connected
Gemini CLI, Mistral Vibe, OpenCode and any other MCP client:
engineer.md. Without a coding assistant,
fistron chat in the working copy asks the model of your role
assistant and runs the same tools.
5. Try it
In your working copy, with a change on your branch (a commit, or a file
you have not committed yet), start claude and write:
Review my branch with Fistron.
Claude Code asks once whether it may use the tool review_branch of the
server fistron; allow it. The answer lists Fistron’s findings, each with
its file and line, for example:
features/orders/cancel.feature:5 - undefined_step (error): Undefined step:
`When the customer cancels it`, no step definition matches this step.
With no change since origin/main it says that nothing changed. The
record is in .fistron-work/review/<time>/pr-review.json; git ignores the
.fistron-work directory.
Before you write a change, ask “Which of the team’s review rules apply to
shop/receipt.py?”: the tool review_rules gives the team’s code review
rules for those files, each with its id, text and examples
(review-rules.md), and Claude Code follows them while
it writes. The review of the branch checks the same rules.
Then try “Check the steps of features/orders/cancel.feature”, “Why did this job fail?” with the job’s link, or “Which tests is shop/receipt.py missing?”.
6. What each tool needs
| Tool | Model (role) | Needs | Closed core |
|---|---|---|---|
review_branch |
reviewer, for the AI review only |
a working copy with origin/main |
no |
review_rules |
none | a working copy; the repository’s setting review-rules in Fistron, else .fistron/review-rules.toml at the base, else the default rules |
no |
check_feature |
none | the suite map’s configuration | no |
analyze_ci_failure |
reasoner (else by rules) |
[acquisition] for the job’s platform and its token |
no |
answer_question |
reasoner (else by rules) |
a causes report of analyze_ci_failure in the workbench |
yes: the answer, and the report |
file_history |
none | [acquisition.github] or [acquisition.gitlab] with the repository on its allowlist |
no |
step_source |
none | a working copy of the tests | no |
test_history |
none | the CI histories collected into the workbench (fistron history collect) |
no |
open_work |
none | [acquisition.github] or [acquisition.gitlab] with the repository on its allowlist |
no |
failure_groups |
none | [acquisition] for the build’s platform and its token |
no |
fix_from |
reasoner, then repair |
[acquisition] for the build’s platform, and the repositories of its causes on its allowlist |
yes, for the fixes and the repairs |
missing_tests |
none | the suite map’s configuration | no |
setup_propose |
reasoner, only with suggest |
the team’s report and the CI jobs (given, or those the configuration reads) | no |
setup_apply |
none | a proposal of setup_propose in the workbench |
no |
propose_test |
authoring |
the suite map’s configuration, the closed core and a licence with the feature authoring |
yes |
project_work |
the project’s own, on its agent | a control plane, --control-plane <url> --project <id> and a personal API token in FISTRON_CONTROL_PLANE_TOKEN (Create an API token) |
the agent’s |
health_audit_start, health_audit_status, health_audit_report |
the configuration’s roles, for the chain’s works | health-audit.toml in the working copy (fistron health-audit checklist writes it) and the configuration that reads the sources |
for the verdicts, the areas and the plan |
report_list, report_run |
none | Fistron’s documents in the workbench (a suite map, a register of broken tests, the audit’s summaries) | no |
issue_plan |
reasoner |
[acquisition.github] or [acquisition.gitlab] with the ticket’s repository on its allowlist |
no |
issue_order |
none | [acquisition.github] or [acquisition.gitlab] with the epic’s repositories on its allowlist |
no |
issue_fix |
repair |
the plan’s steps’ repositories on the allowlist of [acquisition.github] or [acquisition.gitlab] |
yes, for the fixes |
The closed core comes with your licence: install the command line with
--licence licence.paseto
(install-local.md);
fistron licence lists its features. Without the core, propose_test says it needs it and the other
tools work.
To run work on the project’s agent, with the project’s choice of models and its agent’s access (for example the review of a pull request from a fork), create a personal API token (Create an API token), add the server with the control plane and your project, then ask “Review pull request 42 on the project’s agent”; the review appears on the project’s Pull and merge requests page, tab The results:
read -rs FISTRON_CONTROL_PLANE_TOKEN && export FISTRON_CONTROL_PLANE_TOKEN # paste the token, then Enter
claude mcp add fistron -- fistron mcp --engineer --control-plane https://app.fistron.io --project <project id> # your control plane's address
Troubleshooting
| You see | Cause and fix |
|---|---|
pip install fistron installs something else, or nothing |
Fistron is not on PyPI: install it with get.fistron.io (step 1). |
fistron: command not found |
~/.local/bin is not on your PATH: add it as the installer said, then a new terminal. |
the MCP server needs Fistron with the extra mcp |
Installed another way: install it again with get.fistron.io (step 1), which has the extra. |
claude mcp list shows Failed to connect for fistron |
Run the server’s command by hand in the working copy (fistron mcp --engineer): it prints its error; fistron must be on the PATH of the shell that starts claude. |
| The tools are not offered in Claude Code | claude mcp list in the working copy: the server is added for one directory unless you used -s user; restart claude after adding it. |
no LLM endpoint is configured, or the AI review or the RCA says there is no model for the role |
FISTRON_CONFIG is not set in the shell that started claude, or [llm.roles] has no endpoint for that role (step 2). |
| The model is not called: its endpoint does not take the data class | default_data_class is above the endpoint’s max_data_class; set what your contract allows. |
| An error about the key’s variable | The variable named by api_key_env is not set in the shell that started claude. |
check_feature needs the suite map's configuration |
Set FISTRON_SUITE_MAP (or --suite-map) to the file of step 3. |
a proposed test needs the closed core |
propose_test needs the core beside Fistron (step 6). |
the project's agent needs an API token in FISTRON_CONTROL_PLANE_TOKEN |
project_work runs through the control plane as you: create a personal API token under Your API tokens (Create an API token) and set it in that variable in the shell you start claude from. |
the project's agent needs --control-plane and --project |
Add both to the server’s command (step 6). |
review_branch says nothing changed |
Your branch has no change against origin/main: fetch it (git fetch origin), or name another base (--base). |
More: engineer.md.