How smartflame17/cluechain works
Four Pyres, One Pardon is a Unity detective game in which the player interrogates suspects, gathers evidence, and deduces the innocent character. The documented flow uses a local LLM to generate shared story context and NPC dialogue, with a separate evaluation role adjusting cooperation. The tree includes the LLMUnity runtime and game assets but no game scripts; game-system nodes therefore point only to the existing Assets directory. Edges reflect README statements, not inspected implementation; the exact internal game-to-plugin calls cannot be verified.
Main entry points: Assets NPC Dialogue · LLMManager.cs LLM Manager · Evidences Evidence · LLM.cs LLM Inference
Components 12
Investigation Gameplay
- Interrogation
Assets - Evidence
Assets/Images/Evidences - Innocent Deduction
Assets
AI Narrative
- Story Context
Assets - NPC Dialogue
Assets - Cooperation Evaluation
Assets
Local LLM Runtime
- LLM Manager
Assets/LLMUnity/Runtime/LLMManager.cs - LLM Inference
Assets/LLMUnity/Runtime/LLM.cs - LLM Character
Assets/LLMUnity/Runtime/LLMCharacter.cs - Chat Templates
Assets/LLMUnity/Runtime/LLMChatTemplates.cs
Other components
- Player
- llama.cpp
Connections 15
- Player → Interrogation: questions suspects
README.md - Interrogation → Evidence: uses evidence
README.md - Interrogation → LLM Manager: requests dialogue
- LLM Manager → Story Context: generates context
README.md - LLM Manager → LLM Inference: runs inference
- LLM Inference → llama.cpp: executes locally
README.md - LLM Manager → NPC Dialogue: constructs prompts
README.md - Evidence → NPC Dialogue: informs dialogue
README.md - Story Context → NPC Dialogue: provides context
README.md - Interrogation → Cooperation Evaluation: evaluates questioning
README.md - Cooperation Evaluation → NPC Dialogue: adjusts responses
README.md - LLM Character → NPC Dialogue: switches identity
- NPC Dialogue → Player: returns dialogue
- Player → Innocent Deduction: identifies innocent
README.md - Chat Templates → LLM Manager: supports formatting