concurrency-networking-agent-android

concurrency-networking-agent-android is an agent for Claude Code from Desquared/agents-rules-skills. It costs 55 tokens per session (497 once invoked), scanned A, original, MIT.

A coding assistant for Android networking and Kotlin coroutines, which are Kotlin's way to run background work safely. It also covers Flow, a system for handling streams of changing data.

In plain words
What is it for?
Use it when building API clients, network requests, background jobs, data streams, retries, or cancellation logic in Android and Kotlin Multiplatform projects.
Why use it?
It helps avoid callback-heavy code, unsafe background tasks, poor cancellation, and unclear handling of network failures.

Agent for Claude Code

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

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/desquared/agents-rules-skills/android-concurrency-networking-agent
Clone the repo
git clone --depth 1 https://github.com/Desquared/agents-rules-skills

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 concurrency-networking-agent-android

README.md
[![agentmods](https://agentmods.dev/badge/agents/desquared/agents-rules-skills/android-concurrency-networking-agent.svg)](https://agentmods.dev/agents/desquared/agents-rules-skills/android-concurrency-networking-agent)
Your own site
<a href="https://agentmods.dev/agents/desquared/agents-rules-skills/android-concurrency-networking-agent"><img src="https://agentmods.dev/badge/agents/desquared/agents-rules-skills/android-concurrency-networking-agent.svg" alt="Measured on agentmods" height="20"></a>
Per session 55 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 497 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.00055 $0.00497
Opus 5 $0.00028 $0.00249
Sonnet 5 $0.00011 $0.00099
Haiku 4.5 $0.00006 $0.00050

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

Security

Grade A, and why

concurrency-networking-agent-android 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 5d 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.

agents/android-concurrency-networking-agent.md · 64 lines

What it actually says

Core Expertise

  • Coroutines: suspend, launch, async, withContext
  • Flow: StateFlow, SharedFlow, cold flows, operators
  • Structured concurrency: CoroutineScope, SupervisorJob, cancellation
  • Ktor/Retrofit async APIs, request/response handling
  • Error handling, retry strategies, cancellation

Key Guidelines

Coroutines

  • Prefer suspend functions over callbacks
  • Use structured concurrency (avoid GlobalScope)
  • Switch dispatchers: Dispatchers.IO for network/disk, Dispatchers.Main for UI
  • Support cancellation: check isActive or use ensureActive()
  • Use supervisorScope for independent child failures

Flow

  • StateFlow for single value state (like LiveData)
  • SharedFlow for events (hot flow)
  • Cold flows for data streams
  • Use .stateIn() or .shareIn() to convert cold → hot
  • Collect in lifecycleScope or viewModelScope

Networking

  • Discover project's HTTP client (Ktor, Retrofit, OkHttp)
  • Use suspend functions for API calls
  • Handle HTTP status codes explicitly
  • Support cancellation via Job cancellation
  • Implement retry with exponential backoff for transient failures
  • Use sealed class for Result types

Error Handling

  • Create typed errors: NetworkError, HttpError, ParseError
  • Provide user-friendly error messages
  • Handle: no internet, timeout, server errors
  • Use Result or sealed class for success/failure

API Client Pattern

IMPORTANT: Discover project setup first

  • Check build.gradle for: Ktor, Retrofit, OkHttp
  • Check for DI framework: Koin, Hilt, Dagger, manual

Then apply:

  • Repository pattern: suspend functions return Result
  • Typed errors: sealed class ApiError
  • Use Dispatchers.IO for network operations
  • Inject HttpClient via DI (discovered framework)

Quality Checklist

  • Cancellation supported
  • Errors typed and handled
  • Dispatchers used correctly (IO/Main)
  • No leaked coroutines (use structured scopes)
  • Timeouts configured
  • Flow lifecycle-aware collection
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. 5d ago First seen · 64 lines · 55 tokens per session scan A 1a1630c5eb7c

Subscribe to this mod's changes

concurrency-networking-agent-android is an agent published in the GitHub repository Desquared/agents-rules-skills (4 stars, last pushed 22d ago), licensed MIT. It adds 55 tokens to every session and 497 once invoked, about $0.0003 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-31.

Related

Other agents, from other repositories

android-dev

Android/Kotlin development expert. Use for implementing Jetpack Compose features, fixing bugs, and writing tests.

hanamizuki/solopreneur · 24 tokens

ios-engineer

实现和审查单平台 iOS Native Module、Bridge Adapter、Native UI、Xcode/SwiftPM 接线、平台测试与构建;不负责 Android、Dart Client 或跨端 Wire Contract。.

bladeofgod/flutter-ai-harness · 48 tokens

swiftui-modernization

Migrates legacy SwiftUI and UIKit to current APIs — ObservableObject to @Observable, NavigationView to NavigationStack, completion handlers to async/await, AnyView removal, deprecated modifiers. Use when modernizing an existing codebase or clearing deprecation warnings. Behavior-preserving; requires a green test…

Nagarjuna2997/ios-agent-skill · 71 tokens

swiftui-architect

Specialist in modern iOS app architecture with SwiftUI (iOS 26 / Swift 6.2) — the Observation framework (@Observable), MV vs MVVM vs TCA, NavigationStack & deep linking, SwiftData persistence, structured concurrency at the UI boundary, dependency injection & SwiftPM modularization, UIKit interop, and Swift Testing.…

SteveGJones/ai-first-sdlc-practices · 97 tokens

android-developer

Native Android developer specializing in Kotlin, Jetpack Compose, and the AndroidX ecosystem. Detects the project's SDK levels, Kotlin/AGP versions, and UI stack (Compose or Views) before writing code. Use proactively for Android features, Compose UI, coroutines/Flow, Room/DataStore, DI, testing, and performance work.

ivklgn/ai-kit · 72 tokens

kmp-architect

KMP architecture expert. Designs shared module structures, expect/actual patterns, navigation, and DI for Kotlin Multiplatform projects.

ahmed3elshaer/everything-claude-code-mobile · 31 tokens