# Ontrack Agent Monitoring

> OnTrack: Real-Time Monitoring and Intervention in LLM Agent Trajectories via Streaming Structure-Aware Optimal Transport. Low-latency trajectory monitoring for agent safety.

- Skill: `hiyenwong/ontrack-agent-monitoring` (Agent Skill)
- Install (CLI): `npx get-skill add hiyenwong/ontrack-agent-monitoring`
- Raw SKILL.md: https://api.skillmd.com/api/skills/hiyenwong/ontrack-agent-monitoring/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: hiyenwong (https://skillmd.com/u/hiyenwong)
- Updated: 2026-11-22
- Page: https://skillmd.com/skills/hiyenwong/ontrack-agent-monitoring

---


# OnTrack: Real-Time Monitoring and Intervention in LLM Agent Trajectories

**arXiv:** [2610.12375](https://arxiv.org/abs/2610.12375)
**Utility:** 0.90

## Key Innovation

Real-time monitoring and intervention in LLM agent trajectories via **Streaming Structure-Aware Optimal Transport**.

## Problem

LLM agents work autonomously with minimal safeguarding, leading to cost and safety issues from irreversible actions. Existing solutions:
- Safeguard agent monitoring every step → adds cost and latency
- Post-hoc log evaluation → too late for intervention

## Method

- Structure-aware optimal transport for comparing agent trajectories to safe reference trajectories
- Streaming computation enabling real-time comparison
- Intervention triggers when trajectory diverges beyond threshold

## Practical Use

- Deploy real-time monitoring for autonomous agents
- Intervene before agents take irreversible harmful actions
- Reduce monitoring overhead compared to full safeguard-agent approaches

