René's URL Explorer Experiment


Title: perf: reuse OpenAI client and add undici keep-alive Agent with connection warmup by Lellansin · Pull Request #100 · lessweb/deepcode-cli · GitHub

Open Graph Title: perf: reuse OpenAI client and add undici keep-alive Agent with connection warmup by Lellansin · Pull Request #100 · lessweb/deepcode-cli

X Title: perf: reuse OpenAI client and add undici keep-alive Agent with connection warmup by Lellansin · Pull Request #100 · lessweb/deepcode-cli

Description: Deep Code 是专为 deepseek-v4 模型优化的终端 AI 编码助手,支持深度思考、推理强度控制以及 Agent Skills。 - perf: reuse OpenAI client and add undici keep-alive Agent with connection warmup by Lellansin · Pull Request #100 · lessweb/deepcode-cli

Open Graph Description: 概述 优化 OpenAI API 客户端的 HTTP 连接复用,减少用户输入间隙的 TLS 握手开销。 背景 默认 undici 全局 fetch 的 TCP 连接保活时间仅 4 秒 CLI 场景下用户阅读 LLM 输出通常需要 10–30 秒,远超 4 秒阈值 每次新 prompt(含 chat、tool use)都需要重新完成 TCP+TLS 握手(实测 ~127ms),冷启动首字节延...

X Description: 概述 优化 OpenAI API 客户端的 HTTP 连接复用,减少用户输入间隙的 TLS 握手开销。 背景 默认 undici 全局 fetch 的 TCP 连接保活时间仅 4 秒 CLI 场景下用户阅读 LLM 输出通常需要 10–30 秒,远超 4 秒阈值 每次新 prompt(含 chat、tool use)都需要重新完成 TCP+TLS 握手(实测 ~127ms),冷启动首字节延...

