/tma1:tma1-peer runs instead · from tma1
Lists recent sessions by peer agents (Codex, Copilot CLI) or your own past sessions on the current project. Useful for cross-agent context, reviewing another agent's feedback, or recalling earlier work.
This skill never runs in Claude Code
It ships in tma1 at skills/, but /tma1:tma1-peer (a command, or a skill Claude Code finds first) has the same name: typing it, or Claude choosing it, runs that one instead.
Lists recent sessions on the current project, newest first. Default is peer agents — the ones that aren't you — because the usual reason to call this is "another agent reviewed something, act on it without me copy-pasting between terminals". Naming yourself is also allowed.
/tma1-peer # all peers, latest session each
/tma1-peer codex # codex only
/tma1-peer codex --full # codex, with full conversation content
/tma1-peer self # your own recent sessions on this project
/tma1-peer codex --limit 3 # codex, latest 3 sessions
/tma1-peer --summary --limit 5 # all peers, headers only, 5 each
/tma1-peer codex --since 6h # widen the time window
Agent names: opencode, codex, copilot (= copilot_cli), claude
(= claude_code), self (= you), all / omitted (= every peer but you).
Anything else: reply unknown agent "<X>"; available: codex, copilot, opencode, claude, self, all
and STOP — do not call the tool with an unrecognised name.
| Flag | Maps to | Default |
|---|---|---|
--summary | detail: "summary" — header, tools, files; no messages | |
| (none) | detail: "preview" — 3 recent messages per session | default |
--full | detail: "full" — 40 recent messages per session | |
--limit N | limit — sessions per agent, 1-5 | 1 |
--since 2h / --since 90m | since_min in minutes | 1440 (24h) |
Legacy positional form still works: /tma1-peer codex 3 30 means agent
codex, limit: 3, message_limit: 30. A bare leading integer is the
limit, not an agent (/tma1-peer 3 → all peers, limit: 3). Prefer the
flags above when writing new invocations.
mcp__tma1__get_peer_sessions with the parsed agent_source, detail,
limit, since_min. Pass every value the user actually supplied — do
not silently fall back to the defaults.
sessions[] — session_id, agent_source, last_activity_ago,
duration_minutes, tool_call_count, messages, recent_tool_names,
files_touched, cwd. On a self lookup, is_latest_for_cwd marks
the session that is almost certainly the one you're in right now —
don't report your own current work back to the user as news.most_recent_session — freshest session's agent + age. Lead with it so
the user knows immediately whether the peer work is current.partial_failures — agent → error. Present only when the all-peers
fan-out had a failure. Read it before calling empty results silence.note — present only when sessions is empty and nothing failed.Rules:
detail; a cut message carries truncated: true.
Need the rest? mcp__tma1__get_session_transcript with that session_id.sessions, no partial_failures → say no recent <agent> sessions on this project in the window and stop. Don't fabricate.sessions with partial_failures → name the peers that failed and
quote the error instead of asserting silence./tma1-search.session_id? Go straight to get_session_transcript.User: /tma1-peer codex --full
You: (call with agent_source: "codex", detail: "full", limit: 1)
You: "Codex reviewed auth.go 12 min ago and left three concrete issues:
1. ... 2. ... 3. ... Want me to address all three or pick one?"
User: /tma1-peer self --limit 3
You: (call with agent_source: "self", limit: 3)
You: "Three of your sessions here today. The current one aside, the 14:20
session landed the retry fix and the 11:05 one was the failed
migration attempt."
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub tma1-ai/tma1 --plugin tma14 skills in this plugin
/tma1Query TMA1 observability data (Claude Code, Codex, GitHub Copilot CLI, any OTel SDK). Use when the user asks: how much did I spend, token usage, what has my agent been doing, agent cost, show me traces, show me events, check for errors, model comparison, tool usage./tma1-searchSearch past agent sessions on this project by keyword, and read back any session's conversation. Invoke when the answer lives in an earlier session — how something was fixed before, what was decided, what an agent tried last week — or when the user hands you a session id. Trigger phrases: "what did we decide about", "how did we fix this before", "search my sessions", "find that session", "read session <id>", "之前是怎么解决的", "上次讨论过", "找一下以前的 session", "/tma1-search"./tma1-setupInstall and configure TMA1 local observability (Claude Code, Codex, GitHub Copilot CLI, any OTel SDK). Use when the user says: install tma1, setup observability, monitor my agent, track token usage, set up telemetry.Other plugins' skills for the same job