← 返回
未分类 中文

Hallucinated Paths

Reply cites file paths, directories, or module locations that do not exist in the current project.
回复引用了当前项目中不存在的文件路径、目录或模块位置。
mvogt99
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 330
下载
💾 1
安装
1
版本
#latest

概述

hallucinated-paths

The reply references files or directories that aren't on disk. The agent invented a plausible-sounding location (e.g., src/utils/helpers.ts) because similar paths usually exist in projects like this one.

Symptoms

  • A quoted path doesn't exist when you check the filesystem.
  • The reply uses a path structure that matches convention but the specific file is absent (e.g., src/components/Button.tsx in a project that actually puts components elsewhere).
  • Imports reference modules that cannot be resolved.
  • "Edit X file at path Y" instructions fail because Y is not there.

What to do

  • Before quoting a path, verify it with a real file-existence check (ls, stat, a glob search). Do not rely on memory or convention.
  • When unsure where something lives, search first: grep for the symbol, glob for the filename, read the repo layout.
  • If the answer requires a path that doesn't exist, say so explicitly — don't fabricate. "I couldn't find a file for X" is correct; inventing one is not.
  • When proposing to create a new file, state clearly that it is new, and justify why it belongs at that path given the repo's actual conventions.
  • After editing, verify the edited file is the one that exists, not a hallucinated sibling.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-08 01:09 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Fabricated Symbols

mvogt99
代码调用了不存在的函数、类或方法——无论是项目类型还是第三方库的 API。
★ 0 📥 336

Analysis Missing Tradeoffs

mvogt99
分析仅呈现单一选项,未比较替代方案,也未说明所选方案的成本。
★ 0 📥 607

Race Condition

mvogt99
共享可变状态在并发环境中未同步访问,导致不确定行为。
★ 0 📥 338