tma1-peer

tma1-peer is a command for Claude Code from tma1-ai/tma1. It costs 26 tokens per session (697 once invoked), scanned A, original, Apache-2.0.

A command that lists recent coding-agent sessions for the current project, grouped by agent.

In plain words
What is it for?
Use it to view session summaries or full details, filter by agent and time, and limit the number of results.
Why use it?
It shows what other agents or your own earlier sessions recently worked on, reducing duplicated effort.

Command for Claude Code

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

Part of the tma1 plugin — 4 skills, 2 commands shipped together

Good fit Use it to view session summaries or full details, filter by agent and time, and limit the number of results.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/tma1-ai/tma1/tma1-peer
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.

Clone the repo
git clone --depth 1 https://github.com/tma1-ai/tma1

Made for: Claude Code.

Or install tma1, the plugin that ships this one along with the rest of its 4 skills, 2 commands.

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 tma1-peer

README.md
[![agentmods](https://agentmods.dev/badge/commands/tma1-ai/tma1/tma1-peer/github.svg)](https://agentmods.dev/commands/tma1-ai/tma1/tma1-peer)
Your own site
<a href="https://agentmods.dev/commands/tma1-ai/tma1/tma1-peer"><img src="https://agentmods.dev/badge/commands/tma1-ai/tma1/tma1-peer/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 tma1-peer

Your own site · 80×15
<a href="https://agentmods.dev/commands/tma1-ai/tma1/tma1-peer"><img src="https://agentmods.dev/badge/commands/tma1-ai/tma1/tma1-peer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 697 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.00026 $0.00697
Opus 5 $0.00013 $0.00349
Sonnet 5 $0.00005 $0.00139
Haiku 4.5 $0.00003 $0.00070

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

Security

Grade A, and why

tma1-peer 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 10d 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-plugin/commands/tma1-peer.md · 50 lines

How it starts

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

TMA1 Peer-Agent Lens — /tma1-peer

Full reference lives in skills/tma1-peer/SKILL.md; this file carries the rules for the explicit-invocation path.

Parse $ARGUMENTS

  • First token, if it isn't a flag → agent name: codex · openclaw · copilotcopilot_cli · claude / ccclaude_code · self / me → yourself · all / * / absent → "" (every peer but you). Anything else → reply unknown agent "<X>"; available: codex, openclaw, copilot, claude, self, all and STOP.
  • --summarydetail: "summary" · --fulldetail: "full" · neither → omit (server defaults to preview).
  • --limit Nlimit (1-5, default 1; per agent when no agent is named).
  • --since 2h / --since 90m / --since 30since_min in minutes (default 1440).
  • Legacy positional form [agent] [limit] [message_limit] still works; a bare leading integer is the limit, not an agent.

Call the tool

mcp__tma1__get_peer_sessions with the parsed values. Pass what the user gave — don't silently fall back to defaults.

Use the response

  • sessions[]session_id / agent_source / last_activity_ago / duration_minutes / tool_call_count / messages / recent_tool_names / files_touched / cwd; is_latest_for_cwd marks your own current session on a self lookup.
  • most_recent_session — lead your answer with it so the user knows whether the work is current.
  • partial_failuresagent → error, present only on a failed fan-out. Check it before treating empty sessions as silence.
  • note — only when sessions is empty and nothing failed.

Rules:

  • Quote the peer's concrete points. Do not paraphrase.
  • List files_touched when the next step is "fix what they flagged".
  • A message with truncated: true was cut — fetch the rest with mcp__tma1__get_session_transcript for that session_id.
  • Empty + no failures → no recent <agent> sessions on this project in the window, then stop.
  • Empty + failures → name the failing peer and quote the error. Don't fabricate.
  • Searching by keyword instead of by agent → /tma1-search.

Read the full file on GitHub · 50 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. 10d ago First seen · 50 lines · 26 tokens per session scan A deba68e7b7ee

Subscribe to this mod's changes

tma1-peer is a command published in the GitHub repository tma1-ai/tma1 (117 stars, last pushed today), licensed Apache-2.0. It adds 26 tokens to every session and 697 once invoked, about $0.0001 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-30.