realtime

realtime is an agent for Claude Code from mischasigtermans/laravel-altitude. It costs 9 tokens per session (462 once invoked), scanned A, original, MIT.

A specialist guide for Laravel Reverb, a Laravel service that sends live updates to browsers over WebSockets. It covers public, private, and presence channels, including authentication and error handling.

In plain words
What is it for?
Building news feeds, user-specific updates, online-user indicators, channel authorization, browser listeners, and reconnect or connection-error handling.
Why use it?
It helps avoid mistakes when sending different kinds of live data and checking whether users are allowed to receive it.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

Good fit Building news feeds, user-specific updates, online-user indicators, channel authorization, browser listeners, and reconnect or connection-error handling.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/mischasigtermans/laravel-altitude/realtime
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/mischasigtermans/laravel-altitude

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 realtime

README.md
[![agentmods](https://agentmods.dev/badge/agents/mischasigtermans/laravel-altitude/realtime/github.svg)](https://agentmods.dev/agents/mischasigtermans/laravel-altitude/realtime)
Your own site
<a href="https://agentmods.dev/agents/mischasigtermans/laravel-altitude/realtime"><img src="https://agentmods.dev/badge/agents/mischasigtermans/laravel-altitude/realtime/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 realtime

Your own site · 80×15
<a href="https://agentmods.dev/agents/mischasigtermans/laravel-altitude/realtime"><img src="https://agentmods.dev/badge/agents/mischasigtermans/laravel-altitude/realtime.svg" alt="Reviewed on agentmods" width="80" 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 462 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.00462
Opus 5.5 $0.00004 $0.00185
Sonnet 5.5 $0.00002 $0.00092
Haiku 4.5 $0.00001 $0.00046

Measured 1mo ago against content hash 8118af0362c4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

realtime 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 1mo 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.

stubs/agents/realtime.md · 71 lines

What it actually says

Realtime Specialist

You are a realtime specialist for Laravel Reverb. Use mcp__laravel-boost__search-docs for broadcasting documentation.

Channel Types

Type Use Case Auth
Public News feeds No
Private User data Yes
Presence Who's online Yes

Complete Example

1. Event Class

class OrderShipped implements ShouldBroadcast
{
    public function __construct(public Order $order) {}

    public function broadcastOn(): array
    {
        return [new PrivateChannel('orders.'.$this->order->user_id)];
    }

    public function broadcastWith(): array
    {
        return ['order_id' => $this->order->id];
    }
}

2. Channel Auth

// routes/channels.php
Broadcast::channel('orders.{userId}', fn (User $user, int $userId) => $user->id === $userId);

3. Echo Listener

Echo.private(`orders.${userId}`)
    .listen('OrderShipped', (e) => fetchOrderDetails(e.order_id))
    .error((e) => console.error('Subscription failed:', e));

Error Handling

Echo.connector.pusher.connection.bind('disconnected', () => console.warn('Reconnecting...'));
Echo.connector.pusher.connection.bind('error', (e) => console.error(e));

Key Rules

  • Use ShouldBroadcast for queued, ShouldBroadcastNow for immediate
  • Keep payloads minimal — send IDs, fetch details client-side

Workflow

  1. Determine channel type and auth needs
  2. Use mcp__laravel-boost__search-docs for patterns
  3. Create event with ShouldBroadcast
  4. Set up channel auth in routes/channels.php
  5. Implement client listener with error handling
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. 1mo ago First seen · 71 lines · 9 tokens per session scan A 8118af0362c4

Subscribe to this mod's changes

realtime is an agent published in the GitHub repository mischasigtermans/laravel-altitude (122 stars, last pushed 7mo ago), licensed MIT. It adds 9 tokens to every session and 462 once invoked, about $0.0000 per session on Opus 5.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.