智能助手网
标签聚合 CLI

/tag/CLI

linux.do · 2026-04-18 16:15:57+08:00 · tech

无论是在vscode的插件中使用,还是各种版本的gui中,都有一个通病 那就是: 可能ai还在回复,还在执行,因为时间比较长,或者是网络有延迟,或者是输出的信息让gui工具以为这就是最终的回复结果了,然后就戛然而止 即使他说接下来执行什么什么,但是界面中就是已经停止了, 看图: 这个是我使用的是vscode中的插件,昨天感觉很顺滑,今天更新了一下,然后又开始了 其他的gui工具有同样的通病,还是老老实实回到cli吧 1 个帖子 - 1 位参与者 阅读完整话题

linux.do · 2026-04-18 12:03:11+08:00 · tech

昨天,在群里小伙伴的提醒下,我了解到通过反代 Codex 也可以进行图片的生成和编辑了。随即我进行了一番实验,使用 GPT-Image-1.5 成功生成了如下图片: 技术原理:工具调用(Tool Calling) 与 Gemini 使用专用图片模型(如 NanoBanana 系列)的逻辑不同,在 Codex 中,生图功能是通过 调用工具 实现的,并不依赖特定的模型名称。 基于这一特性,我们可以利用 CLIProxyAPI 的 模型别名 配合 Payload 重写 功能,自定义一套专属的“文生图模型”。下面我分享一下自己的配置思路和使用方法,希望能起到抛砖引玉的作用。 PS:下文前提是已经安装配置好 CLIProxyAPI 并添加了 Codex 的 OAuth 凭证。 1. 配置文件修改 在 CLIProxyAPI 的配置文件中添加以下内容。这里我们将 gpt-5.4-mini 映射为不同分辨率的生图模型,并通过 Payload 强制开启 image_generation 工具。 oauth-model-alias: codex: - name: gpt-5.4-mini alias: gpt-image-1024x1024 fork: true - name: gpt-5.4-mini alias: gpt-image-1024x1536 fork: true - name: gpt-5.4-mini alias: gpt-image-1536x1024 fork: true payload: override-raw: - models: - name: gpt-image-1024x1024 protocol: codex params: tools: '[{"type":"image_generation", "size": "1024x1024", "quality": "high", "background": "auto"}]' tool_choice: '{"type": "image_generation"}' - models: - name: gpt-image-1024x1536 protocol: codex params: tools: '[{"type":"image_generation", "size": "1024x1536", "quality": "high", "background": "auto"}]' tool_choice: '{"type": "image_generation"}' - models: - name: gpt-image-1536x1024 protocol: codex params: tools: '[{"type":"image_generation", "size": "1536x1024", "quality": "high", "background": "auto"}]' tool_choice: '{"type": "image_generation"}' 添加完成后,我们就可以直接调用 gpt-image-1024x1024 、 gpt-image-1024x1536 和 gpt-image-1536x1024 这三个自定义模型了。 2. 快速调用脚本 (PowerShell) 由于目前我还未找到好用的生图客户端,我编写了一个简单的 Windows PowerShell 脚本供大家参考。 使用方法: 修改脚本前四行的 apiUrl 、 apiKey 等参数。 将完整脚本粘贴至 PowerShell 窗口运行。 等待约数十秒,即可在当前运行路径下看到生成的图片。 $apiUrl = "https://你的CLIProxyAPI地址/v1/responses" $apiKey = "你的CLIProxyAPI的apikey" $model = "gpt-image-1536x1024" $text = "画一张赛博朋克的香港,要有汉字" $bodyObject = @{ model = $model instructions = "You are a helpful assistant." input = @( @{ type = "message" role = "user" content = @( @{ type = "input_text" text = $text } ) } ) parallel_tool_calls = $true reasoning = @{ effort = "high" summary = "auto" } stream = $true store = $false include = @( "reasoning.encrypted_content" ) } $body = $bodyObject | ConvertTo-Json -Depth 100 -Compress $outBase = "generated" $utf8NoBom = New-Object System.Text.UTF8Encoding($false) $tempBodyFile = Join-Path $env:TEMP ("response-body-" + [guid]::NewGuid().ToString("N") + ".json") [System.IO.File]::WriteAllText($tempBodyFile, $body, $utf8NoBom) try { curl.exe --silent --show-error --no-buffer ` -X POST $apiUrl ` -H "Content-Type: application/json" ` -H "Authorization: Bearer $apiKey" ` --data-binary ("@" + $tempBodyFile) | ForEach-Object -Begin { $eventType = $null $dataLines = [System.Collections.Generic.List[string]]::new() function Save-Bytes { param([string]$Path, [string]$Base64) [System.IO.File]::WriteAllBytes($Path, [Convert]::FromBase64String($Base64)) Write-Host "Saved $Path" } function Save-ImageGenerationCallResult { param([object]$ImageCall) if (-not $ImageCall) { return } if ($ImageCall.type -ne "image_generation_call") { return } if (-not $ImageCall.result) { return } $ext = if ($ImageCall.output_format) { [string]$ImageCall.output_format } else { "png" } $path = Join-Path (Get-Location) "$outBase.$ext" Save-Bytes -Path $path -Base64 ([string]$ImageCall.result) } function ConvertFrom-JsonCompat { param([string]$Json) if ($PSVersionTable.PSVersion.Major -ge 6) { return $Json | ConvertFrom-Json -Depth 100 } return $Json | ConvertFrom-Json } function Flush-SseEvent { param([string]$Type, [System.Collections.Generic.List[string]]$DataLines) if (-not $Type -or $DataLines.Count -eq 0) { return } $json = ($DataLines -join "`n").Trim() if (-not $json -or $json -eq "[DONE]") { return } try { $obj = ConvertFrom-JsonCompat -Json $json } catch { return } switch ($Type) { "response.output_item.done" { Save-ImageGenerationCallResult -ImageCall $obj.item } "response.completed" { $imageCall = @( $obj.response.output | Where-Object { $_.type -eq "image_generation_call" -and $_.result } ) | Select-Object -First 1 Save-ImageGenerationCallResult -ImageCall $imageCall } } } } -Process { $line = [string]$_ if ($line.StartsWith("event:")) { if ($eventType -or $dataLines.Count -gt 0) { Flush-SseEvent -Type $eventType -DataLines $dataLines $dataLines = [System.Collections.Generic.List[string]]::new() } $eventType = $line.Substring(6).Trim() return } if ($line.StartsWith("data:")) { $dataLines.Add($line.Substring(5).TrimStart()) return } if ([string]::IsNullOrWhiteSpace($line)) { Flush-SseEvent -Type $eventType -DataLines $dataLines $eventType = $null $dataLines = [System.Collections.Generic.List[string]]::new() } } -End { Flush-SseEvent -Type $eventType -DataLines $dataLines } } finally { if (Test-Path -LiteralPath $tempBodyFile) { Remove-Item -LiteralPath $tempBodyFile -Force } } 相关资源 如需了解更详细的参数调整可以参考 OpenAI 官方文档 5 个帖子 - 4 位参与者 阅读完整话题

