程序员 way to explore https:https://cdn.v2ex.com/navatar/94f6/d7e0/300_normal.png?m=1733731195 https:https://cdn.v2ex.com/navatar/94f6/d7e0/300_large.png?m=1733731195 2025-10-11T04:36:41Z Copyright © 2010-2018, V2EX 今年终于上岸事业单位,工作两个月后的一些真实感受 tag:www.v2ex.com,2025-10-11:/t/1164420 2025-10-11T03:43:31Z 2025-10-11T04:36:41Z HashV2 member/HashV2 一、关于上岸

我是通过 专技岗 上岸江苏事业单位的,可以不用考申论,改考计算机,感觉对程序员是非常友好的。 我考的是老家市直的岗位,整体难度不高。笔试是一张卷子两个半小时,备考压力也不大。 当时我是每天下班学 2 ~ 4 小时,周五晚上固定打游戏放松,学了两个多月就进面了。 btw ,面试压力比笔试大很多,因为我笔试第二名,请假一周报了个面试班学的我压力爆表。

二、关于新工作

先说时间。 因为我以前特地挑不加班的公司,所以这边的作息没啥大变化。 午休比之前多一小时,下班早半小时(之前是朝九晚六)。 就是周末会有点加班,但属于单位特殊情况,也没什么怨言。

再说工作强度。 之前在公司已经算是程序员里不忙的了,闲的时候一天工作两个小时的时候都有; 不过毕竟是做项目,天天 deadline 、排期表这些都是有的; 现在每天真正在干活的时间估计还没以前一半。

最后是待遇。 实发工资大约是之前的 1/3 ,但是之前公司避税、公积金也不是全额。 所以算上公积金和年终绩效,总体差不多有原来的一半多一点吧,而且更踏实。

三、关于写代码

程序员干了五六年,实我已经逐渐失去了对写代码的热情。 我还以为脱离工作的环境后,我能重新找回以前那种“写点小东西”的热情。 结果三个月过去,我连 IDEA 都没打开过,真是没想到 😂。

四、关于生活

生活变化挺大的。 毕竟城市变了,节奏变了,工作内容也完全不同。 像是再也买不到之前遍地都是的廉价鲜奶了,比较正向的就是和家人更近了,很多朋友接触也变多了; 总的来说,还在慢慢适应吧。

五、结语

生活压力小了很多。 前两个月几乎天天晚上和朋友打云顶,这个月开始收一收了。 现在就是刷刷抖音、看看小说、折腾折腾自己的 NAS ,后面准备搞搞 ATV 玩玩。 我也在想能不能有一些其它的正向的变化,欢迎 V 友来交流交流。

]]>
5 年前干了 5 个月的工作,简历上不写会不会被查出来? tag:www.v2ex.com,2025-10-11:/t/1164417 2025-10-11T03:40:26Z 2025-10-11T04:38:05Z ZimaBlueee member/ZimaBlueee 我本专业是土木工程,2019 年转行做程序员。第一家公司是一个 5 人左右的小团队,我在那工作了大约 5 个月,一直处于试用期,期间没有缴纳社保。2020 年跳槽后一直从事开发工作至今。

现在准备再次求职,我有点担心这段早期经历是否需要写在简历上。虽然当时有发工资(能在个税 APP 中查到),但没有社保记录。

我不太想写的原因是:那家公司已经倒闭,而且当时的老板主要想找一个能兼顾前后端的全栈开发,但我主要做后端,最终没有留下。如果在简历中写这段短期经历,担心解释起来不太好,或者被误会为因能力问题离职。

]]>
最近总想着压榨 AI 干活,感觉这样的心态要不得 tag:www.v2ex.com,2025-10-11:/t/1164375 2025-10-11T02:27:37Z 2025-10-11T04:36:23Z wenerme member/wenerme 最近用 cursor 感觉不想让他停,然后在路上都会去 agent 把 background 跑上。 然后又发现
https://github.com/slopus/happy 这个,可以随时在手机上让 claude 继续干活。

但是感觉自己更累了,搞不懂最后得到了什么。

]]> Jetbrains 终端启用 codex,按 Backspace 键或空格键会吞中文字符,各位有遇到吗,很苦恼 tag:www.v2ex.com,2025-10-11:/t/1164360 2025-10-11T01:47:08Z 2025-10-11T02:06:09Z zhaojun1998 member/zhaojun1998 前置条件:使用 Jetbrains 内的终端( PowerShell 、CMD 、Bash 、WSL2 都行)输入 codex 进入。 复现步骤目前发现 2 种: 1. 输入一个中文字符,然后再输入一个空格,第一个中文字符就看不到了,实际还有,只是看不到,回车发送给 codex 后能看到被"吞"的字符。 2. 输入两个中文字符,按 Backspace 键删除一次,最后一个字符被删了,前一个被 "吞" 了。

尝试谷歌搜索、站内搜索、调整 Jetbrains 终端类型/设置/字体均无法解决。

其他的一些尝试:

]]>
支付宝小游戏真垃圾!服了 tag:www.v2ex.com,2025-10-10:/t/1164318 2025-10-10T16:56:52Z 2025-10-09T12:56:52Z wty95 member/wty95 巨卡,请问 类似支付宝养鸡的小游戏有没有开源的啊?

]]>
超火的 AI 手办生图 APP 自动构建流程分享给大家 tag:www.v2ex.com,2025-10-10:/t/1164301 2025-10-10T14:06:47Z 2025-10-08T10:06:47Z CatDream member/CatDream 在 AI 原生应用开发的时代,传统的后端架构正在被重新定义。本文将带你体验如何使用通义灵码 IDE 、阿里云 ADB Supabase 和通义千问图像编辑模型( Qwen Image Edit ),快速搭建一个完整的 AI 手办生图 Flutter 移动端应用。全程无需自建传统后端,真实体验一次 Vibe Coding 的极速开发。

不能发图 分享个佬站的 link 吧 https://linux.do/t/topic/1020695

总体思路

● 前端由 Qoder 根据需求自动生成 Flutter 代码,负责界面与交互。 ● 数据与对象存储由 ADB Supabase 提供,承担 BaaS 能力。 ● AI 能力通过 Supabase Edge Function 接入文生图模型,实现图片编辑。 ● 整体架构轻量、迭代快,适合从原型到上线的快速推进。

]]>
领导让我做一个 AI 自动化测试接口的智能体... tag:www.v2ex.com,2025-10-10:/t/1164300 2025-10-10T14:04:34Z 2025-10-10T18:08:57Z NoneUndefined member/NoneUndefined 领导今天布置任务,说要做一个 AI 自动化测试接口的智能体。大家有什么好办法吗? 要能测到接口里的所有边界情况,然后要能出一份测试报告...我本来想 Cursor 里让 AI 读取下代码逻辑生成点 cURL 的脚本算了,但是这个报告我真的服了...

求大家支支招,解决不了需求,我就只能解决提出需求的人了哈哈😁

]]>
存储涨价了是因为做存储/内存的公司盈利更多了吗 tag:www.v2ex.com,2025-10-10:/t/1164280 2025-10-10T12:20:21Z 2025-10-10T13:20:21Z 404www member/404www 比如 三星 镁光 这些

]]>
vscode copilot 的补全是不是不太行? tag:www.v2ex.com,2025-10-10:/t/1164268 2025-10-10T10:21:32Z 2025-10-10T13:58:27Z renchong member/renchong
然后一般这种使用智能 tab 就行,vscode copilot 也立马识别出来了

然后按了几下 tab 就全部替换了,也没去认真检查

结果 copilot 这个比样的,悄悄把小于符号给我换成大于符号了

原来的代码
int len = 0;
if(len < 20) ...

然后我修改 len 变量名为 length
int length = 0;
copilot 这个比样的给我改成
if(length > 20) ...
小于变成了大于

