René's URL Explorer Experiment


Title: feat(cli): 新增 --headless 非交互模式,支持执行完自动退出 by JiGuangWorker · Pull Request #207 · lessweb/deepcode-cli · GitHub

Open Graph Title: feat(cli): 新增 --headless 非交互模式,支持执行完自动退出 by JiGuangWorker · Pull Request #207 · lessweb/deepcode-cli

X Title: feat(cli): 新增 --headless 非交互模式,支持执行完自动退出 by JiGuangWorker · Pull Request #207 · lessweb/deepcode-cli

Description: 概述 新增 --headless 参数,允许 deepcode 在非交互模式下执行 prompt 后自动退出,不再停留 TUI 界面。 Close #139 使用场景 --headless 主要面向以下场景: CI/CD 流水线集成:在 GitHub Actions / Jenkins 等环境中自动执行代码审查、变更摘要等任务 Shell 脚本与管道组合:输出到 stdout,可与其他 Unix 工具链组合(如 deepcode --headless -p "..." | tee result.txt) Docker 容器化部署:无 TTY 环境下的容器内 Agent 集群化使用 批量任务处理:对多个项目目录执行相同的分析指令 设计决策 权限策略 headless 模式没有用户可交互,因此: 权限自动批准:在 runHeadless() 中,getResolvedSettings 将 permissions 强制设为 { defaultMode: "allowAll" },忽略用户在 settings.json 中的 askAll 配置 安全考量:--headless 是一个显式参数,使用者需明确指定;默认执行路径(无 --headless)不受任何影响 架构实现 核心改动是绕过 Ink/React TUI 渲染流程,直接调用 SessionManager: 改动文件 packages/cli/src/cli-args.ts:新增 --headless 布尔参数 + 校验 packages/cli/src/cli.tsx:新增 runHeadless() 函数 使用方式 deepcode --headless -p "总结这个项目" deepcode --headless -p "列出所有 API 接口" | grep "auth"

Open Graph Description: 概述 新增 --headless 参数,允许 deepcode 在非交互模式下执行 prompt 后自动退出,不再停留 TUI 界面。 Close #139 使用场景 --headless 主要面向以下场景: CI/CD 流水线集成:在 GitHub Actions / Jenkins 等环境中自动执行代码审查、变更摘要等任务 Shell 脚本与管道组合:输出到 stdout,可与其他 U...

