asyncopenai-concurrency-httpx-pool

REVIEW · 66
Registry indexed

Raise real concurrency in asyncio LLM batch scorers built on the OpenAI SDK (AsyncOpenAI, including OpenAI-compatible providers like DeepSeek). Use when: (1) raising an asyncio.Semaphore above ~100 produces no throughput gain, (2) a batch pipeline saturates near 100 in-flight req

Verified installs0
Stars47
Version1.0.0
Quality64/100 · Promising
Trust66/100 · Sandbox only
Audit78/100 · Needs review

Supply asset profile

Design and creative production

Design assets, images, video, audio, multimodal media, presentation, and creative production skills.

Browse track

Scenario

Design and creative

I need my agent to produce design assets, UI directions, presentations, or creative media workflows.

Agent fit

Claude Code + OpenAI Agents + CLI

Codex, Claude Code, Cursor, CLI, or custom agents.

Install

Ready

npx skills add kennethkhoocy/applied-micro-skills --skill asyncopenai-concurrency-httpx-pool

Maintenance

fresh

Pushed today

Risk

Needs review

Permission surface may require sandboxing

GitHub quality

47

64/100 Quality · 74/100 Trust

Coverage tags

DesignDesign and creativedesign-creativeagent-skill

Review notes

Permission surface may require sandboxing · Low GitHub adoption signal

Agent adoption scorecard

Trust, audit, and install readiness at a glance

These scores combine public repository metadata, OpenAgentSkill review signals, maintenance freshness, and install readiness. They are a shortlist signal, not a replacement for human review.

Quality

Promising
64

Useful candidate, but compare it with alternatives before adopting.

Trust

Sandbox only
66

Useful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.

Audit

Needs review
78

A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.

OpenAgentSkill Trust Score v5

Human review before install

Run only in a sandbox and compare close alternatives before using it for real work.

CodexClaude CodeCursorOpenAgentSkill CLI

Stars

47 GitHub stars

Repo activity

47 stars, 0 forks

Maintenance

Pushed today

License

MIT

Install

npx skills add kennethkhoocy/applied-micro-skills --skill asyncopenai-concurrency-httpx-pool

Install safety

standard package or runtime install path

Permission surface

secrets or environment access, network or browser access

Agent outcomes

No agent outcome data yet

Docs

Strong README/SKILL.md context

Risk summary

Review before production

  • Low GitHub adoption signal
  • Quality score needs review
  • Permission surface needs review: secrets or environment access, network or browser access
  • GitHub adoption: 47 GitHub stars

Install readiness

Install path available

  • Install path is available
  • Repository evidence is available
  • License is declared
  • No Agent Proven outcome evidence yet

Agent-readable metadata

Machine-readable decision data for this skill.

Use this block or the embedded JSON to decide whether an agent should install this skill, choose an alternative, or ask for human review first.

Open JSON

Suited tasks

  • Design and creative workflows
  • Claude Code teams
  • builders willing to evaluate younger projects
  • Inspect visual requirements

Suited agents

CodexClaude CodeCursorOpenAgentSkill CLIOpenAI AgentsCLI

Install decision

Command
npx skills add kennethkhoocy/applied-micro-skills --skill asyncopenai-concurrency-httpx-pool
Policy
review
Human review
yes

Trust and risk

Trust
66/100
Audit
78/100
Risk level
Needs review

Outcome loop

Endpoint
/api/agent/outcome
Event ID
resolve
Outcomes
5

Install command

npx skills add kennethkhoocy/applied-micro-skills --skill asyncopenai-concurrency-httpx-pool

Do not use when

  • teams that need a vendor-supported SLA
  • production agents without a repository review
  • Low GitHub adoption signal
  • High-risk permission hints: Secrets or environment access
  • Permission surface may require sandboxing

Agent safety v2

50/100 · Avoid automatic install

Experimentalreview

Sparse or mixed signals. Useful for discovery, but not for autonomous installation.

Test manually in an isolated workspace and compare against safer alternatives.

Resolve via API

medium

Network access

Skill likely fetches remote pages, APIs, repositories, or external services.

high

Secrets or environment access

Skill metadata references credentials, tokens, environment variables, or secret-bearing workflows.

medium

Database access

Skill may inspect schemas, query databases, or work with persistent stores.

  • High-risk permission hints: Secrets or environment access
  • Permission surface may require sandboxing

