recent-chat

recent-chat is a command for Claude Code from DimitriGeelen/agentic-engineering-framework. It costs 0 tokens per session (1,447 once invoked), scanned A, original, Apache-2.0.

A command that displays recent messages from agent conversations across a fleet. A fleet is a group of connected agents or servers.

In plain words
What is it for?
Use it to view recent posts, limit the time or number of messages, inspect one hub, filter by sender, and include or exclude status messages.
Why use it?
It gives an agent context after starting a new session without requiring someone to summarize earlier messages.

Command for Claude Code

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 commands/dimitrigeelen/agentic-engineering-framework/recent-chat
Clone the repo
git clone --depth 1 https://github.com/DimitriGeelen/agentic-engineering-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 recent-chat

README.md
[![agentmods](https://agentmods.dev/badge/commands/dimitrigeelen/agentic-engineering-framework/recent-chat.svg)](https://agentmods.dev/commands/dimitrigeelen/agentic-engineering-framework/recent-chat)
Your own site
<a href="https://agentmods.dev/commands/dimitrigeelen/agentic-engineering-framework/recent-chat"><img src="https://agentmods.dev/badge/commands/dimitrigeelen/agentic-engineering-framework/recent-chat.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,447 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.1 $0.00000 $0.01447
Opus 5 $0.00000 $0.00724
Sonnet 5 $0.00000 $0.00289
Haiku 4.5 $0.00000 $0.00145

Measured today against content hash 57ff99873ca5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

recent-chat 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 today.

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/recent-chat.md · 153 lines

How it starts

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

/recent-chat — show recent agent-chat-arc posts across the fleet (T-1849 wrapper)

Wraps scripts/agent-chat-arc-recent.sh. The "what's been said?" verb in the T-1830 doorbell+mail arc discovery triangle:

  1. Who's there?/be-reachable status + agent-listeners-fleet.sh
  2. Is the rail healthy?termlink fleet doctor + check-fleet-doorbell-mail-health.sh
  3. What's been said?this skill

Use this when an agent landing in a fresh session wants conversation context before responding. Pairs with /check-arc (your unread DMs) and /agent-handoff (initiate a fresh thread).

Invocation:

Form Action
/recent-chat Last 20 posts in 24h window, fleet-wide
/recent-chat 5 Last 5 posts
/recent-chat 50 168 Last 50 posts in 168h (7d) window
/recent-chat --since N Specific window in hours (1..720)
/recent-chat --limit N Specific post count (1..200)
/recent-chat --hub addr Single-hub mode
/recent-chat --filter-sender ID Posts from one specific sender
/recent-chat --all-msg-types Include heartbeats / receipts (not just chat)
/recent-chat --exclude-heartbeats Exclude *-vendored systemd emitter posts; surface real conversation only (T-1861). Header reports excluded counts
/recent-chat --json Machine-readable envelope

The wrapper is read-only. Always safe to invoke.

Step 1: Pre-flight

Run:

bash scripts/agent-chat-arc-recent.sh --help >/dev/null 2>&1

If exit non-zero: stop. Print:

recent-chat: wrapper not found at scripts/agent-chat-arc-recent.sh.
Ensure you're in the TermLink project root (cd /opt/termlink).

Do NOT shell out to termlink channel subscribe directly — the wrapper applies the seek-to-tail (PL-188) + timeout (PL-189) + sender-priority (PL-191) corrections that bare reads miss.

Step 2: Parse arguments

$ARGUMENTS is the user's tail. Normalize:

  • If $ARGUMENTS is empty → run with no args (defaults: limit=20, since=24).
  • If $ARGUMENTS starts with a positive integer N → first integer is --limit N.
  • If a second positive integer follows → second integer is --since N.
  • Any token starting with -- is passed through verbatim.

Read the full file on GitHub · 153 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. today First seen · 153 lines · 0 tokens per session scan A 57ff99873ca5

Subscribe to this mod's changes

recent-chat is a command published in the GitHub repository DimitriGeelen/agentic-engineering-framework (13 stars, last pushed today), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 1,447 tokens. 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-09-04.