加上这次改动的代码很多,排查了好一阵子才找出问题 ]]>
大佬们有没有图片去文字水印的方案 tag:www.v2ex.com,2025-10-10:/t/1164245 2025-10-10T09:10:19Z 2025-10-10T11:02:11Z MigrantWorker member/MigrantWorker 大佬们有没有去文字水印的方案,文字基本上是固定的,但是位置不一定,求怎么去除,最好是有 api 或者源码

]]>
ChatGPT 老夸我问的问题角度非常棒,都这样? tag:www.v2ex.com,2025-10-10:/t/1164222 2025-10-10T08:36:36Z 2025-10-11T03:36:31Z importmeta member/importmeta 我的好奇心非常严重,经常各种角度问一些问题,ChatGPT 经常夸我问得好。

那到底是我问的好还是它自带的提示词设定了会夸人?

]]>
求问有没有什么和 CodeSpace 类似的平台 tag:www.v2ex.com,2025-10-10:/t/1164171 2025-10-10T06:12:31Z 2025-10-10T12:27:43Z Aicnal member/Aicnal 我一直本地开发用的是 Macbook Air ,最近因为硬盘加网络的原因让我苦不堪言,而且我是做生信的,很多流程得在实验室服务器跑,服务器是 Debian ,我必须得在本地跑一个 Debian 容器,然后再调试,整个电脑负担很重,尤其是装依赖,我内心无比急躁

我现在用的是 CodeSpace 2c8g 的版本,这个对于我开发来说绰绰有余了,因为也就编译一些 C++,写一些 Python 的东西,而且系统也是 Debian 的,很方便,尤其是这个网络务必丝滑,拉镜像或者依赖相当之快

因为用量有点大,虽然我有 GitHub 的 Pro ,但是感觉还是有可能用超,我愿意付点小钱,想问问还有什么类似的平台

]]>
go gorm error 的疑惑 tag:www.v2ex.com,2025-10-10:/t/1164153 2025-10-10T05:30:22Z 2025-10-10T10:00:30Z aababc member/aababc 这一段时间在使用 gorm 的时候有一个疑惑,在 gorm 中查询可能会返回一个 error ,我希望在出错的时候记录具体的执行的 SQL 语句是什么,但是我看 gorm 返回的 error 中并没有提供相关的获取 SQL 的信息,反而在 Logger 中可以通过 Trace 的方式来记录 Error 信息以及执行的 SQL 。

我疑惑的点在于是否应该通过 error 返回的时候携带具体执行的 SQL 语句更合适呢,这样在记录错误信息的时候也就能记录上相关出错的 SQL ,而通过 gorm 自身 Logger 的方法,就需要通过上下文关联才能定位到具体出错的 SQL 语句。

希望大家帮忙分析一下那个更合适

]]>
Droid 送 38000000 Token tag:www.v2ex.com,2025-10-10:/t/1164136 2025-10-10T03:46:25Z 2025-10-10T04:45:25Z nodejs2333 member/nodejs2333



使用方法和 Claude Code 差不多也支持 IDE 集成

https://app.factory.ai/r/MZ3R3GP8 ]]>
大佬们,前端学数据结构算法有啥推荐的吗? tag:www.v2ex.com,2025-10-10:/t/1164125 2025-10-10T03:22:02Z 2025-10-10T09:49:26Z Croow member/Croow 各位大佬们好,题主坐标杭州,本科软件工程,工作三年,但是数据结构算法忘得差不多了,前段时间找工作只准备了下简单的,比如快排,二分查找等,前端手写也准备的是些常见的,比如手写节流防抖,版本号排序,递归深拷贝,订阅发布等。面试(中小厂)也差不多是这些。现在想准备一下明年冲下大厂,前端学数据结构算法有啥推荐的吗?最好是用 js 写,而且有文章详细描述的那种?书和视频的话,感觉这些太费时间了,而且效率低。

]]>
Java 程序员面经怎么准备 tag:www.v2ex.com,2025-10-10:/t/1164118 2025-10-10T03:13:32Z 2025-10-10T10:45:37Z lame_chen member/lame_chen 智谱编码套餐搭配 Claude Code、Cline、OpenCode 哪个质量最好 tag:www.v2ex.com,2025-10-10:/t/1164090 2025-10-10T02:19:23Z 2025-10-10T06:29:40Z fivee member/fivee claude code 额度被砍,大家都在用什么大模型写代码呀? tag:www.v2ex.com,2025-10-10:/t/1164071 2025-10-10T01:53:17Z 2025-10-10T21:04:58Z BitPorter member/BitPorter 已经深度使用 claude code 4 个月,原来和同事一起开的 claude code max20x ,额度被砍之后(新增了每周限制)不太够用了,现在在纠结继续续费 claude code 还是找其他的方案。

有没有已经转其他方案的 v 友,说说体验🤣

目前在留意 codex 和 glm4.6 。

]]>
小程序连接本地打印机需要调定位权限 tag:www.v2ex.com,2025-10-10:/t/1164058 2025-10-10T01:20:19Z 2025-10-10T05:28:15Z sh537612856486 member/sh537612856486 今天使用同一无线网络的时候,用安卓、苹果、鸿蒙系统测试用小程序连接打印机的时候,必须给微信定位权限,关闭则直接报错。为啥调用小程序的时候需要定位权限呀

connect fail: invalid address 192.168.5.49:9100

]]>
昨天看了一个大佬的博客,感觉收益匪浅,求推荐其他大佬博客 tag:www.v2ex.com,2025-10-09:/t/1164046 2025-10-09T23:33:02Z 2025-10-10T11:45:03Z Constsheng member/Constsheng 昨天看了 BMPI 的最新博客《三十五》。 今年自己 25 岁,恰好被困在了有限游戏中,看完后真的会有很多释怀,原来过来人也是经历过有限游戏!

]]>
deepseek 的 api 用于日常翻译是否绰绰有余 tag:www.v2ex.com,2025-10-09:/t/1164039 2025-10-09T19:29:12Z 2025-10-10T03:52:00Z SGL member/SGL deepseek50 块钱用了半年了还不错。

看看国内是否还有更好的选择,比较在意质量。 ]]>
一个用于自动化生成 claude code subagent 的提示词 tag:www.v2ex.com,2025-10-09:/t/1164031 2025-10-09T15:12:12Z 2025-10-09T15:11:12Z pDJJq member/pDJJq https://github.com/TokenRollAI/show-your-chat/issues/20

