agentweaver: Agent for Claude Code

.github/agents/persona-actor.agent.md

PersonaActor is an agent for Claude Code from sabbour/agentweaver. It costs 57 tokens per session (3,036 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 for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: mentions subagents.

This is sabbour/agentweaver's own configuration. It tells Claude Code how to work on agentweaver itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything agentweaver configures →

Reuse

Borrowing it

Nothing to install: this file belongs to sabbour/agentweaver. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/sabbour/agentweaver/dev/.github/agents/persona-actor.agent.md
Clone the repo
git clone --depth 1 https://github.com/sabbour/agentweaver

Made for: Claude Code.

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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for PersonaActor

Your own site · 80×15
<a href="https://agentmods.dev/agents/sabbour/agentweaver/persona-actor"><img src="https://agentmods.dev/badge/agents/sabbour/agentweaver/persona-actor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,036 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00057 $0.03036
Opus 5.5 $0.00023 $0.01214
Sonnet 5.5 $0.00011 $0.00607
Haiku 4.5 $0.00006 $0.00304

Measured 27d ago against content hash 74738dfacf12, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 27d 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.

node --input-type=module -e "console.log(await (await fetch(process.env.AGENTWEAVER_BASE_URL + '/openapi/v1.yaml')).text())"
.github/agents/persona-actor.agent.md · 214 lines

How it starts

The opening of the file, as written. The whole thing — 214 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.html — with 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 Node fetch 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) call the target API and its live OpenAPI/Swagger spec endpoint with Node fetch, (b) obtain an in-memory authorization value through the recorder-session provider, and (c) append to the transcript file path you were given with appendRedactedJsonLine. Do not read, write, or modify any other repository file; do not run git; do not install packages; do not inspect browser profiles or authentication storage; do not touch any file, branch, issue, or credential outside of these actions.
  • 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 Node fetch, 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 · 214 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. 27d ago Changed 74738dfacf12
  2. 1mo ago Changed · +7 lines 7301f7d94c6e
  3. 1mo ago Changed · +10 lines · +1 tokens per session c0e5cb9ec0a8
  4. 1mo 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 (7 stars, last pushed today), licensed MIT. It adds 57 tokens to every session and 3,036 once invoked, about $0.0002 per session on Opus 5.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.