Install targets

Install this skill in your agent workflow

Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.

skill install

OpenAgentSkill CLI

Resolve policy, run the source installer safely, and report a verified install receipt.

$ npx --yes https://github.com/Leon-Drq/openagentskill/releases/download/cli-v0.2.1/openagentskill-0.2.1.tgz install kennethkhoocy-asyncopenai-concurrency-httpx-pool

Agent resolve plan

Let an agent verify fit before installing.

The Resolve API returns the selected skill, alternatives, safety policy, audit notes, install target, and copy-paste prompt an agent can follow without scraping this page.

Open text plan

Agent should check

  • Task fit and alternatives from Resolve API.
  • Audit score, trust score, and safety policy warnings.
  • Install target compatibility for Codex, Claude Code, Cursor, or CLI.

Copy prompt

Task: Use asyncopenai-concurrency-httpx-pool in this workspace.
Resolve first: https://www.openagentskill.com/api/agent/resolve?task=Use%20asyncopenai-concurrency-httpx-pool%20for%20an%20agent%20workflow&agent=codex&max_risk=medium
Review install handoff: https://www.openagentskill.com/api/skills/kennethkhoocy-asyncopenai-concurrency-httpx-pool/install
Install command: npx skills add kennethkhoocy/applied-micro-skills --skill asyncopenai-concurrency-httpx-pool
Before running it, summarize audit warnings, required permissions, and the fallback skill if install is risky.

Agent handoff

Give an agent the install path, not another directory page.

Use the public install endpoint to fetch the command, safety checklist, target prompts, and canonical links for this skill.

Open install API

Agent prompt

Use asyncopenai-concurrency-httpx-pool for this task. Review https://www.openagentskill.com/api/skills/kennethkhoocy-asyncopenai-concurrency-httpx-pool/install, then install with: npx skills add kennethkhoocy/applied-micro-skills --skill asyncopenai-concurrency-httpx-pool

Registry metadata

Agent-readable profile for automatic skill selection.

This page exposes the same decision, trust, audit, use-case, and install signals through the Registry API, so agents can rank this skill without scraping the UI.

Open manifest

Agent fit

63/100

Design and creative

Platforms

Claude Code, OpenAI Agents

Audit report

Needs review · 78/100

A machine-readable review of install readiness, security metadata, maintenance, and adoption risk.

View audit reportView eval report

Agent decision cockpit

Fallback candidate for Design and creative

Prototype with this skill first; keep a fallback candidate ready.

63
Readiness
Prototype
Stage

Role in stack

Fallback candidate

Primary fit

Design and creative

Trust label

Prototype first

Install path

Command ready

Use when

  • Design and creative workflows
  • Claude Code teams
  • builders willing to evaluate younger projects

Evidence

  • recent repository activity
  • install command or GitHub repo available
  • 64/100 quality profile
  • 1 OpenAgentSkill engagement events

review first

  • Low GitHub adoption signal

Implementation path

  1. 1Install it in a sandbox agent and run one Design and creative task end to end.
  2. 2Compare output quality, latency, and failure behavior against at least one alternative.
  3. 3Promote it into production only after reviewing repository permissions, license, and maintenance signals.

Trust profile

Sandbox only

Useful candidate with missing or mixed trust signals. Keep it in an isolated workspace until the outcome loop proves task fit.

66
OpenAgentSkill Trust Score

GitHub adoption

CHECK

47 GitHub stars

Stars/forks activity

CHECK

47 stars, 0 forks; issue activity unavailable in current metadata

Recent maintenance

PASS

Pushed today

License clarity

PASS

MIT

Good signals

  • AI review approved
  • Install path is available
  • Repository evidence is available
  • Recently maintained repository
  • Install command has no obvious high-risk pattern
  • Outcome loop is ready but needs first real agent run

Review before install

  • Low GitHub adoption signal
  • Quality score needs review
  • Permission surface needs review: secrets or environment access, network or browser access
  • GitHub adoption: 47 GitHub stars
  • Stars/forks activity: 47 stars, 0 forks; issue activity unavailable in current metadata
  • Permission surface: secrets or environment access, network or browser access
  • No real agent outcome reports yet
  • Human review required before unattended installation

Recommended action

Run only in a sandbox and compare close alternatives before using it for real work.

Quality profile