hnrss.org · 2026-04-18 11:09:05+08:00 · tech

devnexus is an open-source cli that gives agents persistent shared memory across repos, sessions, and engineers. It maps out dependencies and relations at the function level, builds a code graph, and writes it into a shared Obsidian vault that every agent reads before writing code. Past decisions are also linked directly to the code they touched, so no one goes down the same dead end twice. Still building it out but I would love to hear any thoughts/feedback Comments URL: https://news.ycombinator.com/item?id=47812829 Points: 4 # Comments: 0

www.ithome.com · 2026-04-18 07:28:55+08:00 · tech

IT之家 4 月 18 日消息,北京时间今天(4 月 18 日)凌晨,据外媒 Windows Latest 报道,微软确认将停止支持视频编辑工具 Clipchamp 的 iOS 版,并引导用户转向桌面端和网页版。 微软在 2021 年 9 月收购澳大利亚视频编辑工具 Clipchamp,并将其整合进 Microsoft 365。此前,并无迹象显示该产品被弱化。 在 iOS 设备打开 Clipchamp 时,应用将弹出“即将停止服务”提示,并要求用户在项目丢失前进行处理。 微软解释称,大多数用户更倾向于在 网页端和桌面端 编辑视频,因此公司决定将资源 集中在 Windows 11 和网页版 。 公司还提醒, 在 2026 年 6 月 10 日之后,Clipchamp iOS 应用将停止服务 ,用户需提前采取措施避免项目丢失。为确保项目不会被删除,请在 2026 年 6 月 9 日前导出视频并保存到设备中。 iOS 版 Clipchamp 在美国 App Store 评分达到 4.8,用户评价较高,不过微软表示 移动端使用频率并不高 。 微软同时确认,如果用户未导出项目或未同步至 OneDrive,移动端视频项目将被删除,建议用户在 2026 年 6 月 9 日前将视频导出为 MP4 格式保存在本地。 即使用户订阅了包含 Clipchamp Premium 的 Microsoft 365 服务,仍需停止使用 iOS 应用,并将项目同步至 OneDrive。 微软表示,iOS 版在 2026 年 6 月 9 日之后可能仍可运行, 但会自动停止连接 ,公司建议用户删除该应用,改用 Windows 11 版或通过浏览器访问官网。 针对是否“边缘化”Clipchamp 的问题,微软回应称并非如此,网页版和桌面版将继续获得完整支持,“Clipchamp 的网页和桌面应用将继续完全正常运行,这些应用不会发生变化。” IT之家从报道中获悉,近期,Windows 11 版 Clipchamp 在未同步 OneDrive 的情况下导出视频变得更加困难,不过应用仍在持续推出新功能。

