For the complete documentation index, see llms.txt. This page is also available as Markdown.

The Triton Instrumentation Agent

The whole instrumentation skill catalog behind one portable, agent-agnostic persona you point at a Salesforce org to audit, migrate, instrument, and guard it.

The individual skills each do one job. The Triton Instrumentation Agent is what you get when you package them behind a single persona: "Here's my org — instrument it." It's not a new engine and not a new product — it's the skill catalog plus a bit of orchestration glue, delivered in whatever form your coding agent understands.

Think of it as the answer to "would an agent be better than a pile of commands?" — yes, when the goal is a full rollout. You hand it a project; it decides what to run and in what order, checking in with you at the boundaries.

Agent-agnostic by construction. The agent is just three portable pieces — a system prompt (the persona and guardrails), the shared playbook (the Triton conventions the skills already encode), and a tool allow-list (read files, run sf/grep, write files on approval). Any framework that accepts those runs it. There's no dependency on a specific vendor.

What it bundles

Framework
How the agent ships

Claude Code

A subagent/persona plus the /pharos:* commands as its toolbelt.

Cursor

A custom mode (or an AGENTS.md persona) with the skills as rules/commands.

Codex CLI / OpenAI

An AGENTS.md describing the persona and the skill files it may follow.

Windsurf / others

A system prompt plus the skill Markdown, loaded as project context.

Any agent

Paste the persona prompt and point it at the skill files and the repo.

Because all five share the same playbook, the agent behaves identically wherever it runs — the only thing that changes is how you launch it.

What it does, end to end

The agent runs the full workflow the separate skills perform, in order, so you don't have to sequence them yourself:

  1. Audit — runs audit-logging read-only and presents the coverage report and a proposed plan.

  2. Migrate — where the audit found Triton.instance, runs migrate-to-2.0, surfacing every immediate-vs-buffered decision for you.

  3. Instrument — drives instrument-org through the prioritized phases, one Area per feature, stitching transactions across LWC → Apex → Flow, with a review checkpoint per batch.

  4. Guard — offers setup-standards to wire the hard findings into CI so the work can't regress.

  5. Report — leaves you a coverage summary and a list of anything it deferred for a human.

Guardrails baked into the persona

The persona isn't "instrument aggressively." It carries the same discipline the docs preach, so autonomy never becomes recklessness:

  • Human-in-the-loop stays. It approves changes at batch boundaries; it never writes hundreds of files unattended.

  • Do no harm on legacy code. It respects the comfort tiers — minimal edits to old, untested, business-critical code, and it defers rather than rewrites when unsure.

  • One mechanism per call chain. It keeps transaction stitching consistent (param or cache, not both) across the LWC/Apex/Flow legs of a feature.

  • Real taxonomy, upgrade-safe. It reuses existing Areas, and steers org-specific values to String constants rather than editing the shipped enums (see Custom Classifications).

  • Never lets logging throw. It follows the risk-mitigation patterns — feature flags and guarded logging calls in the riskiest code.

When to reach for it (vs. a single skill)

Situation
Use

One class/component/flow to instrument

The matching per-technology skill.

A feature or folder

instrument-org scoped to that subtree.

A whole org, or a repeatable rollout across many orgs

The agent.

Just want to see the gaps

Where to go next

Last updated