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.
What it bundles
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:
Audit — runs
audit-loggingread-only and presents the coverage report and a proposed plan.Migrate — where the audit found
Triton.instance, runsmigrate-to-2.0, surfacing every immediate-vs-buffered decision for you.Instrument — drives
instrument-orgthrough the prioritized phases, one Area per feature, stitching transactions across LWC → Apex → Flow, with a review checkpoint per batch.Guard — offers
setup-standardsto wire the hard findings into CI so the work can't regress.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
Stringconstants 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)
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
Instrument the Org — the orchestrator at the agent's core.
Audit Logging Coverage · Migrate to 2.0 · Set Up Standards — the stages the agent sequences.
Legacy Code Logging Rollout — the strategy the persona is built to follow.
Spans & Distributed Tracing — the correlated, OTEL-ready shape the agent rolls out everywhere.
Last updated