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/:user_id/:repository/pull/:id/commits(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:e5ec3998-ba97-400b-912a-9f74959ebbb9
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC472:2C0E24:2704BD:34B26A:6A4D3476
html-safe-nonce0f1c34edae35ca9a9725fbde7b845657586774a627e3132ba88c7dc88b9b6526
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNDcyOjJDMEUyNDoyNzA0QkQ6MzRCMjZBOjZBNEQzNDc2IiwidmlzaXRvcl9pZCI6IjE0MDU1NzY5NDIxNzgyNzQ0NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac3d9db0783777dd6e60dbffca8b6f60c42600e4dffbef5ee752d8ead5477f278e
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///pull_requests/show/commits
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/lessweb/deepcode-cli/pull/100/commits
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
None92571a8944142227b7e19cd10918b1ddd06e5066c1ad5bc7e4769cf6140a87e6
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
release56fc8347865a14e2ec811533d68f929cf4e0ec19
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/lessweb/deepcode-cli/pull/100/commits#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flessweb%2Fdeepcode-cli%2Fpull%2F100%2Fcommits
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%2Fcommits
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%2Fpull_requests%2Fshow%2Fcommits&source=header-repo&source_repo=lessweb%2Fdeepcode-cli
Reloadhttps://github.com/lessweb/deepcode-cli/pull/100/commits
Reloadhttps://github.com/lessweb/deepcode-cli/pull/100/commits
Reloadhttps://github.com/lessweb/deepcode-cli/pull/100/commits
Please reload this pagehttps://github.com/lessweb/deepcode-cli/pull/100/commits
lessweb https://github.com/lessweb
deepcode-clihttps://github.com/lessweb/deepcode-cli
Notifications https://github.com/login?return_to=%2Flessweb%2Fdeepcode-cli
Fork 150 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 43 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/commits#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
perf: reuse OpenAI client instance and add connection warmuphttps://github.com/lessweb/deepcode-cli/pull/100/commits/1bd7e6a38c3f0f58a9b6971ba31d8c888d9f975d
https://github.com/Lellansin
Lellansinhttps://github.com/lessweb/deepcode-cli/commits?author=Lellansin
1bd7e6ahttps://github.com/lessweb/deepcode-cli/pull/100/commits/1bd7e6a38c3f0f58a9b6971ba31d8c888d9f975d
https://github.com/lessweb/deepcode-cli/tree/1bd7e6a38c3f0f58a9b6971ba31d8c888d9f975d
perf: replace undici fetch with custom https.Agent for long keepAlivehttps://github.com/lessweb/deepcode-cli/pull/100/commits/2e5b2ed2a4eed8c463546385ecbf374002a8d6c6
https://github.com/Lellansin
Lellansinhttps://github.com/lessweb/deepcode-cli/commits?author=Lellansin
2e5b2edhttps://github.com/lessweb/deepcode-cli/pull/100/commits/2e5b2ed2a4eed8c463546385ecbf374002a8d6c6
https://github.com/lessweb/deepcode-cli/tree/2e5b2ed2a4eed8c463546385ecbf374002a8d6c6
refactor: replace custom fetch wrapper with undici Agenthttps://github.com/lessweb/deepcode-cli/pull/100/commits/6f8d2e228d853f8014741c8108f6936e7d037c82
https://github.com/Lellansin
Lellansinhttps://github.com/lessweb/deepcode-cli/commits?author=Lellansin
6f8d2e2https://github.com/lessweb/deepcode-cli/pull/100/commits/6f8d2e228d853f8014741c8108f6936e7d037c82
https://github.com/lessweb/deepcode-cli/tree/6f8d2e228d853f8014741c8108f6936e7d037c82
chore: add undici devDependency for custom keepAlive Agenthttps://github.com/lessweb/deepcode-cli/pull/100/commits/255226a3c9bdd7254dd8b5728a0e1bff7de28707
https://github.com/Lellansin
Lellansinhttps://github.com/lessweb/deepcode-cli/commits?author=Lellansin
255226ahttps://github.com/lessweb/deepcode-cli/pull/100/commits/255226a3c9bdd7254dd8b5728a0e1bff7de28707
https://github.com/lessweb/deepcode-cli/tree/255226a3c9bdd7254dd8b5728a0e1bff7de28707
fix: move undici from devDependencies to dependencieshttps://github.com/lessweb/deepcode-cli/pull/100/commits/5b74c00db5bf16e1519c6aaafb233c4c2b78bf1a
https://github.com/Lellansin
Lellansinhttps://github.com/lessweb/deepcode-cli/commits?author=Lellansin
5b74c00https://github.com/lessweb/deepcode-cli/pull/100/commits/5b74c00db5bf16e1519c6aaafb233c4c2b78bf1a
https://github.com/lessweb/deepcode-cli/tree/5b74c00db5bf16e1519c6aaafb233c4c2b78bf1a
fix: downgrade undici to v7 for Node 20 compatibilityhttps://github.com/lessweb/deepcode-cli/pull/100/commits/db78e2b1756e2e9e2f9eea008e30e2f4638e0856
https://github.com/Lellansin
Lellansinhttps://github.com/lessweb/deepcode-cli/commits?author=Lellansin
db78e2bhttps://github.com/lessweb/deepcode-cli/pull/100/commits/db78e2b1756e2e9e2f9eea008e30e2f4638e0856
https://github.com/lessweb/deepcode-cli/tree/db78e2b1756e2e9e2f9eea008e30e2f4638e0856
fix: add 3s timeout to warmup request to prevent exit hanghttps://github.com/lessweb/deepcode-cli/pull/100/commits/87d52ade53833a18118e23a595f511a4823b0a6c
https://github.com/Lellansin
Lellansinhttps://github.com/lessweb/deepcode-cli/commits?author=Lellansin
87d52adhttps://github.com/lessweb/deepcode-cli/pull/100/commits/87d52ade53833a18118e23a595f511a4823b0a6c
https://github.com/lessweb/deepcode-cli/tree/87d52ade53833a18118e23a595f511a4823b0a6c
perf: reuse OpenAI client and add undici keep-alive Agent with connection warmuphttps://github.com/lessweb/deepcode-cli/pull/100/commits/b2544b831252c5d58f15cbfa6b5c7c04e1a1aa8f
https://github.com/Lellansin
Lellansinhttps://github.com/lessweb/deepcode-cli/commits?author=Lellansin
b2544b8https://github.com/lessweb/deepcode-cli/pull/100/commits/b2544b831252c5d58f15cbfa6b5c7c04e1a1aa8f
https://github.com/lessweb/deepcode-cli/tree/b2544b831252c5d58f15cbfa6b5c7c04e1a1aa8f
perf: extend keepAlive timeout from 60s to 180shttps://github.com/lessweb/deepcode-cli/pull/100/commits/61dbcc897b1ce8f93a7bf68d60092429c4b00bff
https://github.com/Lellansin
Lellansinhttps://github.com/lessweb/deepcode-cli/commits?author=Lellansin
61dbcc8https://github.com/lessweb/deepcode-cli/pull/100/commits/61dbcc897b1ce8f93a7bf68d60092429c4b00bff
https://github.com/lessweb/deepcode-cli/tree/61dbcc897b1ce8f93a7bf68d60092429c4b00bff
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.