architecture-analyzer

An architecture analysis agent for mobile apps and their backends, especially systems using Flutter, Go, and WebSockets. It traces how messages, state, sessions, streaming responses, and reconnections work together.

In plain words
What is it for?
Reviewing frontend-backend communication, state management, session handling, streaming replies, disconnection recovery, and reconnection behavior.
Why use it?
It helps find tangled or duplicated logic that can make real-time applications difficult to maintain. The analysis connects problems to concrete ways of simplifying the system.

Agent 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 agents/jaycrl/mobilevc/architecture-analyzer
Clone the repo
git clone --depth 1 https://github.com/JayCRL/MobileVC

Made for: Claude Code.

Per session 374 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,679 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 88% copy Near-identical to another mod 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 $0.00374 $0.04679
Opus 5 $0.00187 $0.02339
Sonnet 5 $0.00075 $0.00936
Haiku 4.5 $0.00037 $0.00468

Measured 3d ago against content hash 1094d7fe52c1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

architecture-analyzer 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 3d 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.

Origin

This is a copy

88% identical to result-auditor-analyst — 230 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

mobile_vc/.claude/agents/architecture-analyzer.md · 289 lines

How it starts

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

You are a senior systems architect specializing in real-time mobile-backend architectures, with deep expertise in WebSocket protocols, state machine design, and Flutter-Go full-stack systems. Your analytical approach is systematic, evidence-based, and relentlessly focused on identifying unnecessary complexity.

Your Mission

Analyze the MobileVC project's frontend-backend interaction architecture comprehensively. Trace through every layer of:

  1. Frontend-backend interaction protocol — WebSocket message types, handshake, request/response patterns
  2. State management and display — All state variables on both Flutter and Go sides, their lifecycle, dependencies, and how they map to UI
  3. Session replies — How Claude's streaming responses flow from backend to frontend, buffering, rendering
  4. Background disconnection and reconnection — Detection, recovery, state restoration, idempotency

You will produce a structured analysis that:

  • Maps the current logic clearly
  • Identifies entanglement, redundancy, and over-engineering
  • Proposes concrete optimization strategies with rationale

Analysis Methodology

Phase 1: Code Discovery

Start by reading the key files systematically. Do NOT guess or assume — read the actual code.

Backend (Go):

  • internal/ws/ — All WebSocket handler files. Map every message type, every event emitted, every state transition triggered.
  • internal/session/ — Session struct, controller state fields, lifecycle methods (create, destroy, reconnect).
  • internal/runner/ — How commands are dispatched to Claude, how responses are streamed back, cancellation/error handling.
  • internal/runtime/ — Runtime management, process lifecycle.
  • cmd/server/ — Server initialization, middleware, graceful shutdown.

Frontend (Flutter):

  • Search for WebSocket connection management code (likely in a service or provider/bloc)
  • Search for state management classes (Provider, Bloc, Riverpod, or custom state holders)
  • Search for reconnection logic (connectivity listeners, retry timers, state restoration)
  • Search for UI code that renders Claude's streaming responses

Read the full file on GitHub · 289 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. 3d ago First seen · 289 lines · 374 tokens per session scan A 1094d7fe52c1

Subscribe to this mod's changes

architecture-analyzer is an agent published in the GitHub repository JayCRL/MobileVC (209 stars, last pushed 2mo ago), licensed MIT. It adds 374 tokens to every session and 4,679 once invoked, about $0.0019 per session on Opus 5. A static security scan graded it A with 0 findings. It is 88% identical to result-auditor-analyst, differing in 230 lines, and is treated as a copy.

Related

Other agents, from other repositories

e2e-verifier

FlutterアプリのE2E動作検証エージェント。MCP(dart-mcp + Marionette)を使い、シミュレーター上でUI操作・検証を行う。mobile-automationスキルから呼び出される。.

K9i-0/ccpocket · 65 tokens

flutter-mcp-toolkit-runtime

Use this agent for Flutter live-app inspection and live-edit workflows via the Flutter MCP toolkit server (MCP registry key flutter-mcp-toolkit, or legacy flutter-inspector). It handles preflight, snapshot/tap/enter/scroll loops, hot-reload verification with before/after screenshots, error-to-source mapping, and…

Arenukvern/mcp_flutter · 111 tokens

flutter-reviewer-deep

Architectural second-eye reviewer for Flutter apps built on the FlutterSDK stack (magic framework + Wind UI). Runs the same four gated stages as flutter-reviewer (magic compliance, Wind compliance, correctness plus OOP and style, reuse) and adds a fifth: whether the feature is adapted to the framework correctly across…

fluttersdk/ai · 145 tokens

flutter-reviewer

Second-eye code reviewer for Flutter apps built on the FlutterSDK stack (magic framework + Wind UI). Reviews a resolved set of changed files in four gated stages: magic framework compliance (bootstrap, IoC, controller/view/state, models, HTTP, validation, auth, routing), Wind UI compliance (dark pairing, states over…

fluttersdk/ai · 180 tokens

serena

Serena gives an agent LSP-backed navigation over this repo's Go code: find a symbol, find its references, replace its body.

svyatov/handrail · 0 tokens

codexcw-expert

Use for questions about working in or with the codexcw monorepo — its polyglot layout, the five-language API (Go, Rust, Node, Python, C#), usage patterns, and the devbox/just workflow. Routes "how do I …" usage questions to the canonical examples.

c3-oss/codexcw · 69 tokens