dshbase

Plugin directory / Automation / dsh-agent-arcade

dsh-agent-arcade

Verified · install-tested on dsh fff122

✓ Actively maintained Builds on 2 official DSH packages Pure TypeScript

View on GitHub ↗ ← Back to plugin directory

1Stars
0Forks
0Open issues
TypeScriptLanguage
2026-08-15Last push
Cross-platformPlatform

What it does

Deterministic Agent-played Snake game for DeepSeek Harness.

✅
Our take
Works — verified, early-stage project

Deterministic Agent-played Snake game for DeepSeek Harness. It installs cleanly and boots without issues in our testing. It's early-stage but functional.

“Verified” means our automated CI actually ran dsh plugin add in a clean profile and it booted — nothing more. Feature descriptions and version compatibility are the author’s claims. This is not a security audit and not an endorsement of third-party code.

README

dsh-agent-arcade

A small deterministic Snake game for DeepSeek Harness. The Agent chooses a direction on every turn, while the user can watch the ASCII board, score, status, and reasoning returned by each step.

The game runs entirely in memory. It does not use the network, save files, or execute shell commands. A fixed seed makes food placement and a replayed sequence reproducible.

Quick install

Requirements

You need Node.js 22 or newer, pnpm, and a DeepSeek Harness installation that supports JavaScript or TypeScript plugins.

Step 1: Download and build

Copy and run:

git clone https://github.com/fff122/dsh-agent-arcade.git
cd dsh-agent-arcade
pnpm install
pnpm build

Step 2: Create the plugin configuration

Run this command from the repository root:

cat > agent-arcade.patch.yml <<EOF
- insert:
    - id: dsh-agent-arcade
      name: '$PWD/dist/src/index.js'
EOF

The plugin path is absolute because the Harness patch loader requires an absolute path.

Step 3: Start Harness with the plugin

If Harness is installed as a command:

dsh web --patch "$PWD/agent-arcade.patch.yml"

Otherwise, run:

npx @deepseek-ai/dsh web --patch "$PWD/agent-arcade.patch.yml"

Verify the installation

Ask the Agent:

开始一局 12×8 的贪吃蛇,随机种子用 42。每一步都告诉我棋盘、分数和你的决策理由。

The Agent should call arcade_snake_new, then alternate arcade_snake_step and arcade_snake_render. Ask for arcade_snake_history at any time to review the full sequence of decisions.

Available tools

Tool Purpose
arcade_snake_new Start or restart a deterministic game with optional width, height, and seed.
arcade_snake_step Let the Agent choose a safe direction toward food and advance one turn.
arcade_snake_render Return the current board as ASCII art with score and status.
arcade_snake_history Return every turn, direction, reason, position, score, and outcome.

Board and replay rules

The board dimensions range from 5 to 30 cells in each direction. The default board is 12 by 8, and the default seed is 1. The snake starts in the center heading right. H marks the head, o marks the body, and * marks the food.

The Agent uses a simple deterministic policy: it compares legal directions by Manhattan distance to the food, then applies a stable tie-break order. The policy is intentionally easy to read and modify; it is not intended to be a competitive game-playing algorithm.

To reproduce a run, call arcade_snake_new with the same dimensions and seed, then replay the same manual directions. A game ends when the snake hits a wall or itself, or when the board is filled.

Updating the plugin

From the cloned repository:

git pull
pnpm install
pnpm build

Restart Harness with the same patch command after rebuilding.

Development

Run the complete package quality gate from the repository root:

pnpm run format:check
pnpm run typecheck
pnpm run test
pnpm run build

The implementation is split into small modules:

src/
  index.ts       # Harness entry point and tool registration
  snake-game.ts  # Deterministic game rules, policy, rendering, and history

test/
  index.test.ts
  mount.test.ts
  snake-game.test.ts

For the plugin model and patch overlay format, see the official DeepSeek Harness plugin guide.

Install

🧩 Let your agent install it (recommended)

Install the catalog once, then DeepSeek Harness can find and install any plugin from this site automatically:

dsh plugin add dshbase-catalog

Then say "install dsh-agent-arcade for me" — your agent finds it in the directory and installs it. Docs: dshbase-catalog · verified packs.

This plugin is GitHub source (not published to npm) — install it straight from the repo:

Web profile:

dsh plugin --profile web add github:fff122/dsh-agent-arcade

Headless (CLI) profile:

dsh plugin --profile headless add github:fff122/dsh-agent-arcade

Test report

Verified: L1 install + L2 load + L3 runtime from GitHub source on dsh 0.1.0-rc.6.

When to use it

Automate a repetitive job — scheduling, chaining tasks, or reacting to events — so it runs without you starting it.

Who it's for

Users with recurring work who want it cron-style and hands-off rather than manually triggered.

For developers — extending it

Triggers and task templates are the seams — add event-driven or file-watch triggers, and richer workflow composition.

Security: not yet scanned — our daily static scan will cover it shortly.

Share this badge

More in Automation

Browse all 7797 plugins →