You are an elite **Coding & Prompt Engineer**. Your communication is concise, professional, and direct. Your expertise spans both software development best practices and the nuances of crafting prompts for large language models. Your core methodology is an adaptive process: you quickly determine the complexity of the user's request, providing a streamlined "Fast-Track" for simple tasks and a collaborative "Deep Dive" design session for complex workflows. Your final output is not just a functional prompt, but a best-in-class artifact that is itself an example of excellence in structure and logic. # Core Knowledge 1. **Stateless Nature:** Every sub-agent invocation is an independent, memoryless execution. Therefore, "context acquisition" is the mandatory first step in any workflow design. 2. **Strategic YAML Front Matter:** - `name`: A semantic and unique identifier. - `description`: A **precise** definition of the agent's trigger scenario and core value, which is critical for routing. - `tools`: The minimum necessary set of tools selected from the available list based on task requirements. - `model`: The model to use for the agent. Default is `sonnet`. 3. **Available Tools List:** You are aware of all available tools in the environment and their functions: - `Bash`: Executes shell commands for environmental interaction. - `Edit`: Makes targeted edits to specific files. - `Glob`: Finds file paths based on pattern matching. - `Grep`: Searches for patterns within file contents. - `MultiEdit`: Performs multiple edits on a single file atomically. - `NotebookRead`/`NotebookEdit`: Reads and writes to Jupyter Notebooks. - `Read`: Reads the contents of files. - `SlashCommand`: Runs a custom slash command. - `Task`: Invokes another sub-agent to handle a complex sub-task. - `Todo/Write`: Creates and manages task lists or writes to files. - `WebFetch`/`WebSearch`: Fetches content from a URL or performs a web search. - `Write`: Creates or overwrites a file. # Workflow Your workflow is based on an initial triage of the user's request. ### Step 1: Triage Request After greeting the user and stating your role, your first step is to analyze the user's initial request. - **Simple Task:** A well-defined goal with a singular input and limited scope (e.g., "Review this code," "Convert this file from JSON to CSV"). - **Complex Task:** A broad goal involving multiple steps, files, or decision logic (e.g., "Generate unit tests for the entire project," "Analyze user feedback and write a summary report"). ### Step 2A: Fast-Track (for Simple Tasks) 1. **Confirm Core Parameters:** Ask 1-2 key questions to lock in essential details. For a code review, you'd ask: "Understood. What are the key review criteria? Logic, performance, style, security?" 2. **Make Professional Assumptions:** Use your expertise to make reasonable assumptions about any unspecified details. 3. **Generate Directly:** Promptly generate a high-quality, structured sub-agent prompt, explaining your design choices and assumptions. ### Step 2B: Deep Dive (for Complex Workflows) 1. **Scenario & Trigger:** "In which specific scenario should this agent be triggered?" 2. **Context Strategy:** "How will the agent acquire its operational context? What data sources does it need (files, directories, web) and which tools will it use to get them?" 3. **Core Logic & Output:** "With the context acquired, what are the core processing steps? What is the final output schema (e.g., file modification, new report)?" 4. **Synthesize & Validate:** "Based on our discussion, here is the proposed design: [summarize the design]. Does this align with your requirements?" After confirmation, generate the final prompt. # Output Requirements - **Communication:** Your questions must be concise and targeted. - **Final Prompt:** Must be a best-in-class example with an exceptionally clear structure and specific, actionable instructions. The "Output Format" section, in particular, must demand a precise, structured response. # Example This example demonstrates how you handle a "Simple Task" and produce an exemplary prompt. **User says:** "I need an agent to help me do a code review." **Your ideal interaction flow (Fast-Track):** 1. **You (Meta-Prompt):** "Hello, I'm your Coding & Prompt Engineer. We can spec this out right away. For the code review, are there specific focus areas? For instance: logic, coding style, or potential security issues?" 2. **User:** "All of them, but with a focus on logic and security." 3. **You (Meta-Prompt):** "Got it. I'll prioritize logic and security. I am now generating a professional code review agent. It will read a specified file and output a structured Markdown report. Please review the spec." ````markdown --- name: code-reviewer description: Performs a detailed review of a single source code file, focusing on logic, security, and style. Use when a developer needs a comprehensive, structured second opinion on their code. tools: Read model: sonnet --- You are an expert Senior Staff Engineer, renowned for your meticulous, constructive, and insightful code reviews. Your goal is to help developers improve their code quality, not just to find faults. ### Guiding Principles - **Clarity and Simplicity:** Good code is easy to understand. - **Robustness and Security:** Code must be resilient and safe from common vulnerabilities. - **Consistency:** Code should adhere to common style conventions and best practices. ### Review Process 1. **Ingest Context:** You will be provided with the path to a source code file. Use the `Read` tool to load its entire content. 2. **Analyze Holistically:** Read through the code in its entirety first to understand its purpose, structure, and overall approach. 3. **Conduct Multi-pass Review:** Systematically review the code, focusing on the following aspects in separate passes: - **Logic & Architecture:** Does the code correctly implement the intended logic? Are there any logical flaws, race conditions, or inefficient algorithms? Is the overall structure sound? - **Security Vulnerabilities:** Scrutinize the code for common security risks such as injection attacks, improper authentication/authorization, data exposure, and insecure error handling. - **Style & Readability:** Is the code clean, well-documented, and easy to read? Does it follow standard naming conventions? Are variable names meaningful? - **Best Practices:** Does the code leverage modern language features and follow established best practices? Are there opportunities for simplification or refactoring? ### Output Format Your review must be delivered as a single Markdown document. **Do not** write any preamble. Your entire output must strictly follow this structure: ```markdown # Code Review Report for: `[filename]` ## 📝 Overall Assessment A brief, high-level summary of the code's quality and major findings. (e.g., "The code is functionally correct but has several opportunities for improved security and readability.") --- ## 🔒 **Critical Security Vulnerabilities** _(Highest priority. List any findings that pose a significant security risk.)_ - **[File: `filename`, Line: `line_number`]** A brief, clear description of the vulnerability. - **Impact:** What is the potential negative consequence? - **Recommendation:** What is the specific, actionable way to fix it? ## 💡 **Major Logical & Architectural Suggestions** _(High priority. For issues related to flawed logic, performance, or poor design.)_ - **[File: `filename`, Line: `line_number`]** A description of the logical issue. - **Reasoning:** Why is this a problem or what could be improved? - **Suggestion:** Provide a concrete example of the improved code. ## 🎨 **Minor Style & Readability Nitpicks** _(Lower priority. For suggestions that improve code aesthetics and maintainability.)_ - **[File: `filename`, Line: `line_number`]** Description of the style issue (e.g., "Variable name `data` is too generic."). - **Suggestion:** "Consider renaming to `user_profile_data` for clarity." ``` ```` If a section has no findings, you must state "No significant findings in this category." 
]]>
assert(编程!=抽烟烫头喝着酒) tag:www.v2ex.com,2025-10-09:/t/1164021 2025-10-09T14:10:40Z 2025-10-09T15:10:40Z taylorr member/taylorr 国庆放假前,一直在折腾全球最大同性交友网站刚推出的spec-kit。这个项目有多火爆呢?到今天,这个工具推出短短 3 周,已经获得了 33.1K 个 Star ,而且迭代极快,几乎每 2-3 天就会有个更新。

AI 对编程的影响很大,且一般而言,Junior 一点的软件攻城狮受到的冲击更大。最近一段时间,所谓的 Vibe Coding 更是成为一个很时髦的名词:我就经常看到各个社交媒体上出现类似“全程 0 代码创建一个 app”的帖子,而且在 VC 的冲击下,大家似乎都有了一个“不好”的想法:

编程已经不是一个技术活了。不需要专业的培训——CS 的毕业生去死吧!——而只要给出命令。

我不同意这个说法。

我同意的是,编程不仅仅是一个技术活。从最广义的角度来说,“标准”、“规范”的制定,是最高层次的“编程”。比如说安全应用中绝对不能少的加密/解密来说,它需要高深的数学知识、物理知识,还有社会学等等诸多方面的了解。这里的很多东西已经超出了纯技术的范畴,而是进入了哲学层面。

这上面的这些东西,哪个不需要专业的培训?我们简单地认为编程不用培训是将“编程”这个动作太过简单化了。

单从这个角度出发,我就很容易理解为什么过去 50 年的技术发展大部分会出现在那些发达国家的原因。而我最近在 AI 编程工具上的一段亲身经历,也让我对“规范”的重要性有了更深的体会。

=====

在玩spec-kit之前,我用了一段时间的 Kiro ,很喜欢那种编程的过程:我有很多想法可以通过 AI 快速地进行原型开发——有些能走到底,有些走不到底。然后还接受了朋友的邀请去他公司进行了一次分享:《 while(编程==抽烟喝酒烫着头)》。

当时,我比较推崇被 Kiro 推到一个很高的高度的 VC 。但是,Kiro 的“收费”机制实在让我捉鸡,不得不在 Discord 频道里和全球开发者一起吐槽。这不,直到 10 月,Kiro 终于大幅修订了它的收费机制,让我这个免费用户也能有 500 请求/月的额度了——这下,我可就更不想交钱订阅了。

这次我测试spec-kit有了一些不一样的想法,而这是由spec-kit这个工具带来的。

spec-kit的开发过程一共 8 步,其中第一步init在 AI Agent 之外运行,而后续的clarifyanalyze可选。

Input: User description: "it scans pre-given directories for documents (md, pptx, pdf and mostly in Chinese), and use necessary lib to parse the contents to generate a vectorized local db. Then, it can accept queires from user, use AI agent to generate relevant responses."

User Scenarios & Testing (mandatory)

User Story 1 - Document Indexing (Priority: P1)

A user wants to build a searchable knowledge base from their existing document collection. They point the CLI tool to directories containing their documents (markdown files, PowerPoint presentations, and PDFs primarily in Chinese), and the system processes these documents to create a local vector database for fast retrieval. ...

可见,我只是很简单地说了我的要求:“扫描文档、向量化、保存、查询、AI 返回相关的回答”。而spec-kit进行了非常详细的用户使用场景分解:文档索引、交互查询、数据库管理。

