Preview Coming soon. This feature is still being built, so names and details may change before it ships.

Agents & models MCP flows and workflows

MCP flows and workflows

How your team handles a bug, a feature or a review lives in plain files under .ingot, and every agent run follows them. On each turn Ingot picks the flow and the workflow that match the task, gives them to the agent, blocks the MCP tools your policy denies and asks before the tools behind an approval gate. Task context under the prompt lists each file it used.

Task context of a bug fix: the bug flow and the three policy filesTask context of a bug fix: the bug flow and the three policy files
Task context of a bug fix: the bug flow and the three policy files

What is read

FolderFilesWhat the agent gets
.ingot/mcp-flow/flows/<name>.flow.jsonthe one flow that matches the task: its steps in order, with the agent role and MCP tools of each step
.ingot/mcp-flow/policies/permissions.json, approval-gates.jsonwhich MCP tools may run, and which ask first
.ingot/mcp-flow/registry/integrations.jsonshort names for your MCP servers (jira for the atlassian server). Each one shows ready when its server is in .ingot/mcp.json, or not configured when it is not. Credentials stay in your keychain, never in these files
.ingot/workflows/<name>.mdthe one workflow that matches the task: its steps as written

How the flow and workflow are picked

Each turn, for flows and workflows alike:

  1. A keyword from triggers.keywords (flows) or keywords (workflows) found in your message wins.
  2. Otherwise the task type decides: feature, bug, review, refactor, test or docs, the same types as Core rules by task type.
  3. Ties go to the higher priority, then to the name.

The files are read again on every turn, so an edit reaches the very next turn.

A flow

{
  "name": "bug",
  "description": "Fix a reported bug from its ticket",
  "triggers": { "tasks": ["bug"], "keywords": ["crash"] },
  "tools": ["jira/get_issue"],
  "steps": [
    { "id": "understand", "title": "Read the ticket", "agent": "debugger", "tools": ["jira/get_issue"] },
    { "id": "deliver", "title": "Open the PR", "tools": ["github/create_pull_request"], "approval": true }
  ],
  "priority": 0
}

A step with "approval": true asks before its tools run.

Policies

// policies/permissions.json
{ "default": "allow", "allow": [], "deny": ["github/delete_*", "slack/post_message"] }

// policies/approval-gates.json
{ "gates": [ { "tools": ["jira/transition_issue"], "reason": "Moving a ticket" }, { "step": "deliver", "tools": ["github/*"] } ] }
  • deny always wins. With "default": "deny", only the tools in allow may run.
  • A blocked call never reaches the agent's tools. The agent is told which file blocked it.
  • A gated tool shows the usual approval card, and an approval covers that one call.
  • Tool patterns are server/tool with * wildcards. A server name alone means all of its tools. An integration id from integrations.json works in place of its server name.
  • A file that isn't valid JSON is skipped, and the others still apply. Unknown keys are ignored.

A workflow

---
name: feature
description: Ticket to reviewed PR
tasks: [feature]
keywords: [ticket, story]
flow: feature
agent: developer
priority: 0
---
1. Understand the ticket
2. Plan
3. Build and test
4. Open the PR

The body goes to the agent as the steps to follow. flow and agent name the flow and the agent role it goes with.

Task context of a feature task, with .ingot/workflows/feature.md listedTask context of a feature task, with .ingot/workflows/feature.md listed
Task context of a feature task, with .ingot/workflows/feature.md listed

Files first

Nothing here is managed in Settings: you write the files, or the agent does. Files from an existing editor folder are synced into .ingot with the rest of the tree, and your own edits always win (Import an existing setup).

Turn it off

SettingDefaultWhere
ingot.mcpFlow.enabledonSettings › MCP flows and policies, Settings › Features
ingot.workflows.enabledonSettings › Workflows, Settings › Features

Off: those files are not read during a run. The files stay.

See also Context Engine, .ingot folder and Habit classes.

Steps that branch

A step can name the step after it with next (end finishes the flow), name a recovery step with onError, and be re-run with retries (up to 3) before that. The agent is told after each MCP result whether the step is done, which try is next, which recovery step runs, or that the flow stopped and why. A flow that loops past 50 steps stops. Steps that name a step that is not in the flow are listed as problems. See Workers for the local commands a role can run.