AI Coach
AI Coach
The AI Coach is a built-in assistant that uses your configured AI language model (LLM) to observe your information model and provide contextual guidance. Observations appear in the Coach panel, a slide-in panel on the right side of the screen, rendered as readable text.
The coach is entirely optional and requires at least one LLM service to be configured with a valid API key (or Ollama for a local, free option).
Setting Up
Step 1: Configure an AI Service
Go to Tools > Preferences > AI Services and enter an API key for one or more of the supported services:
| Service | Notes |
|---|---|
| ChatGPT (OpenAI) | Requires OpenAI API key |
| Claude (Anthropic) | Requires Anthropic API key |
| Gemini (Google) | Requires Google AI Studio key |
| Groq | Requires Groq API key; fast inference |
| Azure OpenAI | Requires Azure subscription |
| OpenRouter | Routes to multiple providers with one key |
| Mistral | Requires Mistral API key |
| Ollama | Local models; no API key or internet required |
Step 2: Enable the Coach
Go to Tools > Preferences > AI Agents > Coach tab and configure:
| Setting | Description |
|---|---|
| LLM | Choose which AI service to use, or leave at (auto-detect) to use the first configured service. |
| Assess model on project open | Triggers a model summary when a project file is opened. The coach asks a guiding question about scope, quality, or open todos. |
| Assess model after save | Triggers a brief check after each file save. The coach asks one focused question, or stays silent when nothing is noteworthy. |
| Guide expression entry | Gives direct feedback in the expression editor when you finish typing a fact expression. Checks whether the expression is elementary and atomic. |
| Interpret well-formedness results | After a well-formedness check, the coach summarises the dominant issue type and suggests a concrete next step. |
| Message timeout (s) | How long the coaching panel remains visible before auto-hiding, when Hide the message after that time is ticked. Otherwise a message stays until you close the panel yourself. |
| Notify through Windows while the coach panel is closed | When you closed the coach panel, a new message arrives as a Windows notification instead; clicking it reopens the panel. |
| Persona | Who the coach is. Every persona has its own text for each coaching moment; see Personas below. |
Under the settings, the prompt of the selected persona and moment is shown and can be edited; see Customising Prompts below.
Personas
The coach speaks through a persona, chosen on the Coach tab. A persona is a complete set of prompts: one system prompt that states who the coach is, plus one prompt for each coaching moment (project open, save, a series of edits, expression entry, well-formedness results, and Ask Coach Now). Switching persona changes all of them at once.
| Persona | Style |
|---|---|
| Socrates (default) | The Socratic teacher. It never answers; it asks a single, focused question designed to raise awareness of something you have not yet considered. The goal is to develop your own modeling instinct rather than to receive a ready-made solution. Two moments still get a direct answer: expression entry (what is wrong, with a corrected example) and well-formedness results (the dominant issue and a next step). |
| Mentor | Pairs one probing question with one concrete, practical suggestion and says in a sentence why it matters. Answers plainly when asked. Warm and encouraging. |
| Reviewer | Asks no questions. States findings: the element, the defect, and what to change. Direct and brief, with a VALID/INVALID verdict on expressions. |
| Domain expert | Reacts as the business user who does this work every day and is reading a model of it. Knows no modeling theory, only how things are really said and done, and tells you where the wording stops sounding like them. Never uses modeling jargon. |
| Custom | Your own prompts. Starts as a copy of Socrates; edit it on the Coach tab. |
The persona is a personal preference: it is stored with your CaseTalk settings, not with the model, so two modelers can coach the same model in different voices.
Invoking the Coach Manually
Select Run > Wizards > Ask Coach Now to request an immediate assessment of the current model. The coach will ask a guiding question about the model scope, quality, open todos, or structural concerns.
When the expression editor is open, Ask Coach Now instead assesses the current expression directly.
The Coach Panel
Coaching feedback appears at the bottom of the right panel. The panel:
- Slides in automatically when feedback arrives
- Renders the response as formatted text (supports bold, lists, and code)
- Closes automatically after the configured timeout, or can be dismissed manually
Expression Coaching
When Guide expression entry is enabled and you are editing a fact expression, the coach automatically assesses the expression after you stop typing. It checks whether the expression is:
- Elementary - describes a single, indivisible fact
- Atomic - cannot be decomposed into simpler facts without loss of meaning
If the expression meets both criteria, no feedback is shown. If the coach detects a concern (such as a compound or redundant fact), it states the issue and provides a corrected example.
See Expression Unification for guidance on well-formed fact expressions.
Chat Starters
The AI Chat sidebar (View > Chat) ships with two pre-seeded coaching prompts you can use directly in conversation:
- Interview (Fact Modeling)
- Puts the AI in strict interviewer mode. It asks at most two questions per turn and never provides answers or examples. Use this when you want to be guided to a design decision rather than handed one.
- Critical Reading
- Prompts the AI to identify five things a critical reader would question in your model description - formulated as questions you should be able to answer. Useful for reviewing a model narrative or verbalization.
Both prompts can be edited or extended in the Chat sidebar prompt list.
Customising Prompts
Every prompt of every persona can be edited on the Coach tab: pick the persona and the moment, change the text in the box, and press OK. The next coaching message uses the new text; Cancel discards the edits. The Shipped text button puts the original text of that prompt back.
Behind the tab, CaseTalk keeps the prompts in:
%APPDATA%\CaseTalk15\CoachPrompts.ini
The file holds one section per persona and moment, named [persona.moment], for example [mentor.save]:
| Moment | When it is used |
|---|---|
system |
Who the coach is; sent in front of every coach request |
reopen |
Project opened |
save |
Model saved |
transactions |
After a series of model edits |
expression |
Expression entry feedback |
wellformedness |
Well-formedness results |
manual |
Ask Coach Now |
Persona names in the file are socrates, mentor, reviewer, expert and custom. Delete a section (or leave it empty) to revert to the shipped text for that persona and moment. A prompt you customised in an earlier version (a plain [save] section, for instance) is carried over into the Custom persona.
Notes
- The coach shares your LLM session; it clears history before each assessment to keep requests self-contained.
- All coaching responses are delivered in the locale of the active model. If no model is open, the response language follows the LLM default.
- Coaching is best-effort: if the LLM is unavailable or returns an empty response, nothing is shown and no error is reported.
- Assessments happen on a background thread and do not block the UI.
- The (auto-detect) LLM option picks the first configured service with a valid API key.
| Configuration | |
|---|---|
| Dialogs | Environment · Project Options · Tools Options · GLR Options · Custom Attributes · Grading |
| Reference | Customization · Bookmarks and URIs · Multi Lingual · MCP Client |