How to modify a model with FarkiBot
Modify M1 changes a model you already have. Describe the change in plain language, and FarkiBot rewrites the model with it applied — then shows you a diff before anything happens.
Before you start, set up FarkiBot. You need contributor access or above.
Modify a model
Section titled “Modify a model”- Open View > FarkiBot and switch the task dropdown to Modify M1
- Choose the model in the Model dropdown
- Describe the change
- Press Enter
- Review the diff
- Click Replace Model, and confirm
Write the instruction
Section titled “Write the instruction”Say what should change, in the terms you’d use with a colleague:
- “Add a Subscriptions subject area with the entities it needs”
- “Rename these entities to match the new glossary terms”
- “Split the Customer entity into Customer and Customer Contact”
- “Add a Lifecycle Status of Retiring to everything scheduled for decommission”
- “Remove the reporting subject area entirely”
The metamodels sent with the request
Section titled “The metamodels sent with the request”FarkiBot sends the model’s metamodels with every request, so new elements get the right types, property names and values. They’re not something you choose: they’re the metamodels the model imports, plus any it already uses without importing them. The header shows them, beside Model. Each is read fresh from the project, so you can change a metamodel and run Modify M1 straight away.
- Use the metamodel’s property names, or describe them. FarkiBot writes property values using the metamodel’s names exactly. If your instruction says “a summary of the relationship” and the property is called Relationship History, it uses Relationship History and says so in the element’s notes. Anything your instruction asks for that no property holds goes in the notes.
- Colours and icons aren’t sent. The new elements look as the metamodel says when they’re drawn, so FarkiBot doesn’t need them. Each type’s default box size is sent, so boxes on a diagram come out the right size.
- A missing metamodel stops the run. If the model imports a metamodel that’s no longer in the project, FarkiBot names it and sends nothing.
Use web research
Section titled “Use web research”Turn on Web research below the instruction when the change needs facts from outside the model, for example “add the regulators that apply to these services”.
| Off by default | A notice sits above the instruction while it is on, and the button reads Modify with web research. |
| It serves the change you asked for | Nothing already in the model is altered because of something found on the web, unless your instruction asked for that. |
| Web content is marked | Each element taken from the web says so in its notes, with a link to the source. The package notes record that web research was used. |
| Unconfirmed content is marked too | If you asked for something the search could not confirm, it is included with notes that begin “Not verified by web research.”, and it carries no link. |
| It searches once per run | Only the first attempt searches. If FarkiBot has to correct the file, it does not search again. |
The diff shows added and removed elements as usual. Open an added element’s notes, after import, to see its source.
Read the diff — this is the important part
Section titled “Read the diff — this is the important part”FarkiBot regenerates the entire model rather than editing it in place. That’s what makes the change atomic and undoable, but it also means the model has to faithfully reproduce everything you didn’t ask about.
The diff is how you check that it did.
| In the diff | What it means |
|---|---|
| Removals are shown first, in red | If you asked only for additions and see a removal, that’s the model having dropped something. Discard and try again, or use a stronger LLM. |
| Changes only (the default view) | Just what differs, with enough surrounding structure to place it. |
| Show all | The whole model, changes marked in place. |
| No changes | The model did nothing. Try a more specific instruction. |
| What counts as a change | Each row is compared only on its name and one line of detail: an element’s type, a relationship’s type and ends, a diagram’s node and edge counts. A change only to property values, notes or diagram positions does not show. Check those in the Source tab. |
A rename appears as a removal plus an addition, because the diff matches on names — that’s expected, and it’s why removals are worth reading rather than scanning.
The three gates before anything is replaced
Section titled “The three gates before anything is replaced”Clicking Replace Model does not replace the model. It starts a sequence, and any step can stop it:
- FarkiBot checks the model hasn’t changed since it generated the rewrite. If a teammate edited it in the meantime, nothing is replaced — otherwise their work would vanish silently. Run the change again over the current model.
- You confirm. A dialog names the model, repeats what changes, and calls out any removals. Nothing has happened at this point.
- A snapshot is saved —
Library Model (before FarkiBot modify 2026-08-01 1432).farki. This is your undo: import it back to restore the previous version.
Only then is the model replaced.
If the snapshot doesn’t get saved
Section titled “If the snapshot doesn’t get saved”If you cancel the save dialog, or it fails, FarkiBot stops and tells you nothing has been replaced. You then choose:
- Try saving again
- Replace without a snapshot — which cannot then be undone
- Abandon the change
It will not quietly continue. This matters because a browser’s file-save API is allowed to report success it can’t actually guarantee.
One browser caveat worth knowing: in Chrome and Edge, FarkiBot can tell whether the snapshot was really written. In Firefox and Safari the browser gives no such signal, so a download that started is all it can see — check your downloads folder before relying on it.
Metamodels have their own task
Section titled “Metamodels have their own task”The Model dropdown lists M1 models only. To change a metamodel, use Modify M2.
Modify M1 replaces the model it changes. Replacing a metamodel that way would leave every model built on it without types, and neither the diff nor the snapshot would show it, because the damage lands in other packages. Modify M2 instead applies its result through the metamodel upgrade, which updates the metamodel in place and keeps every model element and its type.
Relationships with other models are kept
Section titled “Relationships with other models are kept”A model can have relationships with elements of other models in the project. Its file can’t hold them, so FarkiBot is sent a list of them beside the model, read-only: it can follow an instruction about them (“remove whatever Model 2 depends on”), but it can’t change them.
When you replace the model, Farkitect keeps them itself. Before anything changes, the confirmation says what joins the model to the rest of the project and what will be kept: “3 relationships with other models will be re-attached; 1 can’t be…”. After the replace, each is re-attached to the new element that matches the old one (the same element in FarkiBot’s file, else one of the same name and type), and so are this model’s shapes on other models’ diagrams and other models’ shapes on its own diagrams.
A relationship whose element is gone from the new version is deleted, and the element at its other end gets a note saying what it was: “Was: Model 2 BA 1 associated with Model 1 Data Object (Association) with Model 1 Data Object in Model 1, lost when Model 1 was replaced on 25 November 2026.” Its shapes and lines on diagrams go with it. If a replace stops part-way, importing the snapshot puts everything back. File › Import’s Replace works the same way.
View links across packages are not kept
Section titled “View links across packages are not kept”FarkiBot rewrites one model package and replaces it. View links inside that package survive when the LLM reproduces them. The diff doesn’t list view links, so check them in the Source tab (each diagram’s links) before you replace. Links between that package and views outside it are lost by the replace, in both directions:
- a link on one of this model’s diagrams to a view in another package
- a link on a diagram elsewhere to a diagram, catalog or board in this model
Recreate those afterwards by dragging the views back onto the diagrams. The snapshot taken before the replace still holds the links inside the package.
Attachments and web links are lost
Section titled “Attachments and web links are lost”The replace also deletes the model’s attachments: images, documents and other files attached to its elements. The snapshot is a plain .farki file, so it does not hold them either. Export the package with its attachments first if you need to keep them.
Web links to the model’s diagrams, catalogs and boards stop working, because those views are replaced by new ones. Copy new links after the replace.
If the run fails
Section titled “If the run fails”FarkiBot checks each reply and, if something’s wrong, sends the problems back for the LLM to correct, up to three attempts in all. If none passes, the card lists each attempt’s errors, the last one open, so you can see whether the LLM was getting closer. An attempt marked cut off at the output limit ran out of room before finishing. Download all attempts saves every reply with the corrections sent between them.
Very large models may not fit
Section titled “Very large models may not fit”The whole model has to come back from the LLM in one response. If it can’t, FarkiBot says so and changes nothing rather than applying a partial rewrite.
If you hit this, split the work: modify a smaller package, or make the change by hand.
Choosing a model for this task
Section titled “Choosing a model for this task”A change rewrites the entire model, which makes Modify M1 the most demanding thing FarkiBot does — more demanding than generating the same model from scratch, because preservation is now part of the job. Starred models handle it best; a weak model may drop content it was asked to keep.
The diff will show you if that happened, which is exactly why the diff exists. See How to choose an LLM.
Related
Section titled “Related”- How to generate a model
- How to choose an LLM
- How FarkiBot Works
- How to import a .farki package — restoring from a snapshot