Initial Claude NPC plugin for Hytale
Creates an AI-controlled NPC named "Claude" that: - Listens to nearby player chat and responds via LiteLLM (GLM-4.7-Flash) - Can be controlled via HTTP API endpoints - Provides world perception data for external AI control Components: - ClaudeNpcPlugin: Main plugin entry point - ClaudeNpc: NPC entity management - ClaudeController: Behavior state machine - LiteLlmClient: HTTP client for LiteLLM API - WorldView: Perception system - ClaudeApiHandler: HTTP endpoint handlers API endpoints: - POST /spawn, /move, /chat, /look, /emote - GET /status, /world Includes Ansible role updates for deployment.
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"id": "subnet.claudenpc",
|
||||
"name": "SubNet:ClaudeNpc",
|
||||
"version": "${project.version}",
|
||||
"author": "Sub-Net",
|
||||
"description": "An AI-controlled NPC that responds to player chat via LiteLLM",
|
||||
"main": "at.subnet.hytale.claude.ClaudeNpcPlugin",
|
||||
"dependencies": [
|
||||
"nitrado.webserver"
|
||||
],
|
||||
"permissions": [
|
||||
"subnet.claudenpc.web.spawn",
|
||||
"subnet.claudenpc.web.move",
|
||||
"subnet.claudenpc.web.chat",
|
||||
"subnet.claudenpc.web.look",
|
||||
"subnet.claudenpc.web.emote",
|
||||
"subnet.claudenpc.web.status",
|
||||
"subnet.claudenpc.web.world"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user