Opengraph URL: https://github.com/lessweb/deepcode-cli/pull/100

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:e75841f5-7da8-4931-cced-d747129180f9
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9B76:2495A6:2017648:2E8435E:6A4D0E14
html-safe-nonce01ab37a97643d88c4c45d45720a359442f18dbd43f993f911bcbbe52f34251bd
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Qjc2OjI0OTVBNjoyMDE3NjQ4OjJFODQzNUU6NkE0RDBFMTQiLCJ2aXNpdG9yX2lkIjoiMzk2NDAxMzczOTQ3NzExMDI5MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacdf4db012713ce58467dbdee1966643af705bb2e5b5ded9ffda849cfc145c7b78
hovercard-subject-tagpull_request:3716110063
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/lessweb/deepcode-cli/100/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/674cf7e785707414ed4d8c03bfaa8f5eb64701aeb1a8ac87e228ba0764a95d25/lessweb/deepcode-cli/pull/100
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/674cf7e785707414ed4d8c03bfaa8f5eb64701aeb1a8ac87e228ba0764a95d25/lessweb/deepcode-cli/pull/100
og:image:alt概述 优化 OpenAI API 客户端的 HTTP 连接复用,减少用户输入间隙的 TLS 握手开销。 背景 默认 undici 全局 fetch 的 TCP 连接保活时间仅 4 秒 CLI 场景下用户阅读 LLM 输出通常需要 10–30 秒,远超 4 秒阈值 每次新 prompt(含 chat、tool use)都需要重新完成 TCP+TLS 握手(实测 ~127ms),冷启动首字节延...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameLellansin
hostnamegithub.com
expected-hostnamegithub.com
Nonebcb4661e6fb4fe8b394c51ea02ccdb2236d40dc59afc75a3bbba50bf6517134c
turbo-cache-controlno-cache
go-importgithub.com/lessweb/deepcode-cli git https://github.com/lessweb/deepcode-cli.git
octolytics-dimension-user_id118287711
octolytics-dimension-user_loginlessweb
octolytics-dimension-repository_id1223512305
octolytics-dimension-repository_nwolessweb/deepcode-cli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1223512305
octolytics-dimension-repository_network_root_nwolessweb/deepcode-cli
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasefb70bd3c4b2bec429781b65419e912c66e2d5581
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/lessweb/deepcode-cli/pull/100#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flessweb%2Fdeepcode-cli%2Fpull%2F100
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flessweb%2Fdeepcode-cli%2Fpull%2F100
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=lessweb%2Fdeepcode-cli
Reloadhttps://github.com/lessweb/deepcode-cli/pull/100
Reloadhttps://github.com/lessweb/deepcode-cli/pull/100
Reloadhttps://github.com/lessweb/deepcode-cli/pull/100
Please reload this pagehttps://github.com/lessweb/deepcode-cli/pull/100
lessweb https://github.com/lessweb
deepcode-clihttps://github.com/lessweb/deepcode-cli
Notifications https://github.com/login?return_to=%2Flessweb%2Fdeepcode-cli
Fork 149 https://github.com/login?return_to=%2Flessweb%2Fdeepcode-cli
Star 1.7k https://github.com/login?return_to=%2Flessweb%2Fdeepcode-cli
Code https://github.com/lessweb/deepcode-cli
Issues 42 https://github.com/lessweb/deepcode-cli/issues
Pull requests 22 https://github.com/lessweb/deepcode-cli/pulls
Actions https://github.com/lessweb/deepcode-cli/actions
Projects https://github.com/lessweb/deepcode-cli/projects
Security and quality 0 https://github.com/lessweb/deepcode-cli/security
Insights https://github.com/lessweb/deepcode-cli/pulse
Code https://github.com/lessweb/deepcode-cli
Issues https://github.com/lessweb/deepcode-cli/issues
Pull requests https://github.com/lessweb/deepcode-cli/pulls
Actions https://github.com/lessweb/deepcode-cli/actions
Projects https://github.com/lessweb/deepcode-cli/projects
Security and quality https://github.com/lessweb/deepcode-cli/security
Insights https://github.com/lessweb/deepcode-cli/pulse
qorzjhttps://github.com/qorzj
lessweb:mainhttps://github.com/lessweb/deepcode-cli/tree/main
Lellansin:dev/optimize-keepalive-client-reusehttps://github.com/Lellansin/deepcode-cli/tree/dev/optimize-keepalive-client-reuse
Conversationhttps://github.com/lessweb/deepcode-cli/pull/100
Commits9 (9)https://github.com/lessweb/deepcode-cli/pull/100/commits
Checkshttps://github.com/lessweb/deepcode-cli/pull/100/checks
Files changedhttps://github.com/lessweb/deepcode-cli/pull/100/files
perf: reuse OpenAI client and add undici keep-alive Agent with connection warmuphttps://github.com/lessweb/deepcode-cli/pull/100#top
qorzjhttps://github.com/qorzj
lessweb:mainhttps://github.com/lessweb/deepcode-cli/tree/main
Lellansin:dev/optimize-keepalive-client-reusehttps://github.com/Lellansin/deepcode-cli/tree/dev/optimize-keepalive-client-reuse
https://github.com/Lellansin
Lellansinhttps://github.com/Lellansin
May 20, 2026https://github.com/lessweb/deepcode-cli/pull/100#issue-4485893939
Please reload this pagehttps://github.com/lessweb/deepcode-cli/pull/100
Please reload this pagehttps://github.com/lessweb/deepcode-cli/pull/100
Lellansinhttps://github.com/Lellansin
May 19, 2026 16:24https://github.com/lessweb/deepcode-cli/pull/100#commits-pushed-1bd7e6a
https://github.com/Lellansin
perf: reuse OpenAI client instance and add connection warmuphttps://github.com/lessweb/deepcode-cli/pull/100/commits/1bd7e6a38c3f0f58a9b6971ba31d8c888d9f975d
1bd7e6ahttps://github.com/lessweb/deepcode-cli/pull/100/commits/1bd7e6a38c3f0f58a9b6971ba31d8c888d9f975d
https://github.com/Lellansin
perf: replace undici fetch with custom https.Agent for long keepAlivehttps://github.com/lessweb/deepcode-cli/pull/100/commits/2e5b2ed2a4eed8c463546385ecbf374002a8d6c6
2e5b2edhttps://github.com/lessweb/deepcode-cli/pull/100/commits/2e5b2ed2a4eed8c463546385ecbf374002a8d6c6
https://github.com/Lellansin
refactor: replace custom fetch wrapper with undici Agenthttps://github.com/lessweb/deepcode-cli/pull/100/commits/6f8d2e228d853f8014741c8108f6936e7d037c82
6f8d2e2https://github.com/lessweb/deepcode-cli/pull/100/commits/6f8d2e228d853f8014741c8108f6936e7d037c82
https://github.com/Lellansin
chore: add undici devDependency for custom keepAlive Agenthttps://github.com/lessweb/deepcode-cli/pull/100/commits/255226a3c9bdd7254dd8b5728a0e1bff7de28707
255226ahttps://github.com/lessweb/deepcode-cli/pull/100/commits/255226a3c9bdd7254dd8b5728a0e1bff7de28707
https://github.com/Lellansin
fix: move undici from devDependencies to dependencieshttps://github.com/lessweb/deepcode-cli/pull/100/commits/5b74c00db5bf16e1519c6aaafb233c4c2b78bf1a
5b74c00https://github.com/lessweb/deepcode-cli/pull/100/commits/5b74c00db5bf16e1519c6aaafb233c4c2b78bf1a
https://github.com/Lellansin
fix: downgrade undici to v7 for Node 20 compatibilityhttps://github.com/lessweb/deepcode-cli/pull/100/commits/db78e2b1756e2e9e2f9eea008e30e2f4638e0856
db78e2bhttps://github.com/lessweb/deepcode-cli/pull/100/commits/db78e2b1756e2e9e2f9eea008e30e2f4638e0856
https://github.com/Lellansin
fix: add 3s timeout to warmup request to prevent exit hanghttps://github.com/lessweb/deepcode-cli/pull/100/commits/87d52ade53833a18118e23a595f511a4823b0a6c
87d52adhttps://github.com/lessweb/deepcode-cli/pull/100/commits/87d52ade53833a18118e23a595f511a4823b0a6c
https://github.com/Lellansin
perf: reuse OpenAI client and add undici keep-alive Agent with connec…https://github.com/lessweb/deepcode-cli/pull/100/commits/b2544b831252c5d58f15cbfa6b5c7c04e1a1aa8f
b2544b8https://github.com/lessweb/deepcode-cli/pull/100/commits/b2544b831252c5d58f15cbfa6b5c7c04e1a1aa8f
https://github.com/Lellansin
perf: extend keepAlive timeout from 60s to 180shttps://github.com/lessweb/deepcode-cli/pull/100/commits/61dbcc897b1ce8f93a7bf68d60092429c4b00bff
61dbcc8https://github.com/lessweb/deepcode-cli/pull/100/commits/61dbcc897b1ce8f93a7bf68d60092429c4b00bff
https://github.com/qorzj
qorzjhttps://github.com/qorzj
a385f5dhttps://github.com/lessweb/deepcode-cli/commit/a385f5d411db8bb427eacc6973e41be6c4d72447
May 21, 2026https://github.com/lessweb/deepcode-cli/pull/100#event-25810646185
Please reload this pagehttps://github.com/lessweb/deepcode-cli/pull/100
https://github.com/qorzj
qorzjhttps://github.com/qorzj
May 25, 2026 https://github.com/lessweb/deepcode-cli/pull/100#ref-issue-4515638974
【Release Notes】v0.1.25 #121 https://github.com/lessweb/deepcode-cli/issues/121
https://github.co/hiddenchars
https://github.com/lessweb/deepcode-cli/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flessweb%2Fdeepcode-cli%2Fpull%2F100
Please reload this pagehttps://github.com/lessweb/deepcode-cli/pull/100
https://github.com/Lellansin
https://github.com/qorzj
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.