X Description: 概述 新增 --headless 参数,允许 deepcode 在非交互模式下执行 prompt 后自动退出,不再停留 TUI 界面。 Close #139 使用场景 --headless 主要面向以下场景: CI/CD 流水线集成:在 GitHub Actions / Jenkins 等环境中自动执行代码审查、变更摘要等任务 Shell 脚本与管道组合:输出到 stdout,可与其他 U...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:4feedbb5-ea8f-5fea-78f8-5cc5c39eeb4e
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC114:2702E6:A6B6A4:E07B8A:6A4D434C
html-safe-nonce17f3f4200fe65b91643e111fde1125273228c86b1c6775b0696d82444d1a00b3
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMTE0OjI3MDJFNjpBNkI2QTQ6RTA3QjhBOjZBNEQ0MzRDIiwidmlzaXRvcl9pZCI6IjQwMTIxMDc2NDUwOTEzOTg0NzYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac0153d24d5f1e3be7f4d7978965a0a6fdad245926ca7309d821a5c4ff524d6e1e
hovercard-subject-tagpull_request:3951254113
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/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/lessweb/deepcode-cli/pull/207/files
twitter:imagehttps://avatars.githubusercontent.com/u/288571420?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/288571420?s=400&v=4
og:image:alt概述 新增 --headless 参数,允许 deepcode 在非交互模式下执行 prompt 后自动退出,不再停留 TUI 界面。 Close #139 使用场景 --headless 主要面向以下场景: CI/CD 流水线集成:在 GitHub Actions / Jenkins 等环境中自动执行代码审查、变更摘要等任务 Shell 脚本与管道组合:输出到 stdout,可与其他 U...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None92571a8944142227b7e19cd10918b1ddd06e5066c1ad5bc7e4769cf6140a87e6
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
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/207/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flessweb%2Fdeepcode-cli%2Fpull%2F207%2Ffiles
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%2F207%2Ffiles
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%2Ffiles&source=header-repo&source_repo=lessweb%2Fdeepcode-cli
Reloadhttps://github.com/lessweb/deepcode-cli/pull/207/files
Reloadhttps://github.com/lessweb/deepcode-cli/pull/207/files
Reloadhttps://github.com/lessweb/deepcode-cli/pull/207/files
Please reload this pagehttps://github.com/lessweb/deepcode-cli/pull/207/files
lessweb https://github.com/lessweb
deepcode-clihttps://github.com/lessweb/deepcode-cli
Notifications https://github.com/login?return_to=%2Flessweb%2Fdeepcode-cli
Fork 151 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
Sign up for GitHub https://github.com/signup?return_to=%2Flessweb%2Fdeepcode-cli%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Flessweb%2Fdeepcode-cli%2Fissues%2Fnew%2Fchoose
JiGuangWorkerhttps://github.com/JiGuangWorker
lessweb:mainhttps://github.com/lessweb/deepcode-cli/tree/main
JiGuangWorker:feature/headless-modehttps://github.com/JiGuangWorker/deepcode-cli/tree/feature/headless-mode
Conversation 1 https://github.com/lessweb/deepcode-cli/pull/207
Commits 1 https://github.com/lessweb/deepcode-cli/pull/207/commits
Checks 0 https://github.com/lessweb/deepcode-cli/pull/207/checks
Files changed https://github.com/lessweb/deepcode-cli/pull/207/files
Please reload this pagehttps://github.com/lessweb/deepcode-cli/pull/207/files
feat(cli): 新增 --headless 非交互模式,支持执行完自动退出 https://github.com/lessweb/deepcode-cli/pull/207/files#top
Show all changes 1 commit https://github.com/lessweb/deepcode-cli/pull/207/files
722dd04 feat(cli): add --headless flag for non-interactive run-and-exit mode go-app-cloud Jun 28, 2026 https://github.com/lessweb/deepcode-cli/pull/207/commits/722dd04459bed6c2257a52fbc645ed5db69cbd1c
Clear filters https://github.com/lessweb/deepcode-cli/pull/207/files
Please reload this pagehttps://github.com/lessweb/deepcode-cli/pull/207/files
Please reload this pagehttps://github.com/lessweb/deepcode-cli/pull/207/files
quickstart.md https://github.com/lessweb/deepcode-cli/pull/207/files#diff-988a5392cf907f7c5728b8ac90445facc7f835f3c00375764ec99769dcde2d5a
quickstart_en.md https://github.com/lessweb/deepcode-cli/pull/207/files#diff-42ea073f9ac3b6c99a7f11bdd55365dd61e6dd5ad6b529a2299d3048bd813262
cli-args.ts https://github.com/lessweb/deepcode-cli/pull/207/files#diff-d463c6c52a1842c491899e206bb02dc29b80afe43706eb53fe967bbf9aa0c985
cli.tsx https://github.com/lessweb/deepcode-cli/pull/207/files#diff-a41539444c74b5a2ba0684ecd0815fdf8463c8a617d5f01aee7b9ef230208d85
docs/quickstart.mdhttps://github.com/lessweb/deepcode-cli/pull/207/files#diff-988a5392cf907f7c5728b8ac90445facc7f835f3c00375764ec99769dcde2d5a
View file https://github.com/lessweb/deepcode-cli/blob/722dd04459bed6c2257a52fbc645ed5db69cbd1c/docs/quickstart.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/lessweb/deepcode-cli/pull/207/{{ revealButtonHref }}
https://github.com/lessweb/deepcode-cli/pull/207/files#diff-988a5392cf907f7c5728b8ac90445facc7f835f3c00375764ec99769dcde2d5a
https://github.com/lessweb/deepcode-cli/pull/207/files#diff-988a5392cf907f7c5728b8ac90445facc7f835f3c00375764ec99769dcde2d5a
docs/quickstart_en.mdhttps://github.com/lessweb/deepcode-cli/pull/207/files#diff-42ea073f9ac3b6c99a7f11bdd55365dd61e6dd5ad6b529a2299d3048bd813262
View file https://github.com/lessweb/deepcode-cli/blob/722dd04459bed6c2257a52fbc645ed5db69cbd1c/docs/quickstart_en.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/lessweb/deepcode-cli/pull/207/{{ revealButtonHref }}
https://github.com/lessweb/deepcode-cli/pull/207/files#diff-42ea073f9ac3b6c99a7f11bdd55365dd61e6dd5ad6b529a2299d3048bd813262
https://github.com/lessweb/deepcode-cli/pull/207/files#diff-42ea073f9ac3b6c99a7f11bdd55365dd61e6dd5ad6b529a2299d3048bd813262
packages/cli/src/cli-args.tshttps://github.com/lessweb/deepcode-cli/pull/207/files#diff-d463c6c52a1842c491899e206bb02dc29b80afe43706eb53fe967bbf9aa0c985
View file https://github.com/lessweb/deepcode-cli/blob/722dd04459bed6c2257a52fbc645ed5db69cbd1c/packages/cli/src/cli-args.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/lessweb/deepcode-cli/pull/207/{{ revealButtonHref }}
https://github.com/lessweb/deepcode-cli/pull/207/files#diff-d463c6c52a1842c491899e206bb02dc29b80afe43706eb53fe967bbf9aa0c985
https://github.com/lessweb/deepcode-cli/pull/207/files#diff-d463c6c52a1842c491899e206bb02dc29b80afe43706eb53fe967bbf9aa0c985
https://github.com/lessweb/deepcode-cli/pull/207/files#diff-d463c6c52a1842c491899e206bb02dc29b80afe43706eb53fe967bbf9aa0c985
https://github.com/lessweb/deepcode-cli/pull/207/files#diff-d463c6c52a1842c491899e206bb02dc29b80afe43706eb53fe967bbf9aa0c985
https://github.com/lessweb/deepcode-cli/pull/207/files#diff-d463c6c52a1842c491899e206bb02dc29b80afe43706eb53fe967bbf9aa0c985
https://github.com/lessweb/deepcode-cli/pull/207/files#diff-d463c6c52a1842c491899e206bb02dc29b80afe43706eb53fe967bbf9aa0c985
https://github.com/lessweb/deepcode-cli/pull/207/files#diff-d463c6c52a1842c491899e206bb02dc29b80afe43706eb53fe967bbf9aa0c985
packages/cli/src/cli.tsxhttps://github.com/lessweb/deepcode-cli/pull/207/files#diff-a41539444c74b5a2ba0684ecd0815fdf8463c8a617d5f01aee7b9ef230208d85
View file https://github.com/lessweb/deepcode-cli/blob/722dd04459bed6c2257a52fbc645ed5db69cbd1c/packages/cli/src/cli.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/lessweb/deepcode-cli/pull/207/{{ revealButtonHref }}
https://github.com/lessweb/deepcode-cli/pull/207/files#diff-a41539444c74b5a2ba0684ecd0815fdf8463c8a617d5f01aee7b9ef230208d85
https://github.com/lessweb/deepcode-cli/pull/207/files#diff-a41539444c74b5a2ba0684ecd0815fdf8463c8a617d5f01aee7b9ef230208d85
https://github.com/lessweb/deepcode-cli/pull/207/files#diff-a41539444c74b5a2ba0684ecd0815fdf8463c8a617d5f01aee7b9ef230208d85
https://github.com/lessweb/deepcode-cli/pull/207/files#diff-a41539444c74b5a2ba0684ecd0815fdf8463c8a617d5f01aee7b9ef230208d85
https://github.com/lessweb/deepcode-cli/pull/207/files#diff-a41539444c74b5a2ba0684ecd0815fdf8463c8a617d5f01aee7b9ef230208d85
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.