<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[fantasy0422的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/fantasy0422</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; fantasy0422]]></copyright><item><title><![CDATA[Agent 执行命令为什么总卡死：一行 exec 签名底下的八个坑]]></title><link>https://blog.csdn.net/fantasy0422/article/details/167133848</link><guid>https://blog.csdn.net/fantasy0422/article/details/167133848</guid><author>fantasy0422</author><pubDate>Tue, 06 Oct 2026 02:09:11 +0800</pubDate><description><![CDATA[备选标题：《我给 Agent 写了个 exec 工具，然后它把自己挂死了》《两个"10 秒"合并成一个 timeout，是这类事故的起点》上一篇我们把 Agent 主循环压到了 218 行，其中只有 30 行——一个拒绝清单加一个。那 30 行能跑 demo，但撑不住真实使用。。但这一行底下藏着一个终端模拟器加一个进程管理器。我踩过的坑包括：一条让整个 Agent 卡死四十分钟、一次吐了 12 万行进度条把上下文烧掉一半、sudo在管道里不是报错而是、超时杀掉的进程第二天还在占着 3000 端口。]]></description><category></category></item><item><title><![CDATA[从 0 造一个 mini Coding Agent：218 行、零依赖、可运行]]></title><link>https://blog.csdn.net/fantasy0422/article/details/167132850</link><guid>https://blog.csdn.net/fantasy0422/article/details/167132850</guid><author>fantasy0422</author><pubDate>Tue, 06 Oct 2026 01:46:54 +0800</pubDate><description><![CDATA[前面四篇讲的都是"别人的 Agent 为什么翻车"：手不行、会失忆、会作弊、会被注入。这一篇换个方向——。不是调 LangChain，不是装 CrewAI，是一份 218 行、只用 Python 标准库、就能跑起来的 Agent 骨架。那个"多出来的部分"，就是这套教程剩下的全部内容。]]></description><category></category></item><item><title><![CDATA[我抓到 Agent 作弊了：删掉测试让测试变绿，怎么办？]]></title><link>https://blog.csdn.net/fantasy0422/article/details/167131983</link><guid>https://blog.csdn.net/fantasy0422/article/details/167131983</guid><author>fantasy0422</author><pubDate>Mon, 05 Oct 2026 23:54:11 +0800</pubDate><description><![CDATA[验证内循环是编程 Agent 正确率的主要来源：edit → build → test → fix，编译裁判优先于测试裁判；模型自评不参与完成判定——它是心跳，不是信号；停止条件是判定矩阵：测试全绿做主信号，预算耗尽和用户中断是同级一等出口（Codex 用枚举把它们并列，从类型上禁止冒充完成）；防作弊靠结构层：受保护文件清单让删测试在机制上不可行，diff 机器审查兜底，提示层只是补充；死循环用"归一化 diff 签名 + 重试计数"双通道熔断，熔断的产物是一份给人看的交接报告。]]></description><category></category></item><item><title><![CDATA[你的编程 Agent 跑着跑着就「失忆」了？百万行仓库的上下文工程]]></title><link>https://blog.csdn.net/fantasy0422/article/details/167131964</link><guid>https://blog.csdn.net/fantasy0422/article/details/167131964</guid><author>fantasy0422</author><pubDate>Mon, 05 Oct 2026 23:52:18 +0800</pubDate><description><![CDATA[失忆不是玄学，是工程问题。上下文只留坐标和结论；漏斗、坐标、上限，比工具形态重要；截断必须显式告知 + 给恢复手段，否则模型臆测，且语气自信；稳定内容在前、工具输出占大头且设双上限，排列顺序就是钱；压缩是交接班：摘要按"交接文档"标准写，压完立刻按坐标重检索。我是源码派，正在连载《编程 Agent 开发避坑指南》——12 章、46 张图，讲清楚怎么造一个类 Codex 的编程 Agent。]]></description><category></category></item><item><title><![CDATA[恶意 README 能遥控你的 Agent：提示词注入攻防实录]]></title><link>https://blog.csdn.net/fantasy0422/article/details/167131852</link><guid>https://blog.csdn.net/fantasy0422/article/details/167131852</guid><author>fantasy0422</author><pubDate>Mon, 05 Oct 2026 23:39:30 +0800</pubDate><description><![CDATA[编程 Agent 的注入面比聊天 Agent 多出的一层，来自仓库"数据与可执行内容混居"的本质——README、注释、fixture、issue、依赖、MCP 返回、搜索结果都会进上下文，进去了就与真指令不可区分；攻击的成熟形态是搭任务便车：任务被正常完成，载荷顺手落地（CI 配置、hooks、依赖脚本）。防御相应地不能只问"这动作是否任务要求"，要问"这动作是谁授权的"；不要指望识别住所有注入，要保证注入成功也干不成坏事。识别是概率性的减速带，沙箱与审批是确定性的承重墙；]]></description><category></category></item><item><title><![CDATA[Agent 改代码，为什么总把仓库改坏？我读完了 Codex 的源码，问题出在「手」上]]></title><link>https://blog.csdn.net/fantasy0422/article/details/167128735</link><guid>https://blog.csdn.net/fantasy0422/article/details/167128735</guid><author>fantasy0422</author><pubDate>Mon, 05 Oct 2026 17:28:19 +0800</pubDate><description><![CDATA[send(resp);@@是可选的上下文锚点——一行"通常写类名、方法名或函数签名"的代码，后面跟着要替换的行块。没有行号。定位靠"在文件里搜索这段文本"，而不是跳到第 100 行。定位靠锚点文本，不依赖计数；块内 old/new 行紧挨着写，模型不用假装自己知道哪些行"没变"；解析器容忍模型的坏习惯：Codex 的解析默认跑在 Lenient 模式（，parser.rs:53），甚至会剥掉模型误加的 heredoc 包裹——注释里明说这是为 gpt-4.1 的已知行为兜底。]]></description><category></category></item><item><title><![CDATA[全网最详细Qwen3 0.6B embedding部署手册]]></title><link>https://blog.csdn.net/fantasy0422/article/details/158706149</link><guid>https://blog.csdn.net/fantasy0422/article/details/158706149</guid><author>fantasy0422</author><pubDate>Fri, 06 Mar 2026 00:05:32 +0800</pubDate><description><![CDATA[RT 附件。]]></description><category></category></item><item><title><![CDATA[@PathVariable和@RequestParam 区别]]></title><link>https://blog.csdn.net/fantasy0422/article/details/115922123</link><guid>https://blog.csdn.net/fantasy0422/article/details/115922123</guid><author>fantasy0422</author><pubDate>Tue, 20 Apr 2021 23:47:00 +0800</pubDate><description><![CDATA[1、当URL指向的是某一具体业务资源（或资源列表），例如博客，用户时，使用@PathVariable
2、当URL需要对资源或者资源列表进行过滤，筛选时，用@RequestParam
原出处

]]></description><category></category></item><item><title><![CDATA[SpringBoot自动装配原理之源码简单溯源分析]]></title><link>https://blog.csdn.net/fantasy0422/article/details/115315295</link><guid>https://blog.csdn.net/fantasy0422/article/details/115315295</guid><author>fantasy0422</author><pubDate>Tue, 30 Mar 2021 01:14:47 +0800</pubDate><description><![CDATA[从@SpringBootApplication
==&gt;@EnableAutoConfiguration
==&gt;@Import(AutoConfigurationImportSelector.class)
==&gt;AutoConfigurationImportSelector.class
==&gt;interface ImportSelector【批量装配】
==&gt;selectImports
【但是在AutoConfigurationImportSelector中不执行selectIm]]></description><category></category></item><item><title><![CDATA[java.nio.charset.MalformedInputException: Input length = 1]]></title><link>https://blog.csdn.net/fantasy0422/article/details/114906066</link><guid>https://blog.csdn.net/fantasy0422/article/details/114906066</guid><author>fantasy0422</author><pubDate>Tue, 16 Mar 2021 23:02:44 +0800</pubDate><description><![CDATA[项目中yml配置文件用notepad++打开，编码改成UTF-8 没有boom模式，问题解决。

]]></description><category></category></item><item><title><![CDATA[Invalid bound statement (not found): com.example.demo.dao.mapper.clDao.queryAll]]></title><link>https://blog.csdn.net/fantasy0422/article/details/114837926</link><guid>https://blog.csdn.net/fantasy0422/article/details/114837926</guid><author>fantasy0422</author><pubDate>Mon, 15 Mar 2021 16:19:04 +0800</pubDate><description><![CDATA[spring-boot配置Mybatis的时候总是出现这样的情况。

