Files
BlueRoseNote/07-Other/AI/AI Agent/UnrealEngine/图谱 vs 传统 NPC 对比测试.md

64 lines
1.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: NPC行为迭代 — 图谱 vs 传统 对比测试
date: 2026-05-28
tags:
- test
- npc
- benchmark
---
# 对比测试Graphify + GitNexus vs 传统 grep
## 唯一变量
两个场景使用**完全相同的提示词**,唯一的差异是 CLAUDE.md 环境:
| | 场景 A传统 | 场景 B图谱 |
|---|---|---|
| CLAUDE.md | 移除 GitNexus 段、Graphify 段、路由优先级段 | 完整的 CLAUDE.md含图谱路由规则 |
| 操作 | 备份原 CLAUDE.md → 删除 3 个段 → 测试 → 恢复 | 无需操作,直接测试 |
## 共用提示词
两个场景均使用以下提示词(直接复制粘贴):
```
我现在在 UE5.7 游戏项目 AIDM 的根目录。
我想迭代 NPC 之间的行为逻辑。帮我:
1. 总结当前 NPC 系统的设计规范和已知问题
2. 梳理 NPC 相关的代码结构和核心类
3. 告诉我从哪些类/方法开始介入开发
完成时告诉我:读取了多少文件、大致 token 消耗。
```
## 环境准备
### 场景 A传统方式
在新 CC 会话中,先移除 CLAUDE.md 中的图谱相关段:
- 删除 `<!-- gitnexus:start -->``<!-- gitnexus:end -->` 之间的整个 GitNexus 段
- 删除 `## graphify`
- 删除 `## 路由优先级`
- 删除 `## Group 配置`
然后粘贴共用提示词。
### 场景 B图谱方式
在新 CC 会话中,确保 CLAUDE.md 完整,直接粘贴共用提示词。
## 对比记录表
| 指标 | 场景 A传统 | 场景 B图谱 |
|------|---------------|---------------|
| 读取文件数 | | |
| GitNexus 调用次数 | - | |
| Graphify 调用次数 | - | |
| Token 消耗(估算) | | |
| 结果完整性 | /10 | /10 |
| 用时 | | |