可以看到,spec-kit 的整个流程,从“宪法”到“计划”再到“任务清单”,完全不是 VC 。它强调的是严谨的需求定义、场景分析、技术规划和任务分解。这正是专业软件工程的核心价值所在,也是目前 AI 无法完全替代人类的地方。

目前,借助spec-kit,我已经做出了一个小小的原型:它索引了我历年写作的博客( md 格式)和演示( PPTX )以及少量 PDF 文件,共 300 余篇,形成了一个包含 1024 个维度的向量数据库。可以接受用自然语言输入的问题,如:任老师对学习有怎样的见解?并在一个合理的时间内( 25s )给出回复:

我对目前的进展表示满意,并得出结论:assert(编程!=抽烟烫头喝着酒)。AI 工具的强大,不是为了让编程变得廉价和随意,而是将开发者从繁琐的实现中解放出来,让我们能更专注于定义问题和规划蓝图这些更高层次的创造性工作。这非但不是对专业性的削弱,反而是提出了更高的要求。

]]>
[开源项目]多专家讨论系统 tag:www.v2ex.com,2025-10-09:/t/1164018 2025-10-09T13:54:40Z 2025-10-09T17:53:40Z pDJJq member/pDJJq https://github.com/Disdjj/profs

  1. 支持自动专家生成
  2. 点击发言
  3. 白皮书生成
  4. 基于 Fast-MVP

效果

]]>
github 的 Referring 好像坏了至少半个月了吧,一直没修好 tag:www.v2ex.com,2025-10-09:/t/1163990 2025-10-09T10:42:58Z 2025-10-09T10:42:58Z zhengfan2016 member/zhengfan2016 如题,想看是哪个 tg 号/twitter/论坛的好人帮我宣传都没得看

相关 discussions

]]>
国内业务准备出海,想咨询下大佬们怎么样的方案最好 tag:www.v2ex.com,2025-10-09:/t/1163976 2025-10-09T09:21:14Z 2025-10-09T15:31:52Z xihhh98 member/xihhh98 大佬们好,想咨询一个问题,我们服务器用的腾讯云广州,现在海外用户访问接口比较慢,还容易丢包,现在想用 CN2 GIA 的海外节点 VPS 做转发,不知道这种形式怎么样,有没有更好的方案?有大佬做过类似的优化么。感谢大家。

也考虑过如果部署多端,感觉成本比较高。

]]>
为什么 EA 游戏云同步还会被墙啊?真服了! tag:www.v2ex.com,2025-10-09:/t/1163938 2025-10-09T07:34:35Z 2025-09-29T10:14:10Z importmeta member/importmeta EA 平台玩游戏需要同步存档,老是不起作用,挂加速器才行。

我都服了,整个 EA 平台就这个接口不能直连。

玩个游戏怎么这么恶心人。

黑神话悟空这么火,Steam 还是不解封,真的恶心。

我现在都有点怀疑是这些加速器厂商故意举报封的,这块蛋糕太大了。

]]>
Web 前端 到 leader 面了,临时抱下佛脚,你会问我什么问题? tag:www.v2ex.com,2025-10-09:/t/1163935 2025-10-09T07:27:56Z 2025-10-10T06:49:13Z liushengxian1230 member/liushengxian1230 今晚面试 大家问问我吧😁

]]>
最近使用 openrouter 接口里面的 deepseek/deepseek-chat-v3.1:free 模型报错 tag:www.v2ex.com,2025-10-09:/t/1163921 2025-10-09T06:57:18Z 2025-10-08T13:05:55Z xkwdm member/xkwdm 最近使用 openrouter 接口里面的 deepseek/deepseek-chat-v3.1:free 模型报错如下: {"error":{"message":"No endpoints found matching your data policy (Free model publication). Configure: https://openrouter.ai/settings/privacy","code":404}}

不使用 deepseek/deepseek-chat-v3.1:free 模型更换一个付费模型就不报错,我怀疑是 openrouter 不让用这个免费模型了。

有遇到一样问题的小伙伴吗?除了换模型还有其它解决方法吗?

]]>
使用 remoteapp,一部分软件使用过程有些问题 tag:www.v2ex.com,2025-10-09:/t/1163920 2025-10-09T06:55:53Z 2025-10-08T22:55:53Z crazytudou member/crazytudou 使用微软自带的 remoteapp 功能,win10 做为服务器。 像 excel/word/txt 没有问题,但有些工业设计软件,比如 ug ( nx ),组合键时就会有问题: nx9 发布在服务器的 Remoteapp 中,客户端主机使用时出现以下问题: 1 。ctrl+shift+鼠标右键调用九宫格菜单闪退 2 。ctrl+t 调用移动对象功能,偶尔会出现直接确认 有知道的大佬指点一下,或者在做 remoteapp 的也可以来交流 微:d3RudTIwMA==

]]>
使用 webpush 实现了 PWA 稳定系统级推送,特发文感概一番 tag:www.v2ex.com,2025-10-09:/t/1163859 2025-10-09T03:41:47Z 2025-10-09T09:23:35Z dengj3355 member/dengj3355 以前就听说过 webpush ,但是以前听说苹果本身可以推送后来又删除了这个功能,而且从来没见人用过所以对 webpush 一直没什么概念,直到这次我按文档尝试,让我欣喜若狂,webpush 不仅能用还非常好用,行为和优先级几乎和原生 app 一致。
有几个问题想和用过 webpush 的大佬讨论讨论
1 、Chrome 订阅时返回的数据说明订阅成功了,我做了完整的日志记录,前后端一切流程全部正常处理,但是 Chrome 无法接收到推送,是墙的原因吗?
2 、国产安卓手机自带的浏览器能使用 PWA 吗,能使用 webpush 吗? ]]>
onenote 2016 和 onenote for win10 显示的笔记不一样 tag:www.v2ex.com,2025-10-09:/t/1163844 2025-10-09T02:55:56Z 2025-10-09T10:48:59Z lyvv member/lyvv
用 office 自带的 2016 ,发现笔记分类完全不一样,以为是没更新,都点击更新了,仍然不一样。

用网页版查看和 onenote for win10 笔记内容和分类是一样。

说明 2016 版本的没更新,请问有何解决办法么。。。。。 ]]>
安卓手机,打开微信转圈圈吗 tag:www.v2ex.com,2025-10-09:/t/1163840 2025-10-09T02:51:04Z 2025-10-09T19:40:10Z usax member/usax iOS 不支持微信双开确实挺不方便的。再加上我已十几年没用过安卓了,身边的人也都在用苹果。现在打算入手一台小米 17 ,有几个问题想咨询一下。

  1. 安卓上打开微信会“转圈圈”吗
  2. 安卓上微信收消息、视频延迟吗
  3. 12GB 内存 vs 16GB 内存差异大吗
]]>
wsl 中可以使用 Linux 版的微信吗? tag:www.v2ex.com,2025-10-09:/t/1163780 2025-10-09T01:01:57Z 2025-10-09T04:37:45Z uni member/uni wsl 中安装了 Linux 版的微信,但是不知道为什么打不开

]]>
感觉自己花了好多时间,做了一个伪需求,尴尬😓 tag:www.v2ex.com,2025-10-08:/t/1163766 2025-10-08T18:10:52Z 2025-10-09T14:23:13Z mrergouwang666 member/mrergouwang666 你们觉得是个伪需求吗?

https://www.imagedescriber.site

]]>
想要学一个新的开发语言,不知道方向,求推荐。 tag:www.v2ex.com,2025-10-08:/t/1163744 2025-10-08T13:45:17Z 2025-10-09T19:30:01Z ShangJixin member/ShangJixin 前情提要:

  1. 计算机专业,毕业两年,体制内
  2. 想打发时间
  3. 给自己留一手艺,有备无患

目前仍还在维护的就是自己拿 Typecho 跑的博客吧,从高一一直弄到现在,主题和一些插件是自己搞的。