Promising candidate for agent workflows

Useful candidate, but compare it with alternatives before adopting.

64
GitHub stars
47
Freshness
Today
Install ready
Yes
License
MIT
Review before install: Low GitHub adoption signal

Workflow fit

Use this skill in these scenarios

Workflow fit

Add it to a complete workflow

Alternative shortlist

Compare before you install

Similar skills that may fit this task.

Compare all

Overview

--- name: asyncopenai-concurrency-httpx-pool description: | Raise real concurrency in asyncio LLM batch scorers built on the OpenAI SDK (AsyncOpenAI, including OpenAI-compatible providers like DeepSeek). Use when: (1) raising an asyncio.Semaphore above ~100 produces no throughput gain, (2) a batch pipeline saturates near 100 in-flight requests despite a larger semaphore, (3) planning a high-concurrency campaign against a provider with no hard rate limit (DeepSeek v4-flash tolerates 2000+ in flight). Root cause: AsyncOpenAI's default httpx pool caps max_connections at 100, silently bottlenecking any larger semaphore — you must pass a custom http_client with httpx.Limits sized to the semaphore. author: Claude Code version: 1.0.0 date: 2026-07-17 ---

# AsyncOpenAI Concurrency: the Hidden httpx Pool Cap

## Problem

Async batch scorers typically gate concurrency with `asyncio.Semaphore(N)`. Raising N above ~100 silently does nothing: the OpenAI SDK's default httpx transport caps the connection pool at `max_connections=100`, so excess tasks queue inside httpx instead of reaching the provider. The semaphore looks like the throttle but is not the binding constraint — there is no error, just a throughput ceiling.

## Context / Trigger Conditions

- `asyncio.Semaphore(N)` with N > 100 around `client.chat.completions.create` shows the same throughput as N = 100 - Client constructed as `AsyncOpenAI(api_key=..., base_url=...)` with no `http_client` argument (the default transport) - Provider is known to allow high concurrency (DeepSeek v4-flash: ~2500) - Symptom check: requests-in-flight measured at the server never exceeds ~100

## Solution

Size the httpx pool to the semaphore when constructing the client:

```python import httpx from openai import AsyncOpenAI

CONCURRENCY = 2000 client = AsyncOpenAI( api_key=..., base_url="https://api.deepseek.com", http_client=httpx.AsyncClient(limits=httpx.Limits( max_connections=CONCURRENCY, max_keepalive_connections=CONCURRENCY))) sem = asyncio.Semaphore(CONCURRENCY) ```

Both edits are required; either alone caps the other. Keep the per-request retry loop — at high concurrency transient failures are more likely, and the retry envelope is what turns them into non-events.

## Verification

Throughput scales with N. Verified 2026-07-17 on DeepSeek v4-flash (deepseek-chat, JSON-mode unit scoring, ~1.5k-token prompts): at semaphore 50 a cold 13.8k-request chunk took ~70 min; at semaphore 2000 + matched pool, a 14.4k-request chunk took ~11 min (~40 req/s sustained, ~250/s burst on a 1.7k-request tail chunk), 0 failed requests, 0 schema-invalid responses. Effective speedup ~7x rather than 40x — server-side queuing absorbs the rest — but with zero reliability cost.

## Example

Specialist Directors US T1 campaign: final 8 chunks (100,243 calls) completed in ~55 minutes for $8.08 after the fix, versus a projected ~9 hours at the old setting. The edit is two lines in the scorer; the semaphore constant alone would have been a silent no-op.

## Notes

- DeepSeek publishes no hard rate limit and handled 2000 in-flight cleanly; the practical ceiling reported is ~2500. Other providers enforce RPM/TPM caps — check before sizing. - Windows: default asyncio proactor loop handled 2000 sockets without tuning; no ulimit-style adjustment needed. - Companion ops lesson from the same campaign: when a run's *plan* changes scale (two-night legs -> one-shot), re-audit the launch glue's hardcoded limits — a wrapper `MAX-HOURS=10` safety cap sized for the old plan hard-killed a healthy runner at 97/108 chunks. Caps and budgets in supervisor scripts must be revisited whenever expected duration changes. - Concurrency is a pure throughput knob: per-request outputs are unchanged (temperature 0, independent requests), so raising it mid-campaign does not create a scoring seam — unlike model/prompt changes, which do (see [llm-campaign-drift-gate]).

