{"id":366954,"date":"2026-11-25T15:03:21","date_gmt":"2026-11-25T15:03:21","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/ai-agent-monitor\/"},"modified":"2026-11-25T15:02:57","modified_gmt":"2026-11-25T15:02:57","slug":"sharktrace-ai-agent-monitor","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/sharktrace-ai-agent-monitor\/","author":20164301,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"0.1.1","stable_tag":"0.1.1","tested":"7.1.5","requires":"6.7","requires_php":"7.2","requires_plugins":null,"header_name":"SharkTrace AI Agent Monitor","header_author":"Iqbal Hossain","header_description":"AI observability for WordPress. See what AI agents do inside your site \u2014 in real time.","last_updated":"2026-11-25 15:02:57","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/wp-shark\/sharktrace-ai-agent-monitor","header_author_uri":"","rating":0,"author_block_rating":0,"active_installs":0,"downloads":17,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"0.1.1":{"tag":"0.1.1","author":"iqbal1hossain","date":"2026-11-25 15:02:57","revision":3823191}},"upgrade_notice":{"0.1.1":"<p>PHP 7.2 compatibility and live feed fixes.<\/p>","0.1.0":"<p>First release.<\/p>"},"ratings":[],"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1.1"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[8531,2353,8534,5603,600],"plugin_category":[54],"plugin_contributors":[222961],"plugin_business_model":[],"class_list":["post-366954","plugin","type-plugin","status-publish","hentry","plugin_tags-activity-log","plugin_tags-ai","plugin_tags-audit-log","plugin_tags-monitoring","plugin_tags-security","plugin_category-security-and-spam-protection","plugin_contributors-iqbal1hossain","plugin_committers-iqbal1hossain"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/sharktrace-ai-agent-monitor.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>SharkTrace AI Agent Monitor records what AI agents, MCP clients and automations actually do on your\nsite, and shows it in a live control room screen inside wp-admin.<\/p>\n\n<p>Every recorded event keeps the who, what, when and the values that changed, so you can\nanswer \"what did that agent just do?\" without digging through logs.<\/p>\n\n<p><strong>Attribution you can trust<\/strong><\/p>\n\n<p>An event is labelled as an AI agent only when WordPress can prove it: an Abilities API\nexecution, or an explicit <code>X-Agent-Name<\/code> \/ <code>X-MCP-Client<\/code> header over REST or WP-CLI.\nAnything else is reported as <em>Unknown \/ WordPress<\/em> rather than guessed.<\/p>\n\n<p><strong>What is recorded<\/strong><\/p>\n\n<ul>\n<li>Abilities API executions, with input, result, duration and outcome, including permission denials (blocked) and runs that never completed.<\/li>\n<li>Core writes: posts, trash, permanent deletes, media uploads, terms, user creation, role changes, user deletion, watched options and plugin activation.<\/li>\n<li>Risk classification of low, medium or high, with critical options such as <code>siteurl<\/code>, <code>home<\/code>, <code>active_plugins<\/code> and <code>default_role<\/code> always treated as high risk.<\/li>\n<\/ul>\n\n<p><strong>Control room screen<\/strong><\/p>\n\n<p>A live feed with 24 hour counters, search and filters by source, risk level and status,\nplus a detail pane showing before and after values for each event.<\/p>\n\n<p><strong>REST API<\/strong><\/p>\n\n<p>Read-only endpoints under the <code>sharktrace-ai-agent-monitor\/v1<\/code> namespace, all requiring the\n    manage_options capability:<\/p>\n\n<ul>\n<li><code>GET \/sharktrace-ai-agent-monitor\/v1\/events<\/code> - the feed, with <code>search<\/code>, <code>source<\/code>, <code>status<\/code>, <code>risk_level<\/code>, <code>action_name<\/code>, <code>session_id<\/code>, <code>since_id<\/code>, <code>per_page<\/code> and <code>offset<\/code> parameters.<\/li>\n<li><code>GET \/sharktrace-ai-agent-monitor\/v1\/events\/&lt;id&gt;<\/code> - one event with full payloads.<\/li>\n<li><code>GET \/sharktrace-ai-agent-monitor\/v1\/stats<\/code> - 24 hour counters and top agents.<\/li>\n<li><code>GET \/sharktrace-ai-agent-monitor\/v1\/sessions\/&lt;id&gt;<\/code> - every event in one session, oldest first.<\/li>\n<li><code>DELETE \/sharktrace-ai-agent-monitor\/v1\/events<\/code> - clear the log.<\/li>\n<\/ul>\n\n<p><strong>Extension points<\/strong><\/p>\n\n<ul>\n<li><code>staiam_should_record<\/code> - filter. Skip events by context.<\/li>\n<li><code>staiam_pre_record_event<\/code> - filter. Alter or drop an event before storage; return a non-array to drop it.<\/li>\n<li><code>staiam_risk_level<\/code> - filter. Override risk classification.<\/li>\n<li><code>staiam_watched_options<\/code> - filter. Choose which options are logged.<\/li>\n<li><code>staiam_view_capability<\/code> - filter. Capability required to read monitoring data.<\/li>\n<\/ul>\n\n<p><strong>Privacy and data safety<\/strong><\/p>\n\n<p>All data stays in your own database. Nothing is sent to any external service.<\/p>\n\n<p>Payload keys matching <code>pass<\/code>, <code>password<\/code>, <code>token<\/code>, <code>secret<\/code>, <code>api_key<\/code>, <code>nonce<\/code>, <code>auth<\/code>,\n    salt or <code>private_key<\/code> are stored as <code>[redacted]<\/code>. Values are truncated at 500\ncharacters, arrays at 30 entries and 4 levels deep. Events older than the retention\nwindow, 30 days by default, are deleted daily.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the <code>sharktrace-ai-agent-monitor<\/code> folder to <code>\/wp-content\/plugins\/<\/code>, or install the plugin through the Plugins screen in WordPress.<\/li>\n<li>Activate the plugin through the Plugins screen. Activation creates the events table.<\/li>\n<li>Open <strong>Tools &gt; SharkTrace AI Agent Monitor<\/strong> to watch activity as it happens.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"which%20activity%20counts%20as%20an%20ai%20agent%3F\"><h3>Which activity counts as an AI agent?<\/h3><\/dt>\n<dd><p>Only activity WordPress can prove came from an agent: an Abilities API execution, or a\nrequest carrying an explicit <code>X-Agent-Name<\/code> or <code>X-MCP-Client<\/code> header over REST or WP-CLI.\nEverything else is recorded as <em>Unknown \/ WordPress<\/em>, never guessed.<\/p><\/dd>\n<dt id=\"do%20i%20need%20the%20abilities%20api%3F\"><h3>Do I need the Abilities API?<\/h3><\/dt>\n<dd><p>No. Core write collection works on WordPress 6.7 and later on its own. Abilities API\ncollection additionally needs WordPress 7.1 or the Abilities API plugin.<\/p><\/dd>\n<dt id=\"who%20can%20see%20the%20recorded%20data%3F\"><h3>Who can see the recorded data?<\/h3><\/dt>\n<dd><p>Users with the <code>manage_options<\/code> capability. Use the <code>staiam_view_capability<\/code> filter to\nrequire a different capability.<\/p><\/dd>\n<dt id=\"how%20long%20is%20data%20kept%3F\"><h3>How long is data kept?<\/h3><\/dt>\n<dd><p>30 days by default. Older events are removed by a daily cron job. Change the window with\nthe <code>staiam_retention_days<\/code> option.<\/p><\/dd>\n<dt id=\"does%20the%20plugin%20send%20anything%20to%20an%20external%20service%3F\"><h3>Does the plugin send anything to an external service?<\/h3><\/dt>\n<dd><p>No. Events are stored in your own database only.<\/p><\/dd>\n<dt id=\"what%20happens%20when%20i%20delete%20the%20plugin%3F\"><h3>What happens when I delete the plugin?<\/h3><\/dt>\n<dd><p>Uninstalling drops the events table, deletes the plugin options and clears the scheduled\ncleanup job. Deactivating alone keeps the stored events.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.1.1<\/h4>\n\n<ul>\n<li>Fix: PHP 7.2 compatibility (no typed properties, arrow functions or PHP 8 string functions).<\/li>\n<li>Fix: Live activity feed failed to load on sites using plain permalinks.<\/li>\n<li>Fix: Events could appear twice in the feed when the page first loaded.<\/li>\n<li>Fix: Garbled characters in admin screen text.<\/li>\n<\/ul>\n\n<h4>0.1.0<\/h4>\n\n<ul>\n<li>First release: Abilities API and core write collection, risk classification, live control room screen, REST API and daily retention cleanup.<\/li>\n<\/ul>","raw_excerpt":"AI observability for WordPress. See what AI agents do inside your site, in real time.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/366954","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=366954"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/iqbal1hossain"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=366954"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=366954"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=366954"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=366954"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=366954"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=366954"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}