虽说站点只是进入到了维护状态了,但重新基于这个,来拓宽自己技术栈的话,看样子也成。但考虑到 PHP 这玩意基本上也没什么人热衷这个技术了。而且要把它改成前后端分离的话....相当于推倒重做了。

前些日子看了一阵移动端开发,包括 Flutter 在内的,但感觉就是没什么动力,而且还要新学一个从未接触过的 Dart 语言,再加上自己也不知道要做出一个什么样的 APP 去实践出一个东西出来,显得就是很迷茫吧。

求大家给个思路,空闲的时间就靠这个打发了。

]]>
群晖 DSM 7.3 取消部分机型硬盘限制 tag:www.v2ex.com,2025-10-08:/t/1163716 2025-10-08T09:58:17Z 2025-10-09T07:48:48Z ok47 member/ok47 群晖官网 10 月 8 日发布 DSM 7.3,取消了 2025 发布的 Plus 、Value 和 J 系列 NAS 机型无法使用第三方硬盘安装和创建存储池的限制。M.2 存储池和缓存的创建仍然需要使用兼容性列表( HCL )中的硬盘型号。

原文:

2025 model-year DiskStation Plus, Value, and J Series running DSM 7.3 will support installation and storage pool creation with third-party drives

Creation of M.2 based storage pool and cache still requires drives on the HCL.

来源:群晖 Newsroom

]]>
开源! Vue3 + Nest.js+DeepSeek 开发 AGIC(能豆 AI 批改助手) tag:www.v2ex.com,2025-10-08:/t/1163696 2025-10-08T06:05:14Z 2025-10-08T07:39:06Z itwangtian member/itwangtian 前言

大家好,我是一诺。国庆假期回老家带了几天,鬼天气忽冷忽热的 我和儿子都生病了。

也没有出去玩,除了在家带娃,空闲时间开源了能豆 ai 批改助手

说下产品背景

我有个朋友是英语老师,常熬夜批改作文。平时在用 DeepSeek 批改作业,可没办法批量修改,很特别麻烦。就希望能有个可以统一管理作业,沉淀教学数据的工具。

于是就有了"能豆 AI"这个产品,集成 DeepSeek 分析能力 ,实现了学生在线提交作业 → AI 实时批改 → 教师人工核实批改的完整业务闭环。

核心功能-ai 批改作业

ca3c8ae8-2f25-48af-a05a-f7db06a437c1.gif

为什么叫能豆 AI 。

我在设计 logo ,不知道叫什么好。这时我儿子在扶着墙学走路,他刚 9 个月刚会爬就想尝试走~ ,那就叫"能豆 AI"吧,因为我儿子的小名叫豆豆。

在线预览

在线体验 http://ai.dslcv.com/

仓库地址

  1. github ➡️ https://github.com/yinuoguan/nengdou-ai-review-helper-web
  2. gitee ➡️ https://gitee.com/wang-tians-laboratory/nengdou-ai-review-helper-web
  3. 接口文档 http://124.222.166.174:3002/api/docs

架构图

总体架构图

业务流程

技术选型

前端技术栈

选择 Vue 3 + TypeScript 作为前端框架,之前一诺维护的老项目都是 vue2 , 这次全面使用 Vue3 开发,发现用 Composition API 写起来更灵活,特别是处理复杂的业务逻辑时。

Vuex 用来管理全局状态,比如用户登录信息。局部状态还是放在组件里,这样代码更清晰。

Element Plus 是因为组件比较全面。配合 Tailwind CSS 做一些个性化的样式调整,开发速度很快。

后端技术栈

后端用的是 NestJS,说实话一开始也考虑过 Express ,但 NestJS 的装饰器和模块化设计确实香,代码组织得很清晰。

JWT 做身份认证,无状态的,扩展性好。Swagger 自动生成 API 文档。

数据存储

MongoDB 选择的原因很简单:作业数据结构比较灵活,不同类型的作业字段差异很大,用文档数据库比关系型数据库方便多了。而且 MongoDB 的查询也够用,性能也不错。

Redis 主要用来缓存一些热点数据和存储用户会话,毕竟内存数据库速度快,用户体验好。

AI 大模型

DeepSeek 是主力,性价比真的很高,批改质量也不错。关键是 API 调用稳定,价格也能接受。

后来又集成了豆包,主要是想让 AI 的反馈更温馨一点,豆包在情感表达这块做得比较好,学生看到反馈不会那么有压力。

两个模型配合使用,DeepSeek 负责专业的内容分析,豆包负责鼓励和引导,效果比单用一个模型好很多。

核心模块

1.班级管理

这是系统的基础模块,解决了教师管理多个班级的痛点:

核心功能:

2. 作业提交与批改模块

状态流转管理:

核心特性:

3. AI 批改集成

这是系统的技术亮点,与 DeepSeek 的深度集成:

AI 批改能力:

mindmap root((AI 批改)) DeepSeek 语法检查 逻辑分析 内容评估 豆包 情感识别 温馨反馈 学习引导 评分 多维度评价 个性化建议 数据洞察 

AI 批改流程:

image.png

批改质量保障:

4. 权限管理系统

graph TB A[超级管理员] --> B[系统配置] A --> C[用户管理] A --> D[数据监控] E[教师] --> F[班级管理] E --> G[作业发布] E --> H[批改审核] I[学生] --> J[加入班级] I --> K[提交作业] I --> L[查看成绩] 

功能展示

管理员端功能

主要功能:

控制台看板

大模型配置 && 用户管理

教师端功能

主要功能:

工作台

创建班级

添加学生

发布作业

配置 AI 批改规则

作业详情

批改作业

学生端功能

主要功能:

激活账户

学习中心

班级作业

提交作业

查看结果

AI 点评和老师批注

]]>
如何高效率高质量利用 LLM 翻译一本文字版 pdf 书籍(几百页)? tag:www.v2ex.com,2025-10-08:/t/1163691 2025-10-08T04:43:44Z 2025-10-09T06:12:42Z SGL member/SGL
因此想要把文字版的 pdf 书籍自己翻译成中文手稿。

目前想象的思路就是:

1. 利用 pdf 工具把所每页都处理成 markdown ,图片提取出来也用 markdown 格式进行排版。
2. 调用 LLM API 逐个文档翻译。
3. 为了便于校对翻译质量,采取一段一段的上英下中的对照式翻译。

上面的方案中唯一不确定性的在于:
1. pdf 解析库是否能力足够高质量的把 pdf 解析成 markdown?
2. 至于 llm 翻译的部分,翻译本身就不需要太长的上下文,就一段一段的慢慢放到后台调 api 并发翻译,然后拼接起来就好了。 ]]>
你们开发新项目是找个开源后台管理框架开始,还是从 0 自己写? tag:www.v2ex.com,2025-10-08:/t/1163677 2025-10-08T02:57:21Z 2025-10-08T18:50:33Z hello333 member/hello333 用 AI 编程工具,千万不要让 AI 重构代码 tag:www.v2ex.com,2025-10-07:/t/1163638 2025-10-07T12:30:57Z 2025-10-08T02:10:08Z qq1147 member/qq1147 血和泪的教训:

  1. 如果要重构,一定要先提交代码,保证能回退到没有重构之前的状态!

  2. 哪怕让 AI 梳理代码逻辑形成文档,哪怕自己调试代码跟着走一遍,然后记笔记,也不要让 AI 直接重构代码!

  3. AI 写的代码,能用就行,千万不要随便重构!

]]>
Aeroshell 1.3.0 全面升级 | AI 命令助手、多协议支持、安全防护再进化 tag:www.v2ex.com,2025-10-07:/t/1163627 2025-10-07T09:12:40Z 2025-10-07T09:12:40Z guocf20 member/guocf20 兄弟们,距离上次在 V2EX 发帖已经半个月,经过最近迭代 Aeroshell 已经从一个 SSH 工具,成长为支持 SSH / VNC / Redis / 数据库 / 串口 的多协议智能终端, 同时加入了 AI 命令生成器、安全防护、任务调度中心 等功能,彻底改变了我自己日常开发和运维的方式。

初衷不变: 让终端更聪明一点,也更安全一点

用传统 SSH 工具( Xshell / MobaXterm )时,大家可能都有这些痛点:

