| 开发者 | iqbal1hossain |
|---|---|
| 更新时间 | 2026年11月28日 22:57 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1.5 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
wp command logged with secrets redacted.X-Agent-Name, X-Agent-Id or X-MCP-Client header on an authenticated REST or WP-CLI request. Anything else is shown as Unknown / WordPress rather than guessed. Identity headers are labels, never permissions.
Agents
Every agent gets its own profile, keyed by a fingerprint (Application Password, agent id, MCP client and session, or a low-confidence client + user + browser family). Each profile shows its status (Online, Away, Offline), actions, failures, objects touched, sessions and working hours. Rename an agent, mark it Trusted, Watched or Flagged, or merge two profiles of the same agent.
Activity log and audit trail
Saved views (All, Agents only, High risk, Failed, Today), filters by agent, action, risk, status, transport and date, search, and a detail drawer with the before and after values of every change. Together they form a complete audit trail of AI agent activity on your site.
Content
Which pages and posts agents change most, and a timeline per page with one lane per agent or person, links to the revision compare screen and the block editor.
Live and Conflicts
A presence board shows who is working on what right now, from agent writes, presence pings and the block editor's post lock. When two actors change the same object within the conflict window, SharkTrace opens a conflict (High: same field, Medium: same object, Info: open in the editor), shows what each actor wrote and which version is live, and lets you resolve or dismiss it. SharkTrace only warns: it never blocks or changes a write.
Sessions
One agent task per session, shown as a waterfall: the ability call on top, every write it caused beneath it, on a millisecond axis, with failed steps marked.
Inside WordPress
wp command is logged with its arguments (secrets redacted), duration and exit code. wp sharktrace list, wp sharktrace agents and wp sharktrace export read the log from the command line.
Privacy and data safety
pass, password, token, secret, api_key, nonce, auth, salt or private_key are stored as [redacted]. Values are cut at 500 characters, arrays at 30 entries and 4 levels.wp sharktrace export) and email alerts for new conflicts and high-risk agent actions. Everything else above is free.
REST API
Endpoints under sharktrace-ai-agent-monitor/v2: events, agents, stats, settings, objects, presence, conflicts, sessions and stream (server-sent events). Reading requires manage_options (filter staiam_view_capability); changes use staiam_manage_capability. Agents can report what they are working on with POST /presence {"object":"post:42"}.
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_view_capability, staiam_manage_capability – filters. Who may read and change SharkTrace data.staiam_client_ip – filter. Read the client IP from a trusted proxy header.staiam_conflict, staiam_alert – actions. React to conflicts and alerts.sharktrace-ai-agent-monitor folder to /wp-content/plugins/.X-Agent-Name header, so SharkTrace can tell the agents apart.Install and activate SharkTrace. It starts recording agent activity from MCP clients, the REST API, WP-CLI and the Abilities API right away. Open SharkTrace in the admin menu to see the activity log, agent profiles, live presence and conflicts.
Yes. SharkTrace records what reaches WordPress, so it works with the WordPress MCP Adapter and with third-party MCP server plugins. MCP clients such as Claude, ChatGPT and Cursor are identified by their Application Password, MCP client name and session id.
SharkTrace keys every agent by a fingerprint, strongest signal first:
X-Agent-Id header, for agents that share one account.Mcp-Session-Id or X-Agent-Session).X-Agent-Name too, so the profile has a readable name. You can rename any agent, and merge two profiles that turn out to be the same agent, on the agent's profile screen.
Only activity WordPress can prove came from an agent: an Abilities API execution, an Application Password used by a named client, or an authenticated REST or WP-CLI request with an explicit agent header. Everything else is recorded as Unknown / WordPress, never guessed.
General activity log plugins record what users do. SharkTrace is built for AI agents: it separates each agent into its own profile, groups an agent's writes into sessions, shows which agent is working where right now, and detects when two agents edit the same content.
No. Core write collection works on WordPress 6.7 and later. Ability runs are recorded when the Abilities API is available (WordPress 6.9 or later, or the Abilities API plugin).
No. It warns: it opens a conflict, shows it on the Live and Conflicts screens, in the admin bar and in the block editor, and with Pro sends an email. It never blocks or changes a write.
Events are collected in memory and written once, at the end of the request, in one transaction. Front-end page views without an agent signal run no SharkTrace queries.
Users with the manage_options capability. Use the staiam_view_capability filter to require a different capability.
30 days by default. Change it under SharkTrace → Settings → General.
No. Everything stays in your own database. The Pro email alerts use your site's own wp_mail().
Uninstalling drops the SharkTrace tables and deletes its options, its user setting and its scheduled jobs. Deactivating alone keeps the data.
v2; v1 routes and the old screen were removed.