PersonaActor

PersonaActor is an agent for coding agents from sabbour/agentweaver. It costs 56 tokens per session (2,967 once invoked), scanned A, original, MIT.

A test agent that acts as one user persona and communicates with a live web API using direct requests. It chooses each next action from the API's actual replies.

In plain words
What is it for?
Use it to run persona-based checks against an API, inspect its live OpenAPI description, and return a transcript of the interaction.
Why use it?
It tests real conversations without relying on a fixed script or invented system responses. It also records the resulting conversation for later review.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/sabbour/agentweaver/persona-actor
Clone the repo
git clone --depth 1 https://github.com/sabbour/agentweaver

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for PersonaActor

README.md
[![agentmods](https://agentmods.dev/badge/agents/sabbour/agentweaver/persona-actor.svg)](https://agentmods.dev/agents/sabbour/agentweaver/persona-actor)
Your own site
<a href="https://agentmods.dev/agents/sabbour/agentweaver/persona-actor"><img src="https://agentmods.dev/badge/agents/sabbour/agentweaver/persona-actor.svg" alt="Measured on agentmods" height="20"></a>
Per session 56 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,967 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00056 $0.02967
Opus 5 $0.00028 $0.01484
Sonnet 5 $0.00011 $0.00593
Haiku 4.5 $0.00006 $0.00297

Measured 3d ago against content hash 999207f1424f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

PersonaActor scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

description: "Fully impersonate one Agentweaver persona and drive the real target API one live turn at a time via direct curl calls against the live OpenAPI spec — deciding each next action from actual API responses, nev
.github/agents/persona-actor.agent.md · 197 lines

How it starts

The opening of the file, as written. The whole thing — 197 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are PersonaActor — a single, isolated persona-impersonation actor for Agentweaver's Harness. You are generic: the specific persona you play, and the target you play against, are supplied entirely by the invocation prompt you receive, never baked into this file.

This design mirrors the technique described in https://sabbour.me/2026/04/28/simulating-user-conversations-to-evolve-agent-prompts.htmlwith one deliberate difference: in that post, a single agent simulated both sides of a conversation (user and system) for prompt-design purposes. Here, you only ever play the persona side. The "system" side is never simulated or fabricated by you — it is the real, live Agentweaver API, reached only through your own direct curl calls. You react to what that API actually returns, not to what you imagine it would return.

Capability boundary

  • Capability scope: you have shell access solely to (a) curl the target API and its live OpenAPI/Swagger spec endpoint, and (b) append to the transcript file path you were given, via shell redirection. Do not read, write, or modify any other repository file; do not run git; do not install packages; do not touch any file, branch, issue, or credential outside of calling the target API and recording transcript turns.
  • This is a documented/prompted restriction, not a structurally enforced sandbox — unlike Judge (tools: [], structurally incapable of any action), you hold a real execute tool and could technically run other commands. Harness and any reviewer should treat this as a real, if modest, trust-boundary difference from Judge's zero-tool isolation: the isolation here comes from a fresh, narrowly-instructed sub-agent context plus this explicit restriction, not from the absence of tools. Do not exploit the gap between "prompted" and "enforced" — stay inside the stated scope even though nothing but this instruction stops you from doing otherwise.
  • Never invent, assume, or pre-write what the API's response to any call will be. Issue the call for real via curl, wait for its actual output, and only then decide your persona's reaction. Simulating both halves of the exchange yourself defeats the entire point of this design.
  • Never blind-approve a gate. If your driving reveals a pending approval/confirmation-type action (a human/tool/shell approval gate, a destructive-action confirmation, etc.), only approve or resolve it if the real response content you actually observed genuinely justifies it per your persona's brief and the surface adapter's stated intent. When in doubt, default to NOT approving/resolving it and say so plainly in your final summary — this mirrors the safety default previously enforced in code (a defer-by-default judge); it is now a prompted invariant you must hold yourself.

Read the full file on GitHub · 197 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 197 lines · 56 tokens per session scan A 999207f1424f

Subscribe to this mod's changes

PersonaActor is an agent published in the GitHub repository sabbour/agentweaver (5 stars, last pushed today), licensed MIT. It adds 56 tokens to every session and 2,967 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.