linux.do · 2026-04-18 03:17:23+08:00 · tech

各位佬!我是在codex cli 里用的 gpt-5.4模型 然后开了xhigh模式 但是实在太慢了!慢的我都想咬手有没有什么办法啊 求指导! 还有就是 我想整个中转 搞台服务器给自己和几个朋友一起用 佬友们有啥推荐的服务器没 我本地cpa sub2api也搭好了 从0跟这位佬学的【 别再熬夜伤身体 】 就跟嚼碎了喂嘴里一样 太得劲儿了【 从0~1~95%自建号池,one man company 不完全指南.codex plus/pro 号池,更新我的成品 】但是我对vps不太懂。。。各位佬抽空指点下小弟 10 个帖子 - 9 位参与者 阅读完整话题

hnrss.org · 2026-04-18 01:45:05+08:00 · tech

Small cli program I made to convert and modify bookmark files. Supports converting between json and netscape bookmark file format (default formatted exported by chrome/firefox). I created this because I have a lot of bookmarks across devices that I want to batch edit/delete and I can't always just directly modify the local browser db. Not many filters implemented so far, but I made it easy to add filters see: https://github.com/ediw8311xht/cl-bookmark-tool/blob/main/sr... Comments URL: https://news.ycombinator.com/item?id=47808543 Points: 1 # Comments: 0

linux.do · 2026-04-17 23:08:12+08:00 · tech

坐标Mac,日常主力用 ClaudeCode CLI 做开发,最近公司全面转向 AI全栈开发 ,但现在最大痛点是:AI一次只能处理单个需求/BUG,没法像真实团队一样分工协作,效率卡得很难受。 想请教各位大佬: 有没有方案能搭一套 AI开发团队 ,我只发任务,AI自动接单分工?比如: 产品Agent:梳理需求、出PRD 前端Agent:写页面、调样式 后端Agent:写接口、做逻辑 测试Agent:写单测、做校验 代码评审Agent:把关质量 最好能和ClaudeCode CLI无缝衔接,支持并行处理多个任务、AI之间能互相沟通、任务自动流转,不用我一个个手动投喂。 目前试过基础的多开会话,但上下文割裂、没法协同,很容易乱。想问问大家实战中是怎么玩的?用了哪些工具/脚本/框架?有没有成熟的工作流可以抄作业? 感谢各位大佬分享经验,救救孩子的开发效率 6 个帖子 - 5 位参与者 阅读完整话题

linux.do · 2026-04-17 22:53:38+08:00 · tech

本帖使用社区开源推广,符合推广要求。我申明并遵循社区要求的以下内容: 我的帖子已经打上 开源推广 标签: 是 我的开源项目完整开源,无未开源部分: 是 我的开源项目已链接认可 LINUX DO 社区: 是 我帖子内的项目介绍,AI生成、润色内容部分已截图发出: 是 以上选择我承诺是永久有效的,接受社区和佬友监督: 是 以下为项目介绍正文内容,AI生成、润色内容已使用截图方式发出 前两天体验了一下国产AI Coding工具Kimi code,但是没有kimi的coding plan,就想白嫖一些中转站的模型token,但是发现没有cc-switch之类的工具,没法方便的去切换中转站的baseUrl和token,就想着自己用vibe coding撸了一个kimi-code-switch出来 github.com GitHub - sunhao-java/kimi-code-switch: 一个基于终端 TUI 的 kimi-code-cli 配置面板,用来管理... 一个基于终端 TUI 的 kimi-code-cli 配置面板,用来管理 ~/.kimi/config.toml 里的 providers、models,并通过 profile 完成多套配置切换,同时支持面板自身的主题、快捷键方案和配置文件路径设置。 github.com GitHub - sunhao-java/homebrew-kimi-code-switch: kimi-code-switch 的 Homebrew tap 仓库。 kimi-code-switch 的 Homebrew tap 仓库。 安装 brew tap sunhaojava/kimi-code-switch [email protected]:sunhao-java/homebrew-kimi-code-switch.git brew install kimi-code-switch 使用 kimi-code-switch 使用说明 点击查看 (点击了解更多详细信息) 截图 2 个帖子 - 2 位参与者 阅读完整话题