跳过主要内容
ANY
AI 玩游戏

NetHackPlayer

A macOS app that watches Claude play NetHack on its own, using the Claude Agent SDK and tmux.

GitHub 星数
4
(GitHub 星数,统计于 2026-10-21)
许可证
未声明
最近提交
2026/01/25
作者
pj4533
下载 ZIP

信息来自作者的 README。 GameSkill 还没完整跑过。支持的 Agent 和安装步骤以作者文档为准。

安装

macOS
brew install tmux nethack
python3 -m venv .venv
.venv/bin/pip install -r requirements.txt
claude login

Then open NetHackPlayer.xcodeproj in Xcode and run it.

命令照搬项目 README。在本机运行前,请先看一眼仓库。

包含内容

  • A live NetHack terminal view (SwiftTerm)
  • A chat panel showing Claude's reasoning and actions

适合

  • Watching how an agent reasons through a roguelike
  • A reference for agent-plays-game harnesses

不适合

  • Online games: automating them usually breaks their terms of service

概述

NetHackPlayer starts a Claude Code session through the Agent SDK. The session plays NetHack inside tmux, and a native macOS app shows the game and Claude's reasoning side by side.

It is a small project, but it is a clean example of an "AI plays games" harness. Offline single-player games like NetHack are the safe place for this kind of experiment.

环境要求

  • macOS with Xcode
  • Claude Code

常见问题

相似 skills