SharkTrace AI Agent Monitor
AI agent monitor and audit trail for WordPress.
Install in
SharkTrace AI Agent Monitor records what AI agents, MCP clients and automations actually do on your
site, and shows it in a live control room screen inside wp-admin.
Every recorded event keeps the who, what, when and the values that changed, so you can
answer “what did that agent just do?” without digging through logs.
Attribution you can trust
An event is labelled as an AI agent only when WordPress can prove it: an Abilities API
execution, or an explicit X-Agent-Name / X-MCP-Client header over REST or WP-CLI.
Anything else is reported as Unknown / WordPress rather than guessed.
What is recorded
- Abilities API executions, with input, result, duration and outcome, including permission denials (blocked) and runs that never completed.
- Core writes: posts, trash, permanent deletes, media uploads, terms, user creation, role changes, user deletion, watched options and plugin activation.
- Risk classification of low, medium or high, with critical options such as
siteurl,home,active_pluginsanddefault_rolealways treated as high risk.
Control room screen
A live feed with 24 hour counters, search and filters by source, risk level and status,
plus a detail pane showing before and after values for each event.
REST API
Read-only endpoints under the sharktrace-ai-agent-monitor/v1 namespace, all requiring the
manage_options capability:
GET /sharktrace-ai-agent-monitor/v1/events– the feed, withsearch,source,status,risk_level,action_name,session_id,since_id,per_pageandoffsetparameters.GET /sharktrace-ai-agent-monitor/v1/events/<id>– one event with full payloads.GET /sharktrace-ai-agent-monitor/v1/stats– 24 hour counters and top agents.GET /sharktrace-ai-agent-monitor/v1/sessions/<id>– every event in one session, oldest first.DELETE /sharktrace-ai-agent-monitor/v1/events– clear the log.
Extension points
staiam_should_record– filter. Skip events by context.staiam_pre_record_event– filter. Alter or drop an event before storage; return a non-array to drop it.staiam_risk_level– filter. Override risk classification.staiam_watched_options– filter. Choose which options are logged.staiam_view_capability– filter. Capability required to read monitoring data.
Privacy and data safety
All data stays in your own database. Nothing is sent to any external service.
Payload keys matching pass, password, token, secret, api_key, nonce, auth,
salt or private_key are stored as [redacted]. Values are truncated at 500
characters, arrays at 30 entries and 4 levels deep. Events older than the retention
window, 30 days by default, are deleted daily.
Written by Joobi from the project's own listing. See the source page
0.2.0
- New: agent registry, profiles, status, trust, rename and merge.
- New: admin app with Overview, Live, Activity log, Agents, Content, Conflicts, Sessions and Settings.
- New: presence and conflict detection with resolve and dismiss.
- New: session waterfall with millisecond timing.
- New: block editor panel, classic meta box, posts column, admin bar node and dashboard widget.
- New: WP-CLI collector and commands.
- New: live updates via server-sent events, with polling fallback.
- New: post meta collector, salted IP hashes, personal data exporter and eraser, and privacy policy text.
- New: admin notice for high conflicts, plus Pro email alerts and export.
- Changed: REST API moved to
v2; v1 routes and the old screen were removed. - Changed: events are written once per request in one transaction.
0.1.1
- Fixed PHP 7.2 compatibility.
- Fixed live feed loading on plain permalinks.
- Fixed duplicate events on first page load.
- Fixed garbled characters in admin text.
0.1.0
- First release with Abilities API and core write collection, risk classification, live screen, REST API and daily retention cleanup.
0.1.1
- Fix: PHP 7.2 compatibility (no typed properties, arrow functions or PHP 8 string functions).
- Fix: Live activity feed failed to load on sites using plain permalinks.
- Fix: Events could appear twice in the feed when the page first loaded.
- Fix: Garbled characters in admin screen text.
0.1.0
- First release: Abilities API and core write collection, risk classification, live control room screen, REST API and daily retention cleanup.
Follow this listing's changes (Atom feed)