Fistron docs

fistron.io

Become a developer

Own your code. Understand every change before you submit it, even when AI wrote it. Like fire, AI is a good servant and a bad master: Fistron explains your change to you, and what you learn stays yours.

Everything here is private to you:

See it

Fistron’s Become a developer page: a branch of a small shop shown as its code, beside each changed function what it affects and which tests name it.

A branch of a fictional shop (examples/showcase-shop) explained for real from the code’s evidence alone, beside the lines it explains. With a model, its words come labelled and held to these facts. The same in the dark theme and on a phone. Taken from Fistron’s GUI at its release, never drawn.

You do Fistron does You get
Ask Fistron to explain your change or a module of the codebase. Fistron explains it from the code’s evidence: its callers, its tests and its coverage; a model’s words held to those facts. An explanation you can trust, a check that you understood your change, and your own learning path, private to you.

Recorded for real at Fistron’s release (the recording, for any asciinema player):

# Your branch
shop $ git log --oneline --stat main..discount
09f32ba A discount at checkout
 shop/app.py | 6 ++++++
 shop/pay.py | 6 +++---
 2 files changed, 9 insertions(+), 3 deletions(-)

# Your change explained from the code's evidence, private to you
shop $ fistron explain change --checkout . --base main --no-model --no-learn
# Your change explained: 09f32ba65f14 against main

Private to you: nothing of this reaches a pull or merge request unless you publish it.

*Fistron's evidence alone.*

## What it does and why

No intent was given (--intent).

## Per file and function

### `shop/app.py`

Added, code: 6 lines written, 0 removed.

- **checkout** (lines 4-6), added: lines 4, 5, 6
- Outside any function: lines 1, 2, 3

### `shop/pay.py`

Changed, code: 3 lines written, 3 removed.

- **total** (lines 1-3), changed: lines 1, 2, 3
  - What it affects: lines that name it: `shop/app.py:1`, `shop/app.py:6`
  - Test files that name it: `tests/test_pay.py:1`, `tests/test_pay.py:5`, `tests/test_pay.py:9`

## Notes

- no diff coverage report: the changed lines no test ran are unknown
- no per-test coverage: the test files that name a function are shown instead
- the model was not asked: the evidence alone

# A module explained to a newcomer: what calls it, which tests name it, the team's rules here
shop $ fistron explain path shop --checkout . --no-model | head -16
# shop explained

*Fistron's evidence alone.*

## `shop/__init__.py`

Code, 0 lines.

## `shop/app.py`

Code, 6 lines.
- **checkout** (lines 4-6)

## `shop/pay.py`

Code, 3 lines.

Before you submit: your change explained

In the working copy of your branch:

fistron explain change --base origin/main --intent "Give a discount on the total"

You get, per file and function:

All of that is Fistron’s evidence. When your configuration has a model for the role explainer, it writes the plain-language text, marked as the model’s.

Add --line-by-line to have the changed lines explained in detail, and --level beginner when the language or the codebase is new to you.

From your coding assistant, ask “Explain my change with Fistron”: it calls the tool explain_change.

In the local UI, Become a developer does the same without a terminal: in Explain my change, give your Working copy and The branch it goes to, what you were asked to do if you like, Line by line if you want the lines explained, and Keep it in my private space to keep it. Line by line for a beginner explains every command, function, method and step the changed lines use, with its arguments and flags, and names where each is defined as path:line when Fistron finds its definition in the working copy (a step by the step definition its text matches). Explain my change shows the explanation below; nothing of it is kept unless you asked, and nothing goes into the workspace.

In a control plane, Become a developer explains a branch or a pull or merge request on a project’s agent, without a working copy:

  1. In Explain my change, choose the Project whose agent reads the repository, give the Repository (owner/name) and Your branch, or its request’s number.
  2. Optionally give The branch it goes to (else the repository’s default branch), What you were asked to do, Line by line, and whether it is In words, with the model of the role explainer.
  3. Click Explain my change. The agent fetches the two branches and explains the change. It is listed below the form with its state. A request’s number (or its link) is read from the code host: the agent explains the request’s own diff, against the commit the request is based on, whether it is open, merged or closed, and says when it is merged or closed. A branch that is not in the repository is looked for in your fork (name it you:branch) or in the forks the agent reads, and the explanation says where it was found.
  4. Open shows the explanation, Keep keeps it in your private space, Delete deletes what you asked and its result.

Only you see what you asked and its explanation: not the project’s members, not your organisation’s admins. The project’s work list does not show it. The audit trail says only that you asked, not what.

Check that you understand it

fistron explain check --base origin/main

Fistron asks a few questions about your change. Answer them in your own words: nothing grades them, and they stay yours. When you confirm that you understand your change, Fistron prints a comment to post on your pull or merge request. Your team’s change policy may require that confirmation; the review then reports a missing one like missing evidence. Confirm after the review if you like: the project’s agent reads the request’s comments again at its next review run, and the review drops the finding and is published again, without a new commit.

Your learning path

fistron explain learning

What to learn next, from your own changes: a team rule that keeps coming up, a language you keep asking about line by line, a part of the code you keep changing. fistron explain forget deletes everything you saved.

New in the team

fistron explain path pay/

A module, a service or a directory explained the same way: its functions, who calls them, what tests them, the team’s rules that apply.

In the GUI

Open Grow your capacity and become a developer under Transformation and expansion, in the local UI and in a control plane. It lists what you saved; Open shows an explanation, and Your learning path what to learn next. Delete removes one, Delete everything all of it.

An explanation of a change is shown as its code (ADR 0153 part H): each changed file’s lines as its diff shows them (written, removed and 3 lines around them), with the explanation beside the lines it explains. On a phone the note is under its line.

The same view is in Ready for review (Show the code with its notes) and in a request’s review in a control plane (Show the code with its explanation). The explanation keeps the changed lines’ text only where the explanation is kept: your private space, or the review of the request.

To keep an explanation in your account of the control plane, save it with --control-plane <url> and your personal API token in FISTRON_CONTROL_PLANE_TOKEN (Create an API token). Only your account can open it: the control plane checks it for every request and its database shows the rows to your account only.