qimidandapigu/dsh-game-agent ↗★ 0
@qimidandapigu/dsh-game-agent
游戏智能体插件,通过本地 WebSocket 网关将游戏模组(如星露谷物语)连接至大模型驱动的智能体。
AI 分析
核心用途是实现游戏与 AI 智能体的双向交互。适合想要在游戏内与大模型对话、探索 AI 游戏辅助的玩家和开发者。
安裝
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:qimidandapigu/dsh-game-agent說明文件
閱讀完整 README ↗dsh-game-agent
A DeepSeek Harness plugin that exposes a loopback WebSocket gateway for game mods. The first adapter is stardew-agent-mod.
Current demo
Stardew Valley SMAPI mod
-> ws://127.0.0.1:32145 (JSON-RPC 2.0)
-> dsh-game-agent
-> DeepSeek Harness Agent
-> reply shown inside Stardew Valley
The gateway binds only to loopback. Version 0.1.0 supports complete text replies; token streaming and game tools are intentionally deferred.
Develop
Requirements: Node.js 22.19+ and pnpm.
pnpm install
pnpm check
Install into a local DeepSeek Harness profile
From this checkout:
dsh plugin --profile game add .
dsh --profile game
If dsh is not installed globally, use the matching npx @deepseek-ai/dsh@0.1.0-rc.6 ... command. DeepSeek Harness is currently a developer preview, so this plugin pins its tested API generation to 0.1.0-rc.6.
Configure a model and credentials in DeepSeek Harness before sending chat messages. The plugin uses the profile's selected default model; it does not store a separate API key.
Protocol
The game mod connects to ws://127.0.0.1:32145, calls adapter.hello, then sends:
{
"jsonrpc": "2.0",
"id": 2,
"method": "chat.send",
"params": {
"text": "你好",
"context": {
"playerName": "Farmer",
"location": "Farm",
"nearbyNpc": "Abigail"
}
}
}
The result contains reply and sessionId.
License
MIT