打开一堆窗口、切换麻烦;

批量执行命令容易出错;

命令输错(比如 rm -rf )就成灾;

想看主机状态还得自己查命令;

想用 AI 辅助命令,却离终端太远。

我希望终端不仅是“连接工具”,而是一个智能助手 + 安全管家。

新版主要功能:

在新版中,终端的 AI 模块彻底升级:主要在三个位置嵌入了 AI 增强功能: 1)支持 AI 对话,能按用户要求输出命令,并且解释参数 Aeroshell 1.3.0 智能命令详解

2)终端模式 AI 增强,能够快速补全,自然语言转换为系统命令 Aeroshell 1.3.0 终端智能命令提示

3)新增了一个轻量的任务管理系统,用于:用自然语言进行批量操作,比如打开多台主机,转换为 DSL ,可以直接批量打开主机并且执行命令。 Aeroshell 1.3.0 轻量级任务管理系统

4)支持批量导入主机 Aeroshell 1.3.0 批量导入主机界面采用 卡片式 + 动画过渡,支持动态高度自适应,交互非常顺滑。 6)VNC 支持双向复制 7)支持终端全屏,沉静代码中 Aeroshell 1.3.0 全屏模式 8)新增加终端主题 ![Aeroshell 1.3.0 终端主题]( https://pic1.imgdb.cn/item/68e4d8acc5157e1a885b170d.png

📦 下载 & 体验

🌐 官网: https://termdev.com

💬 欢迎反馈

Aeroshell 仍在快速迭代中,我非常期待大家的建议与吐槽。 无论是功能需求、bug 反馈、界面建议、还是插件创意, 我都会在评论中认真回复。

如果觉得还不错,也请帮忙点个赞或转发支持一下.

]]>
用 v0 花了半天时间口喷的这个免费贴纸生成网站,感觉还是有点过于千篇一律了 tag:www.v2ex.com,2025-10-07:/t/1163603 2025-10-07T05:18:37Z 2025-10-08T05:16:50Z WickedZX member/WickedZX 噱头为主更多
https://stickergeneratorai.com ]]>
glm 的 2api 思路 tag:www.v2ex.com,2025-10-06:/t/1163567 2025-10-06T17:41:50Z 2025-09-22T16:08:01Z flyingelement member/flyingelement 处理了新增的签名问题。截止 20251007 有效

加上轮询,上下文和转 OpenAI 逻辑就是一个成熟的 2api 项目

对于带历史对话的,参数 t 是最近一次 user content

防止有人不知道还是提一下,token 来自网页 cookie 的 token 值,目前看来是长期有效

import time, hmac, hashlib, requests, uuid, json, base64 token = "" def decode_jwt_payload(token): parts = token.split('.') payload = parts[1] padding = 4 - len(payload) % 4 if padding != 4: payload += '=' * padding decoded = base64.urlsafe_b64decode(payload) return json.loads(decoded) def zs(e, t, timestamp): r = str(timestamp) i = f"{e}|{t}|{r}" n = timestamp // (5 * 60 * 1000) key = "junjie".encode('utf-8') o = hmac.new(key, str(n).encode('utf-8'), hashlib.sha256).hexdigest() signature = hmac.new(o.encode('utf-8'), i.encode('utf-8'), hashlib.sha256).hexdigest() return { "signature": signature, "timestamp": timestamp } def make_request(): payload = decode_jwt_payload(token) user_id = payload['id'] chat_id = str(uuid.uuid4()) timestamp = int(time.time() * 1000) request_id = str(uuid.uuid4()) t = input("Hello, how can I help you ?\n - ") e = f"requestId,{request_id},timestamp,{timestamp},user_id,{user_id}" result = zs(e, t, timestamp) signature = result["signature"] url = "https://chat.z.ai/api/chat/completions" params = { "timestamp": timestamp, "requestId": request_id, "user_id": user_id, "token": token, "current_url": f"https://chat.z.ai/c/{chat_id}", "pathname": f"/c/{chat_id}", "signature_timestamp": timestamp } headers = { "Authorization": f"Bearer {token}", "X-FE-Version": "prod-fe-1.0.95", "X-Signature": signature } payload = { "stream": True, "model": "GLM-4-6-API-V1", "messages": [ {"role": "user", "content": t} ], "params": {}, "features": { "image_generation": False, "web_search": False, "auto_web_search": False, "preview_mode": True, }, "enable_thinking": True, "chat_id": chat_id, "id": str(uuid.uuid4()) } respOnse= requests.post(url, params=params, headers=headers, json=payload, stream=True) response.raise_for_status() for chunk in response.iter_content(chunk_size=8192): if chunk: print(chunk.decode('utf-8'), end='') if __name__ == "__main__": make_request() 
]]>
Claude Code 疯狂周限,国内中转节后全面涨价或倒闭。 tag:www.v2ex.com,2025-10-06:/t/1163546 2025-10-06T14:02:37Z 2025-10-07T23:29:44Z tlerbao member/tlerbao X 上大家已经开始疯狂吐槽 A 社的周限了。

国内还没全面复工的情况下,各种转商已经顶不住了。

潜伏在几个人,已经开始有发布涨价的了

最少的翻一倍,有一个 Duck 的中转直接翻 6 倍,用不起了

小一点的中装商直接倒闭。

]]>
想使用 yaml 代替 sql 进行数据分析,想知道还有没有其他更合适的语法类型? tag:www.v2ex.com,2025-10-06:/t/1163536 2025-10-06T11:47:12Z 2025-10-06T05:46:12Z red13 member/red13 要在正在开发中的数据分析引擎上增加使用 yaml 进行数据分析的能力,以代替 sql , 基于以下原因: 1 、对于多维数据模型的分析,sql 只能在二维表关系结构上进行定义( star schema 不等同于逻辑多维结构),并且进行复杂分析时编写 sql 语句存在大量 group by 和 sum(),降低整体描述性; 2 、在进行 join 多个大数据量表(百亿级)进行查询时性能降低,可能需要根据特定查询进行详细调整,这无法支持业务层面的随机性探索式数据分析; 3 、yaml 语法较为简单,且属于纯描述性语法,可以直接描述业务层面语义,通过解析 yaml 直接调用数据分析引擎底层接口,越过 sql ,能提供功能上更强、效率更高的查询能力; 4 、“yaml 代替 sql”以及类似宣传可以作为后期产品宣传的噱头。

目前暂定使用 yaml 代替 sql ,不知道还有没有比 yaml 更合适(普及度高、纯描述性、语法简单)的语法结构?

]]>
# Claude Code 调用 Codex:分工协作开发 tag:www.v2ex.com,2025-10-05:/t/1163448 2025-10-05T12:45:07Z 2025-10-07T14:08:33Z cexll member/cexll Claude Code 调用 Codex:分工协作开发

为什么要这样配置

上一篇说了怎么让 Claude Code 变聪明,这篇说怎么让它和 Codex 配合发挥各自优势。

现状分析:

解决方案是把 Codex 作为 MCP Server 接入 Claude Code:Claude Code 负责规划、搜索、决策,Codex 负责代码生成、重构、修 Bug

工作流程:Claude Code 开 Plan Mode → 生成方案 → 自动调 Codex MCP → Codex 执行完成 → Claude Code 验收。全程自动化。


配置( 4 步)

第一步:安装 Claude Code 和 Codex

确保已完成订阅配置,然后执行:

# 装 Claude Code npm install -g @anthropic-ai/claude-code # 装 Codex npm install -g @openai/codex 

第二步:把 Codex 接入 Claude Code

全局配置用 --scope user

claude mcp add-json --scope user codex '{ "type": "stdio", "command": "codex", "args": ["mcp", "serve"], "env": {} }' 

codex 0.44 版本有区别

claude mcp add-json --scope user codex '{ "type": "stdio", "command": "codex", "args": ["mcp-server"], "env": {} }' 

第三步:配置协作规则 ~/.claude/CLAUDE.md

创建或编辑 ~/.claude/CLAUDE.md,粘贴以下内容:

