Skip to content

Agents

Agent overview for the Apple Text plugin.

Reference, audit, and diagnostic agents

Agents run in isolated context. Use reference agents for focused API lookups, the auditor for code review, and the diagnostics agent for debugging broken text.

Apple Text ships 6 agents: 4 domain reference agents, 1 code auditor and 1 diagnostic.

Domain reference agents load relevant skills on demand and answer specific questions in isolated context. The router skill and /apple-text:ask command launch these automatically when a reference lookup is needed.

Look up editor feature APIs — Writing Tools, text interaction, text input, undo/redo, find/replace, pasteboard, spelling, drag-and-drop, accessibility, and Dynamic Type.

  • specific API lookups and reference questions
  • implementation guidance for a known subsystem
  • getting a focused answer without flooding the main conversation
  • a focused answer extracted from the full reference
  • exact API signatures and code examples
  • isolated context that keeps the main conversation clean

Look up SwiftUI bridging, UIViewRepresentable wrappers, TextEditor iOS 26+, AppKit vs UIKit differences, TextKit 1 vs 2 selection, Core Text, Foundation text utilities, and parsing.

  • specific API lookups and reference questions
  • implementation guidance for a known subsystem
  • getting a focused answer without flooding the main conversation
  • a focused answer extracted from the full reference
  • exact API signatures and code examples
  • isolated context that keeps the main conversation clean

Look up attributed string APIs, text formatting attributes, colors, Markdown rendering, text attachments, line breaking, and bidirectional text.

  • specific API lookups and reference questions
  • implementation guidance for a known subsystem
  • getting a focused answer without flooding the main conversation
  • a focused answer extracted from the full reference
  • exact API signatures and code examples
  • isolated context that keeps the main conversation clean

Look up TextKit 1/2 APIs, layout mechanics, viewport rendering, text measurement, exclusion paths, fallback triggers, and text storage patterns.

  • specific API lookups and reference questions
  • implementation guidance for a known subsystem
  • getting a focused answer without flooding the main conversation
  • a focused answer extracted from the full reference
  • exact API signatures and code examples
  • isolated context that keeps the main conversation clean

Use this agent when the user mentions TextKit review, text view code review, or asks to scan for TextKit anti-patterns. Automatically scans Swift/Objective-C code for TextKit issues — detects TextKit 1 fallback triggers, deprecated glyph APIs, missing editing lifecycle calls, unsafe text storage patterns, and Writing Tools compatibility problems.

  • findings-first reviews of editor code
  • scanning a codebase for TextKit anti-patterns
  • focused audits where file references and fix directions matter
  • findings grouped by severity
  • file references for each issue
  • one concrete fix direction per finding
  • TextKit 1 fallback triggers
  • deprecated glyph and layout APIs
  • missing editing lifecycle calls
  • unsafe text storage patterns
  • Writing Tools compatibility problems

Use this agent when the user describes a broken text symptom — stale layout, editing crashes, TextKit 1 fallback, Writing Tools not working, rendering artifacts, typing lag, or text content loss. Autonomously reads the user’s code, follows a diagnostic decision tree, and returns root cause + fix.

  • findings-first reviews of editor code
  • scanning a codebase for TextKit anti-patterns
  • focused audits where file references and fix directions matter
  • findings grouped by severity
  • file references for each issue
  • one concrete fix direction per finding
  • TextKit 1 fallback triggers
  • deprecated glyph and layout APIs
  • missing editing lifecycle calls
  • unsafe text storage patterns
  • Writing Tools compatibility problems

If the user just asked for a review in natural language, start with apple-text-audit. Reach for the agent page when you want a direct tool handoff instead.