FarkiBot Reference
Technical reference for FarkiBot, Farkitect’s AI assistant. For guidance, see How to set up FarkiBot and How to choose an LLM.
Opening FarkiBot
Section titled “Opening FarkiBot”| Action | How |
|---|---|
| Open the panel | View > FarkiBot, or Ctrl+Shift+K |
| Open settings | The gear icon in the FarkiBot toolbar |
FarkiBot is a dockable panel that opens as a tab in the centre, beside your diagrams. It can be dragged, split, and (on desktop) popped out like any other panel.
| Task | Writes to project | Minimum role | Output |
|---|---|---|---|
| Ask | No | Viewer | A streamed answer in the panel |
| Chart | No | Viewer | A chart in the panel, exported as PNG, SVG, PDF or a Vega-Lite file |
| Report | No | Viewer | A Markdown document, saved with the download icon (tooltip Save as and the file name) |
| Generate M1 | On import only | Contributor | A staged model package |
| Modify M1 | On replace only | Contributor | A diff, then a replaced package |
| Generate M2 | On import only | Admin | A staged metamodel package |
| Modify M2 | On upgrade only | Admin | A diff, then the metamodel upgraded in place |
Tasks a role can’t run are shown disabled, labelled (needs contributor access) or, for Generate M2 and Modify M2 when you are a contributor, (needs admin access), rather than hidden.
Your LLM choice is remembered per task, so Ask and the generation tasks can each keep their own.
Report kinds
Section titled “Report kinds”| Report | Purpose |
|---|---|
| Model Overview | Narrative document for stakeholders who need to understand the estate without opening the model |
| Gap & Risk Assessment | Prioritised findings, each with evidencing model content, impact, and a recommendation |
| Reference Documentation | Systematic walkthrough of every package in scope |
| Executive Summary | One page, business language, conclusion first |
A brief is optional for all four. Saved files are named from the document’s own title.
Charts
Section titled “Charts”A chart’s numbers are counted by Farkitect, not the LLM. FarkiBot is told what the chart tables hold (each column and the values in it), never the rows, and answers with a Vega-Lite specification that names a table and says how to filter, group and count it. Farkitect checks it and draws it from the real rows. Tutorial: Draw charts.
The tables
Section titled “The tables”Built in the browser from the part of the project under Scope: (only the packages in it, though relationships to elements outside it still name them), from the same rows the generation tasks’ export uses.
| Table | One row per | Columns |
|---|---|---|
elements |
Model element, owned elements included (not relationships) | id, name, type, metamodel, layer (the type’s Palette group), package (its path), parent (the owning element), hasNotes, outgoing, incoming, degree (relationships in plus out), diagramCount, and one column per property type, named after it |
relationships |
Relationship | id, name, type, metamodel, source, sourceId, sourceType, sourceLayer, target, targetId, targetType, targetLayer, package, and its property values |
values |
Property value that is set | elementId, element, type, property, value, number (when the value is a number), date (when it is a date) |
views |
Diagram, catalog, board and chart view | id, name, kind, package, nodeCount, edgeCount |
placements |
Element shown on a diagram | elementId, element, type, diagram, diagramId |
types |
Element type and relationship type, in the metamodels charted or used | name, metamodel, kind, layer, abstract, propertyTypes, instances |
enumValues |
Value of each enumeration property, in the enumeration’s order, used or not, plus a (No value) row | table (elements or relationships), property, value, order (0 for (No value)), count, isEmpty |
Enumeration values are shown by name. Beside each enumeration property’s column is a “… order” column with each value’s position, so a chart sorted by it follows the enumeration when its values are reordered in the metamodel; enumValues gives every value, including those nothing has yet, so a chart drawn from it gains or loses bars as values are added or removed. Rich text values are shown as plain text. A property type called the same as a built-in column (such as Name) gets “ (property)” after it, and ., [ and ] in a property type’s name become _.
What is sent
Section titled “What is sent”| Data only | Sent to the provider |
|---|---|
| Off (the default) | The tables’ description, the Markdown export of the packages (as for Ask), any attached .md or .txt files, and your request |
| On | The tables’ description and your request |
The description lists each table’s row count and, for each column, its kind and values: up to 30 values for a text column (10 for names), and the lowest and highest for a number or date. It is a few thousand tokens whatever the model’s size. No rows are sent either way.
Checks
Section titled “Checks”| Check | What it refuses |
|---|---|
| Data | Data other than one of the tables by name. Inline values, url, datasets, the href channel and the image mark are refused, so a chart can’t fetch anything |
| Fields | A column that isn’t in the table, or made by an earlier step. The message suggests the nearest column |
| Values listed by hand | A list of values in a sort order or an axis’s domain: it would stop following the model when a value is reordered, renamed or added. FarkiBot is told to sort by the “… order” column, or draw from enumValues, instead |
| Schema | Anything that isn’t valid Vega-Lite |
| Dry run | A chart that comes out empty (the message lists the values the column holds), an expression that fails, or more than 200 bars, cells or slices |
Colours, fonts, sizes and config in a specification are removed, not refused: charts use Farkitect’s theme in light and dark mode.
Limits
Section titled “Limits”| Limit | Value |
|---|---|
| Attempts per chart | 3 in all: the first, plus up to 2 corrections |
| Bars, cells or slices in one chart | 200 |
| PNG resolution | 2× screen |
The chart toolbar
Section titled “The chart toolbar”| Button | What it does |
|---|---|
| Enlarge | Opens the chart in a large window with the same toolbar, where it can be zoomed and panned: Ctrl+wheel, − / 100% / + / Fit, drag to pan, double-click to fit. See Zoom and pan |
| Light or dark | Shows this chart in the other theme, as on a diagram. Not saved. Exports use the theme shown |
| Share | Export as PNG…, Export as SVG…, Export as PDF…, Copy to Clipboard, as on a diagram; then Export as Vega-Lite file…, with the data and theme written in, and Export Data as Excel Workbook… |
| Chart / Data | Switches between the chart and its data, in the same place. Data shows What’s drawn (one row per bar, point or slice, after the chart’s filters and grouping, one table per part of the chart) or Rows used (the model’s rows the chart read), in a grid you can sort, search and resize. Copy puts the table on the clipboard to paste into a spreadsheet or document; Export saves an Excel workbook (a sheet per part, plus the rows used) or the table as CSV. Click a row that stands for an element to select it. See Chart — Data |
| Spec | The Vega-Lite specification, read-only, with Copy |
| Redraw from the project | Only for a model too large to follow live: one whose elements, relationships, property values and diagram shapes come to more than about 12,000 together. Reads it again and redraws |
| Save as View… | Keeps the chart in the project as a chart view. Contributors in a model, admins in a metamodel |
| Update “Name” | Only on a chart drawn while a chart view is being changed: replaces that view’s chart, after a confirmation |
Chart views
Section titled “Chart views”A chart saved with Save as View… becomes a chart view: a view in a package, beside diagrams, catalogs and boards, that anyone in the project can open. See Save a chart as a view.
| What is kept | The specification (no data), the request it was made from, FarkiBot’s note, and its Scope |
| Scope | The part of the project it charts, as a catalog’s or board’s scope: every model, or the models and packages ticked. It starts as the scope FarkiBot drew it from, and changes on its toolbar or in Properties. Update takes the new chart’s scope too |
| Drawn | From the live model each time it is shown, with no FarkiBot run and no key |
| Changed | Through FarkiBot only: Ask FarkiBot to change on its tab, then Update “Name” on the new chart. The next request is sent with the view’s request and chart as the earlier turn, as any follow-up is |
| Checked when stored | One JSON object of at most 64 KB that keeps the Data rule above. The server and .farki import refuse anything else; the full check runs in the browser before saving and each time it is drawn |
| In the Markdown export | Listed by name, with the request it was made from, so Ask and Report know which charts exist |
A chart in the conversation keeps its specification, not its data. It is drawn from the project live, so it changes as soon as the model does, as a board does; after a reload it is drawn from the project as it is then. If a column it uses no longer exists, it says so instead.
Providers
Section titled “Providers”| Provider | Reached | Notes |
|---|---|---|
| OpenRouter | Directly from the browser | Recommended. One key, 300+ models, free tier. Reports per-run cost. |
| Anthropic | Directly from the browser | Under Advanced. Stronger privacy posture — no gateway in the path. No cost reporting. |
| Google Gemini | Directly from the browser | Under Advanced. No cost reporting. |
| Custom endpoint | Directly from the browser | Any OpenAI-compatible base URL — Ollama, LM Studio, an internal gateway. No web research. |
OpenAI has no direct option — its API does not permit browser connections. Add an OpenAI key inside OpenRouter’s BYOK settings instead.
Hosts the app is permitted to contact
Section titled “Hosts the app is permitted to contact”Enforced by Content-Security-Policy on both the web and desktop apps:
openrouter.aiapi.anthropic.comgenerativelanguage.googleapis.comlocalhost:* (custom/local endpoints)…plus Farkitect’s own Convex backend. Any other destination is refused by the browser.
Attachments
Section titled “Attachments”| Task | Accepted |
|---|---|
| Ask, Report | .md, .txt |
| Generate M2, Generate M1, Modify M1, Modify M2 | .md, .txt, .pdf, .docx, .farki |
- PDFs are sent to the model natively — no text extraction step
.docxis read from the file directly, mapping heading styles to Markdown headings and list paragraphs to bullets.doc(the pre-2007 format) is not supported — save as.docxor PDF
Key storage
Section titled “Key storage”| Setting | Behaviour |
|---|---|
| Session only (default) | In memory; cleared when the tab closes |
| Remember on this browser | AES-256 ciphertext in browser storage, wrapped by a non-extractable browser-held key |
Keys are masked on entry, with a Show / Hide toggle for the key being typed. After saving, a key displays only its last 4 characters and cannot be revealed. Keys are per browser, per device, and are never sent to Farkitect’s servers. The provider, model and base URL are not secret, and are saved to your Farkitect account.
Limits
Section titled “Limits”| Limit | Value |
|---|---|
| Attempts per generation | 3 in all: the first, plus up to 2 repairs |
| Staged packages retained | 10 per project (oldest evicted) |
| Staged package persistence | Survives page reload |
| Run lifetime | The browser tab — a reload or close ends a run |
| Free-model requests (OpenRouter) | 50/day, or 1,000/day once you’ve purchased $10+ of credits |
| Output token limit | Model-dependent; raised automatically when a generation runs out of room |
Cost reporting
Section titled “Cost reporting”| Provider | Token counts | Cost |
|---|---|---|
| OpenRouter | Yes | Yes |
| Anthropic | Yes | No — shows “cost not reported” |
| Google Gemini | Yes | No — shows “cost not reported” |
| Custom endpoint | Varies | Usually not |
A researched answer often costs several times a plain one, because the LLM runs several searches and reads the results. In our testing, research added about a quarter to the cost of generating a metamodel.
A summary of each run (LLM, time, tokens, cost, web research, attempts) opens when the run finishes, and can be reopened from the line under an answer or on a staged card.
Web research
Section titled “Web research”| Property | Value |
|---|---|
| Available for | Ask, Report, Generate M1, Modify M1, Generate M2, Modify M2. Not Chart: a chart’s numbers come only from the project |
| Default | Off. Chosen per task; not remembered between sessions |
| While it is on | A notice above the text box, and the send button says “with web research” |
| Where the search runs | On the provider’s servers, inside the completion call. The LLM writes the search terms |
| Searches per run | Up to 8 on OpenRouter, up to 4 on Anthropic. A generation run searches on its first attempt only |
| Supported on | OpenRouter models that support tool use, current Anthropic models, and Google Gemini models |
| Not supported on | Custom / local endpoints; OpenRouter models without tool use |
| In the LLM list | Models that can research carry the researcher icon. With research on they are listed first |
| Citation | Ask and Report: every web claim carries an inline link. Generation: each web-sourced element names its source in its notes |
| Unconfirmed content | In generated models, marked “Not verified by web research.” and given no link |
| Marking | Answers and staged packages that used research carry a Web badge |
Farkitect’s servers are not in the path, and no new network destination is contacted — the provider hosts already on the allow-list perform the search.
Provenance
Section titled “Provenance”Every generated package carries a provenance note recording:
- The model that produced it
- The provider
- A prompt hash
- The date
- Whether web research was used, with the provider’s list of sources when it reports one
Runs are also recorded in the project’s governance metadata, including whether web research was used.
Modify M1 — the replace sequence
Section titled “Modify M1 — the replace sequence”| Step | Stops the replace if |
|---|---|
| 1. Freshness check | The target model changed since the rewrite was generated |
| 2. Confirmation dialog | You decline |
| 3. Snapshot save | The snapshot can’t be confirmed written — you’re offered retry, replace-without-snapshot, or abandon |
| 4. Replace | — |
Snapshot filename format: <Model Name> (before FarkiBot modify YYYY-MM-DD HHMM).farki
Snapshot confirmation by browser: Chrome and Edge report whether the file was written. Firefox and Safari do not — a started download is all the app can observe.
M2 metamodels are excluded from this task: they have Modify M2. See How FarkiBot Works.
Modify M2 — the upgrade sequence
Section titled “Modify M2 — the upgrade sequence”| Step | Stops the change if |
|---|---|
| 1. Freshness check | The metamodel changed since FarkiBot read it |
| 2. The upgrade’s plan | You close it, or a removal in use is left undecided (Retire is the default) |
| 3. Project backup | The backup isn’t saved |
| 4. Apply | — |
Upgrade file name in the upgrade history: <Metamodel Name> (FarkiBot modify).farki. Sent with the request: the metamodel’s .farki and what the project’s models use of it, as names and counts. See How to modify a metamodel with FarkiBot.
Error messages
Section titled “Error messages”| Message | Cause and fix |
|---|---|
| “Your API key was rejected” | Wrong or revoked key. Re-paste it in FarkiBot Settings and use Test connection. |
| “…out of credits” | Top up at your provider (OpenRouter: Credits page). |
| “…hidden reasoning” errors | A reasoning model burned its output budget thinking. FarkiBot already tried raising the limit and disabling reasoning, so this means those recoveries were exhausted. Pick a different model. |
| “Generation failed validation” | The model couldn’t produce a valid model file after 3 attempts. Retry with a starred model; the raw output is downloadable for salvage. |
| “Generation interrupted” | Runs live in the browser tab — a reload or tab close ends them. Try again resubmits the same brief. |
| “…cut off at the output token limit” | FarkiBot raises the limit automatically up to the model’s maximum, then asks for a smaller complete file. If it persists, narrow the brief or use a model with a larger output cap. |
| “…remaining credit can’t cover the full output budget” | Your key’s spend cap can’t pre-authorise the full output budget. Raise the cap or top up. |
| “Rate-limited” | Free models allow 50 requests/day (1,000 once you’ve bought $10+ of credits). Wait, or use a paid model. |
| Empty model list on a custom endpoint | The gateway has no /models route. Type the model id directly. |
| “The model returned this package unchanged” | A Modify M1 run produced no changes. Try a more specific instruction. |