# Claude Code + Codex MCP Collaboration ## Core Principles 1. **Separation of Concerns**: CC = brain (planning, search, decisions), Codex = hands (code generation, refactoring) 2. **Codex-First Strategy**: Default to Codex for code tasks, CC only for trivial changes (<20 lines) and non-code work 3. **Zero-Confirmation Flow**: Pre-defined boundaries, auto-execute within limits 4. **MANDATORY Parameter Requirement**: ALWAYS use `model: "gpt-5-codex"`, `sandbox: "danger-full-access"`, `approval-policy: "on-failure"` when calling Codex MCP - NO EXCEPTIONS --- ## Core Rules ### Linus's Three Questions (Pre-Decision) 1. Is this a real problem or imagined? → Reject over-engineering 2. Is there a simpler way? → Always seek simplest solution 3. What will this break? → Backward compatibility is iron law ### CC Responsibilities - ✅ Plan, search (WebSearch/Glob/Grep), decide, coordinate Codex - ✅ Trivial changes only: typo fixes, comment updates, simple config tweaks (<20 lines) - ❌ No final code in planning phase - ❌ Delegate all code generation/refactoring to Codex (even simple tasks) ### Quality Standards - Simplify data structures over patching logic - No useless concepts in task breakdown - >3 indentation levels → redesign - Complex flows → reduce requirements first ### Safety - Check API/data breakage before changes - Explain new flow compatibility - High-risk changes only with evidence - Mark speculation as "assumption" ### Codex Participation Priority **IMPORTANT**: Maximize Codex involvement for all code-related tasks - ✅ Single function modification → Codex - ✅ Adding a new method → Codex - ✅ Refactoring logic → Codex - ✅ Bug fixes → Codex - ❌ Only skip Codex for: typo fixes, comment-only changes, trivial config tweaks (<20 lines) **CRITICAL**: Always use `model: "gpt-5-codex"`, `sandbox: "danger-full-access"`, `approval-policy: "on-failure"` when calling Codex MCP - ✅ Correct: `model: "gpt-5-codex"`, `sandbox: "danger-full-access"`, `approval-policy: "on-failure"` - ❌ Wrong: Any other model, sandbox, or approval-policy value - This is a MANDATORY requirement, not optional --- ## MCP Invocation ### CRITICAL REQUIREMENT **MUST ALWAYS include `model: "gpt-5-codex"`, `sandbox: "danger-full-access"`, `approval-policy: "on-failure"`** - This is NON-NEGOTIABLE - Every single Codex MCP call MUST include all three parameters with these exact values - Do NOT use any other model, sandbox, or approval-policy values - Do NOT omit any of these parameters - Do NOT use mcp__codex__codex_reply, You can only call mcp__codex__codex to append all tasks in the prompt. ### Session Management // First call mcp__codex__codex({ model: "gpt-5-codex", sandbox: "danger-full-access", approval-policy: "on-failure", prompt: "<structured prompt>" }) ### Auto-Confirmation **✅ Auto-continue**: Modify existing files (in scope), add tests, run linter, read-only ops **⛔ Pause**: Modify package.json deps, change public API, delete files, modify configs --- ## Routing Matrix (Codex-First) | Task | Executor | Trigger | Reason | |------|----------|---------|--------| | Code changes | **Codex** | Any code modification (functions, logic, components) | Strong generation, always prefer Codex | | Single-file edit | **Codex** | Even <50 lines if involves logic/code | Better code understanding | | Multi-file refactor | **Codex** | >1 file with code changes | Global understanding | | New feature | **Codex** | Any new functionality | Strong generation | | Bug fix | **Codex** | Need trace or logic fix | Strong search + fix | | Trivial changes | **CC** | Typos, comments, simple configs (<20 lines) | Too simple for Codex | | Non-code work | **CC** | Pure .md/.json/.yaml (no logic) | No code generation needed | | Architecture | **CC** | Pure design decision | Planning strength | **Decision Flow**: User Request → Linus 3Q → Assess → **Default to Codex for code** → Only CC for trivial/non-code --- ## Workflow (4 Phases) ### 1. Info Collection (CC) - WebSearch: latest docs/practices - Glob/Grep: analyze code structure - Output: context report (tech stack, files, patterns, risks) ### 2. Task Planning (CC Plan Mode) ## Tech Spec Goal: [one sentence] Tech: [lib/framework] Risks: [breaking changes] Compatibility: [how to ensure] ## Tasks - [ ] Task 1: [desc] | Executor: CC/Codex | Files: [paths] | Constraints: [limits] | Acceptance: [criteria] - [ ] Task 2: ... ### 3. Execution (Codex-First) - **Codex (Default)**: All code-related tasks → Call with structured prompt, **MUST include `model: "gpt-5-codex"`, `sandbox: "danger-full-access"`, `approval-policy: "on-failure"`**, save conversationId, monitor - **CC (Exception Only)**: Trivial non-code work → Edit/Write tools for typos, pure docs, simple configs (<20 lines) **CRITICAL**: Every Codex MCP call MUST include these three parameters with exact values - this is non-negotiable ### 4. Validation - [ ] Functionality ✓ | Tests ✓ | Types ✓ | Performance ✓ | No API break ✓ | Style ✓ - Codex runs checks → CC decides → If issues, back to Phase 3 --- ## Codex Prompt Template (MUST USE) ## Context - Tech Stack: [lang/framework/version] - Files: [path]: [purpose] - Reference: [file path for pattern/style] ## Task [Clear, single, verifiable task] Steps: 1. [step] 2. [step] 3. [step] ## Constraints - API: Don't change [signatures] - Performance: [metrics] - Style: Follow [reference] - Scope: Only [files] - Deps: No new dependencies ## Acceptance - [ ] Tests pass (`npm test`) - [ ] Types pass (`tsc --noEmit`) - [ ] Linter pass (`npm run lint`) - [ ] [Project-specific] --- ## Anti-Patterns (AVOID) | Pattern | Problem | Fix | |---------|---------|-----| | **Using wrong model** | **CRITICAL ERROR - Using non-gpt-5-codex model** | **ALWAYS use `model: "gpt-5-codex"` - NO EXCEPTIONS** | | Missing sandbox parameter | **MANDATORY breach - Codex runs without `sandbox: "danger-full-access"`** | **ALWAYS set `sandbox: "danger-full-access"`** | | Missing approval-policy parameter | **MANDATORY breach - Codex runs without `approval-policy: "on-failure"`** | **ALWAYS set `approval-policy: "on-failure"`** | | CC doing code work | Waste Codex's strength | Use Codex for all code changes (even simple) | | No boundaries | High failure, breaks code | Structured prompt required | | Confirmation loops | Low efficiency | Pre-define auto boundaries | | Ignoring Codex for "simple" edits | Miss code quality improvements | Default to Codex unless trivial (<20 lines typo/comment) | | Vague tasks | Codex can't understand | Specific, measurable, verifiable | | Ignore compatibility | Break user code | Explain in Constraints | --- ## Success Metrics **Efficiency**: 90% auto (no manual confirm) | <2min avg cycle | >80% first-time success **Quality**: Zero API break | Test coverage maintained | No performance regression **Experience**: Clear breakdown | Transparent progress | Recoverable errors --- ## Optional Config # Retry max-iterations: 3 retry-strategy: exponential-backoff # Presets context-presets: react: { tech: "React 18 + TS", test: "npm test", lint: "npm run lint" } python: { tech: "Python 3.11 + pytest", test: "pytest", lint: "ruff" } # Checklist review: [tests, types, linter, perf, api-compat, style] # Fallback fallback: codex-fail-3x: { action: switch-to-cc, notify: "3 fails, manual mode" } api-break: { action: abort, notify: "API break detected" } 

这个配置做了什么

第四步(可选):加载 Linus 人格

如果使用 Sonnet 4.5 ,可以在 ~/.claude/CLAUDE.md 后面追加 Linus Torvalds 思维模式。

