tri-party-framework: Command for Claude Code

.claude/commands/ap-claw.md

ap-claw is a command for Claude Code from r-design-j/tri-party-framework. It costs 9 tokens per session (547 once invoked), scanned A, original, MIT.

A short command alias for the AgentParty claw workflow, which dispatches work through the available AgentParty command or script.

In plain words
What is it for?
Use it to run the same AgentParty claw workflow with supplied arguments after resolving the installed CLI or fallback script.
Why use it?
It gives the longer workflow a shorter name and checks several supported installation locations before failing.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions Codex.

This is r-design-j/tri-party-framework's own configuration. It tells Claude Code how to work on tri-party-framework 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 tri-party-framework configures →

Reuse

Borrowing it

Nothing to install: this file belongs to r-design-j/tri-party-framework. 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/r-design-j/tri-party-framework/main/.claude/commands/ap-claw.md
Clone the repo
git clone --depth 1 https://github.com/r-design-j/tri-party-framework

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 ap-claw

README.md
[![agentmods](https://agentmods.dev/badge/commands/r-design-j/tri-party-framework/ap-claw.svg)](https://agentmods.dev/commands/r-design-j/tri-party-framework/ap-claw)
Your own site
<a href="https://agentmods.dev/commands/r-design-j/tri-party-framework/ap-claw"><img src="https://agentmods.dev/badge/commands/r-design-j/tri-party-framework/ap-claw.svg" alt="Measured on agentmods" height="20"></a>
Per session 9 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 547 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00009 $0.00547
Opus 5 $0.00005 $0.00273
Sonnet 5 $0.00002 $0.00109
Haiku 4.5 $0.00001 $0.00055

Measured 7d ago against content hash 4828f6b2263c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

ap-claw scanned grade A with 0 findings 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 7d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/ap-claw.md · 41 lines

What it actually says

Run the same workflow as /agentparty-claw with these arguments:

$ARGUMENTS

Use the installed agentparty CLI when available. If it is not on PATH, read ~/.triparty-framework/config and use $AGENTPARTY_FRAMEWORK_HOME/scripts/agentparty.sh; otherwise fall back to scripts/agentparty.sh in the current repository.

Run this resolver before dispatch:

AGENTPARTY_CMD="$(command -v agentparty 2>/dev/null || true)"
if [ -z "$AGENTPARTY_CMD" ] && [ -f "$HOME/.triparty-framework/config" ]; then
  . "$HOME/.triparty-framework/config"
  if [ -n "${AGENTPARTY_FRAMEWORK_HOME:-}" ] && [ -x "$AGENTPARTY_FRAMEWORK_HOME/scripts/agentparty.sh" ]; then
    AGENTPARTY_CMD="$AGENTPARTY_FRAMEWORK_HOME/scripts/agentparty.sh"
  fi
fi
if [ -z "$AGENTPARTY_CMD" ] && [ -x "scripts/agentparty.sh" ]; then
  AGENTPARTY_CMD="scripts/agentparty.sh"
fi
if [ -z "$AGENTPARTY_CMD" ]; then
  printf '%s\n' "AgentParty is not installed or not discoverable in this environment." >&2
  printf '%s\n' "After installation, run: agentparty doctor" >&2
  printf '%s\n' "Install or clone: https://github.com/r-design-j/tri-party-framework.git" >&2
  exit 1
fi

If no AgentParty CLI path can be resolved, stop with the resolver's non-zero exit. Report that AgentParty is not installed or not discoverable, suggest running agentparty doctor after installation, and ask whether to clone or install https://github.com/r-design-j/tri-party-framework.git. Do not recreate the framework with new ad hoc Markdown files.

This alias supports the same kit, prompt, guide, and validate dispatch as /agentparty-claw. It is preparation and handoff only. Do not call Feishu, configure Claw auth, import evidence, claim pack_ready by itself, participate in Codex + Claude + Gemini cross-audit, or claim true_triparty_ready=true.

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. 7d ago First seen · 41 lines · 9 tokens per session scan A 4828f6b2263c

Subscribe to this mod's changes

ap-claw is a command published in the GitHub repository r-design-j/tri-party-framework (4 stars, last pushed 2mo ago), licensed MIT. It adds 9 tokens to every session and 547 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.