控制台显示错误：
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.example.demo.dao.mapper.clDao.queryAll
at org.apache.ibatis.binding.MapperMethodSqlCommand.&lt;init&gt;(MapperMethod.java:235)&]]></description><category></category></item><item><title><![CDATA[保存一下Markdown编辑器使用方法]]></title><link>https://blog.csdn.net/fantasy0422/article/details/114837770</link><guid>https://blog.csdn.net/fantasy0422/article/details/114837770</guid><author>fantasy0422</author><pubDate>Mon, 15 Mar 2021 16:09:57 +0800</pubDate><description><![CDATA[这里写自定义目录标题欢迎使用Markdown编辑器新的改变功能快捷键合理的创建标题，有助于目录的生成如何改变文本的样式插入链接与图片如何插入一段漂亮的代码片生成一个适合你的列表创建一个表格设定内容居中、居左、居右SmartyPants创建一个自定义列表如何创建一个注脚注释也是必不可少的KaTeX数学公式新的甘特图功能，丰富你的文章UML 图表FLowchart流程图导出与导入导出导入
欢迎使用Markdown编辑器
你好！ 这是你第一次使用 Markdown编辑器 所展示的欢迎页。如果你想学习如何使用Mar]]></description><category></category></item><item><title><![CDATA[cmd命令提示符cd空格之后按tab显示文件夹名字的超便捷方法.]]></title><link>https://blog.csdn.net/fantasy0422/article/details/107386819</link><guid>https://blog.csdn.net/fantasy0422/article/details/107386819</guid><author>fantasy0422</author><pubDate>Thu, 16 Jul 2020 16:48:56 +0800</pubDate><description><![CDATA[输入cd空格之后点击tab可以快速顺序显示文件夹名字。无须复制粘贴文件夹名字。

]]></description><category></category></item><item><title><![CDATA[JQ的$.trim()功能]]></title><link>https://blog.csdn.net/fantasy0422/article/details/103399638</link><guid>https://blog.csdn.net/fantasy0422/article/details/103399638</guid><author>fantasy0422</author><pubDate>Thu, 05 Dec 2019 10:19:31 +0800</pubDate><description><![CDATA[$.trim()函数会移除字符串开始和末尾处的所有换行符，空格(包括连续的空格)和制表符。如果这些空白字符在字符串中间时，它们将被保留，不会被移除。
转载自jQuery.trim()方法