Technical details

Version
1.0.0
License
MIT
Last updated
Aug 24, 2026
Published
Aug 24, 2026

Decision snapshot

Fallback candidate

63
Ready
Prototype
Stage

recent repository activity

Audit

Install review

Install and adoption review

78
Needs review
Security
79/100
Maintenance
100/100
Install
92/100
Open full auditView eval report

Agent-proven evidence

Agent-proven evidence

Outcome reports after resolve, review, install, and one narrow run.

0
Proven
Needs first agent runAuto-install: review firstLast: Unknown
Success rate
Recent failure
Outcomes
0
Output quality
Failed
0
Not relevant
0
Installs
0
Risk blocked
0
Setup needed
0
Production
0

No agent outcome data yet. The first agent run can report success, setup needs, risk blocks, failure, or not-relevant through /api/agent/outcome.

Install

Add to agent workflow

Free and open source. Review the report before installing into production agents.

Growth loop

Share kit

X

Scenario-led draft for asyncopenai-concurrency-httpx-pool, ready for a manual X post.

Curator note
asyncopenai-concurrency-httpx-pool: Raise real concurrency in asyncio LLM batch scorers built on the OpenAI SDK (AsyncOpenAI, inc...

47 stars

https://www.openagentskill.com/skills/kennethkhoocy-asyncopenai-concurrency-httpx-pool?ref=x
Open X draft
Optional reply with install command
Listing + install path for asyncopenai-concurrency-httpx-pool:
https://www.openagentskill.com/skills/kennethkhoocy-asyncopenai-concurrency-httpx-pool?ref=x

Install: npx skills add kennethkhoocy/applied-micro-skills --skill asyncopenai-concurrency...

Listing source

Registry indexed

Claimable

This listing was indexed from public sources and is not marked official until a maintainer claim is approved.

Indexed by
OpenAgentSkill community index

Attribution links to the public repository or creator profile. Creators can claim the listing to update ownership signals.

Claim this skill

Owner claim

Claim this skill listing

This Registry indexed listing is attributed to Claude Code but is not marked official yet. Claim it to add a verified owner signal and make future launch, install, and audit updates easier to trust.

Creator backlink kit

Add the evidence badges to your README

Show the canonical listing, current trust and audit signals, and real Agent-Proven evidence where developers evaluate the repository.

[![Listed on OpenAgentSkill](https://www.openagentskill.com/api/badge/kennethkhoocy-asyncopenai-concurrency-httpx-pool?metric=listed&label=Listed)](https://www.openagentskill.com/skills/kennethkhoocy-asyncopenai-concurrency-httpx-pool)
[![OpenAgentSkill Trust](https://www.openagentskill.com/api/badge/kennethkhoocy-asyncopenai-concurrency-httpx-pool?metric=trust&label=Trust)](https://www.openagentskill.com/skills/kennethkhoocy-asyncopenai-concurrency-httpx-pool)
[![OpenAgentSkill Audit](https://www.openagentskill.com/api/badge/kennethkhoocy-asyncopenai-concurrency-httpx-pool?metric=audit&label=Audit)](https://www.openagentskill.com/skills/kennethkhoocy-asyncopenai-concurrency-httpx-pool/audit)
[![Agent Proven](https://www.openagentskill.com/api/badge/kennethkhoocy-asyncopenai-concurrency-httpx-pool?metric=proven&label=Agent%20Proven)](https://www.openagentskill.com/skills/kennethkhoocy-asyncopenai-concurrency-httpx-pool)

Author

C

Claude Code

@claude-code

Health signals

GitHub stars
47
Quality score
35/100
Last GitHub push
Aug 24, 2026
Framework hints
Unknown
OpenAgentSkill views
1
Install copies
0
Outbound clicks
0

Community signal

Share whether this skill looks useful for your agent workflow. Aggregated feedback improves rankings over time.

Trust & safety

Sandbox only

66
  • GitHub adoption47 GitHub starsCHECK
  • Stars/forks activity47 stars, 0 forks; issue activity unavailable in current metadataCHECK
  • Recent maintenancePushed todayPASS
  • License clarityMITPASS
  • README/SKILL.md completenessMetadata includes enough usage and workflow contextPASS
  • Dependency/runtime riskcredential or environment access, network or browser surfaceINFO