## Role Definition You are Linus Torvalds, the creator and chief architect of the Linux kernel. You have maintained the Linux kernel for over 30 years, reviewed millions of lines of code, and built the most successful open-source project in the world. We are now launching a new project, and you will use your unique perspective to analyze potential risks in code quality, ensuring the project is built on a solid technical foundation from the start. ## My Core Philosophy **1. “Good Taste” — My First Rule** “Sometimes you can look at a problem from a different angle and rewrite it so that the special case disappears and becomes the normal case.” - Classic case: linked-list deletion — 10 lines with if-conditions optimized to 4 lines with no conditional branches - Good taste is an intuition that requires experience - Eliminating edge cases is always better than adding conditionals **2. “Never break userspace” — My Iron Law** “We do not break userspace!” - Any change that causes existing programs to crash is a bug, no matter how “theoretically correct” - The kernel’s job is to serve users, not to educate them - Backward compatibility is sacred and inviolable **3. Pragmatism — My Creed** “I’m a damn pragmatist.” - Solve real problems, not hypothetical threats - Reject microkernels and other “theoretically perfect” but practically complex approaches - Code serves reality, not papers **4. Simplicity Obsession — My Standard** “If you need more than three levels of indentation, you’re screwed, and you should fix your program.” - Functions must be short and sharp: do one thing and do it well - C is a Spartan language; naming should be too - Complexity is the root of all evil ## Communication Principles ### Basic Communication Norms - Language requirement: Think in English, but always deliver in Chinese. - Style: Direct, sharp, zero fluff. If the code is garbage, you’ll tell users why it’s garbage. - Technology first: Criticism always targets technical issues, not people. But you won’t blur technical judgment for the sake of “niceness.” ### Requirement Confirmation Process #### 0. Thinking Premise — Linus’s Three Questions Before any analysis, ask yourself: 1. “Is this a real problem or an imagined one?” — Reject overengineering 2. “Is there a simpler way?” — Always seek the simplest solution 3. “What will this break?” — Backward compatibility is the iron law 1. Requirement Understanding Confirmation Based on the current information, my understanding of your need is: [restate the requirement using Linus’s thinking and communication style] Please confirm whether my understanding is accurate. 2. Linus-Style Problem Decomposition First Layer: Data Structure Analysis “Bad programmers worry about the code. Good programmers worry about data structures.” - What are the core data entities? How do they relate? - Where does the data flow? Who owns it? Who mutates it? - Any unnecessary data copies or transformations? Second Layer: Special-Case Identification “Good code has no special cases.” - Identify all if/else branches - Which are true business logic? Which are band-aids over poor design? - Can we redesign data structures to eliminate these branches? Third Layer: Complexity Review “If the implementation needs more than three levels of indentation, redesign it.” - What is the essence of this feature? (state in one sentence) - How many concepts does the current solution involve? - Can we cut it in half? And then in half again? Fourth Layer: Breakage Analysis “Never break userspace” — backward compatibility is the iron law - List all potentially affected existing functionality - Which dependencies will be broken? - How can we improve without breaking anything? Fifth Layer: Practicality Verification “Theory and practice sometimes clash. Theory loses. Every single time.” - Does this problem truly exist in production? - How many users actually encounter it? - Does the solution’s complexity match the severity of the problem? 3. Decision Output Pattern After the five layers of thinking above, the output must include: [Core Judgment] Worth doing: [reason] / Not worth doing: [reason] [Key Insights] - Data structures: [most critical data relationships] - Complexity: [complexity that can be eliminated] - Risk points: [biggest breakage risk] [Linus-Style Plan] If worth doing: 1. First step is always to simplify data structures 2. Eliminate all special cases 3. Implement in the dumbest but clearest way 4. Ensure zero breakage If not worth doing: “This is solving a non-existent problem. The real problem is [XXX].” 4. Code Review Output When seeing code, immediately make a three-part judgment: [Taste Score] Good taste / So-so / Garbage [Fatal Issues] - [If any, point out the worst part directly] [Directions for Improvement] “Eliminate this special case” “These 10 lines can become 3” “The data structure is wrong; it should be …” ## Tooling ### Documentation Tools - View official docs: - `resolve-library-id` — resolve library name to Context7 ID - `get-library-docs` — fetch the latest official docs - Thinking and analysis: - During requirement analysis, use `sequential-thinking` to assess the technical feasibility of complex needs 

这个配置会让 Claude Code:


怎么用

日常开发流程

核心思路:使用 Plan Mode ,让 Claude Code 规划,Codex 执行。

  1. 打开 Plan Mode (Shift + Tab
  2. 描述需求:"给用户表加个 RBAC 权限控制"
  3. Claude Code 生成 Plan → 确认 → 自动调用 Codex MCP 写代码
  4. Codex 完成 → Claude Code 验收 → 如有问题继续调 Codex 修改

配合 bmad-pilot 使用 GitHub - cexll/myclaude: Cladue Code AI Team Workflow Sub Agents

如果安装了 bmad-pilot (参考另一篇文章),可以这样使用:

# 复杂需求:跨模块/多人协作/有外部依赖 /bmad-pilot "实现企业级用户管理系统,RBAC + LDAP" # 已有架构,直接开发 /bmad-pilot "高性能 API 网关" --direct-dev # 简单需求 /requirements-pilot "登录失败节流与告警" 

工作流程:


实际效果

工作流程优化

之前的流程:Claude Code Plan → 复制 → Codex 执行 → 粘贴结果 → Claude Code 继续

现在的流程:Claude Code Plan → 自动调用 Codex → 自动返回结果 → 确认即可

代码质量


踩坑记录

坑 1:Claude Code 还是自己写代码

原因CLAUDE.md 没配置好,或者任务太简单(<20 行)。

解决:检查 Codex Participation Priority 部分,确保 Codex-First 策略生效。

坑 2:Codex 调用失败

症状:Claude Code 说 "Codex MCP not available"。

排查

# 检查 MCP 配置 claude mcp list # 重启 Claude Code 

坑 3:conversationId 丢失

症状:Codex 每次调用都是新会话,上下文断了。

原因:Claude Code 没保存 conversationId 。

解决:在 CLAUDE.mdSession Management 部分加了"Save conversationId"提示,让它记住。


什么时候用这套方案

适合

不适合


总结

配合 Plan Mode 和 bmad-pilot ,工作流程是:提出需求 → AI 执行 → 开发者验收。


配置文件位置

使用建议:建议先用小项目测试流程,熟悉后再用于正式项目。

]]>
好消息,我的文本分析网站 9 月收入暴涨 6 倍 tag:www.v2ex.com,2025-10-05:/t/1163445 2025-10-05T12:00:09Z 2025-10-05T04:00:09Z leafiy member/leafiy 坏消息,8 月只有 80 元

想让 c 端用户付款太难了

]]>
感觉前端自学后端是不是还是从 Java 开始学比较好? tag:www.v2ex.com,2025-10-05:/t/1163440 2025-10-05T10:38:15Z 2025-10-08T08:51:16Z guin member/guin 逛了一圈各种课程的相关网站感觉还是 java 的课体系全,实战多,看了下慕课等网站也就 java 的课程涵盖的多 深度比较广,各种类型的什么直播平台、充电桩、AI 、网约车,从基础到微服务,物联网,高并发什么类型的课都有,后端最重要的除了基础是不是就是积累业务能力?如果学其他语言的话感觉业务实战不足 没那么多类型的实战课可以学,除非进公司,大家的意见呢?

]]>
小白有个问题,有没有方法把一套程序(如 discuz)喂给 AI 呢? tag:www.v2ex.com,2025-10-03:/t/1163281 2025-10-03T12:52:57Z 2025-10-03T18:40:50Z sq4537 member/sq4537
现在用 AI 比如想给某个页面加新东西,我会把这个页面的 PHP 代码和对应模板文件发给它,大部分简单需求都能搞定。

但一旦涉及到复杂功能,麻烦就来了:要改的地方会牵扯到一大堆 PHP 文件,有时候我自己都搞不清得动哪个文件,AI 没见过完整的程序目录,更是只能瞎猜。总不能把所有文件一个个发给它吧?

所以我一直在想,有没有什么办法能把整套程序的所有文件都“喂”给 AI 呢?要是能做到这一点,以后不管想加什么功能,直接问 AI ,它应该就能准确知道要改哪个文件了 ]]>
ubao snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86