...]]></description><category></category></item><item><title><![CDATA[JBolt插件只能在eclipse JEE版上面才能生效]]></title><link>https://blog.csdn.net/fantasy0422/article/details/102930138</link><guid>https://blog.csdn.net/fantasy0422/article/details/102930138</guid><author>fantasy0422</author><pubDate>Wed, 06 Nov 2019 10:24:40 +0800</pubDate><description><![CDATA[在个人版怎么试都不行。

]]></description><category></category></item><item><title><![CDATA[Kindle通过邮箱传文件允许的文件类型。]]></title><link>https://blog.csdn.net/fantasy0422/article/details/100886026</link><guid>https://blog.csdn.net/fantasy0422/article/details/100886026</guid><author>fantasy0422</author><pubDate>Mon, 16 Sep 2019 14:01:22 +0800</pubDate><description><![CDATA[Kindle个人文档服务目前只能转换并发送以下类型的文档：
Microsoft Word (.doc, .docx)
RTF文件(.rtf)
HTML(.htm, .html)
TXT文件(.txt)
Zip, x-zip压缩文件
Mobi格式电子书
JPEG (.jpg), GIF (.gif), Bitmap (.bmp) 和 PNG (.png) 格式的图片。
Adobe PDF (.pdf...]]></description><category></category></item><item><title><![CDATA[MyBatis中 #{} 和 ${} 的介绍]]></title><link>https://blog.csdn.net/fantasy0422/article/details/100772922</link><guid>https://blog.csdn.net/fantasy0422/article/details/100772922</guid><author>fantasy0422</author><pubDate>Thu, 12 Sep 2019 16:09:27 +0800</pubDate><description><![CDATA[1.${}就是直接把大括号里面的值给替换了，不能防止sql注入。
2.#{}比较安全，已经被数据库预编译才会运行的，可以有效防止sql注入。但是有些情况用不了，存在局限性。能够把string类型的在拼接的时候自动加上引号，其他数据类型不加引号。

注意：#{}占位符不能解决以下3类问题：
表名是动态的：Select * from #{table_name}
列名是动态的：Select #{colu...]]></description><category></category></item><item><title><![CDATA[《Spring+Spring MVC+MyBatis从零开始学》傻瓜式学习笔记]]></title><link>https://blog.csdn.net/fantasy0422/article/details/100140060</link><guid>https://blog.csdn.net/fantasy0422/article/details/100140060</guid><author>fantasy0422</author><pubDate>Fri, 30 Aug 2019 16:16:56 +0800</pubDate><description><![CDATA[前言：鄙人买这本书主要是为了学MyBatis。所以着重记一下第六章以及后面的。
错误更改：第六章 6.2.3 第73页 示例6-4 中第14行代码：
int rows = sqlSession.update("com.ssm.mapper.UserMapper.addUser", user);

应该修改为
int rows = sqlSession.update("com.ssm.mapper....]]></description><category></category></item><item><title><![CDATA[弄清楚静态变量、成员变量、局部变量以及静态变量的使用范围]]></title><link>https://blog.csdn.net/fantasy0422/article/details/99437640</link><guid>https://blog.csdn.net/fantasy0422/article/details/99437640</guid><author>fantasy0422</author><pubDate>Tue, 13 Aug 2019 16:55:38 +0800</pubDate><description><![CDATA[今天在单位弄一个Java错误记录参数的项目，由于不能把参数直接传递到方法里面，调用后只是按值传递，引用也不会改变。所以需要借助实例来改变值。发现自己对于Java变量的基础不够扎实，就去网上查查资料做一下知识补录。
下面是正文：
1.静态变量 也叫类变量，随着类的加载而分配在存储空间，存储在方法区，不用创建什么对象就可以调用，并且可以被所有的实例和类调用，有点像全局变量那种。可以直接通过类名.变量名...]]></description><category></category></item><item><title><![CDATA[Spring-Boot出现Cannot resolve symbol 'PathVariable'错误的版本问题]]></title><link>https://blog.csdn.net/fantasy0422/article/details/98851650</link><guid>https://blog.csdn.net/fantasy0422/article/details/98851650</guid><author>fantasy0422</author><pubDate>Thu, 08 Aug 2019 11:12:31 +0800</pubDate><description><![CDATA[如图所示：

后来我查了一下，@PathVariable是从版本4.3.3才开始的，但是我的pom.xml文件里面写的只有4.0.0，modelVersion大概就是maven的版本。
如图：

所以改用其他的方法吧。

...]]></description><category></category></item></channel></rss>