rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:SlAltum/dsh-godot
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
English | 中文
A family of Godot Engine plugins for the DeepSeek Harness agent harness: headless project tooling, GDScript semantic navigation, a scripted debugger, and a visual sandbox for a running game. This repository is self-contained: it declares its own workspace, resolves @deepseek-ai/dsh-* from the published npm releases, and builds here without the harness monorepo.
Point the agent at a Godot project and it can validate scripts, run a scene headless, format GDScript, inspect project files, debug a scripted run, and drive a running game it can see. One optional bundle installs the whole family; dsh-base and dsh-web-app stay free of Godot rows, so a project that never uses Godot pays nothing. Each package declares its own host requirement — a Godot 4.2+ binary, and optionally gdformat — and reports a missing executable at call time, never at load.
| Package | Role | DSH seam |
|---|---|---|
bundle-godot/ |
Optional capability bundle: installs the four host packages below as one profile bundle; Godot is not part of dsh-base or dsh-web-app |
dsh.bundle.patch |
tool-godot/ |
Headless CLI tools: godot_validate, godot_run_scene, godot_format, godot_inspect, godot_editor_script |
ctx.tools |
lsp-godot/ |
GDScript navigation (goToDefinition / findReferences / hover) through Godot's built-in TCP language server, attach or spawn |
ctx.lsp |
tool-godot-debug/ |
godot_debug: one bounded scripted debug run — breakpoints, headless launch, per-stop stack/variable snapshots, structured report |
ctx.tools |
tool-godot-ego/ |
Visual sandbox: a persistent running game the agent can see, read, and operate (godot_play plus 20 more tools) |
ctx.tools |
ui-godot/ |
Web settings card for the godot namespace and the sandbox watch panel (floating ball, live frame, click-to-drive) |
browser slots |
The capabilities were migrated from godot-vscode-plugin (Godot Tools v2.7.1, ~700k installs), keeping the pure-logic cores; the migration is pinned by protocol facts recorded against a real Godot 4.7 instance. See docs/architecture.md for the module map and protocol-fact pointers.
--headless support (spawn-mode LSP's version gate also accepts 3.6+).godot_format backend) are host installs, never bundled; a missing executable surfaces as the structured GODOT_UNAVAILABLE error at call time, never at load time.godot --headless --editor --path <root> --import --quit once per project, or expect a slower first run.user:// directory must be writable; game mode otherwise crashes with signal 11.Godot is optional: dsh-base and dsh-web-app mount none of these packages. The supported path is the capability bundle, which inserts the four rows together and appears under Installed plugins in the Plugins page.
Clone, install and build, then point the harness at the built bundle:
git clone https://github.com/SlAltum/dsh-godot.git
cd dsh-godot
pnpm install && pnpm build
dsh plugin install link:<absolute path to dsh-godot>/bundle-godot
Restart dsh web after installing. The bundle's page carries the tool-godot settings form, and every row keeps the defaults listed under Configuration. A profile that wants only some rows can insert the individual packages instead and skip the bundle.
For an in-process or hand-written composition, mount the rows directly:
import { Context } from '@deepseek-ai/cordis'
import { LocalSubprocessRuntime } from '@deepseek-ai/dsh-subprocess-local'
import * as ToolGodot from '@deepseek-ai/dsh-tool-godot'
import * as GodotLsp from '@deepseek-ai/dsh-lsp-godot'
import * as ToolGodotDebug from '@deepseek-ai/dsh-tool-godot-debug'
import * as ToolGodotEgo from '@deepseek-ai/dsh-tool-godot-ego'
// A deployment points at its godot install; the default resolves `godot` on PATH.
export async function mount(ctx: Context): Promise<void> {
await ctx.plugin(LocalSubprocessRuntime)
await ctx.plugin(ToolGodot, { executable: 'C:\\Godot\\godot.exe' })
await ctx.plugin(GodotLsp, { connectMode: 'spawn', spawnExecutable: 'C:\\Godot\\godot.exe' })
await ctx.plugin(ToolGodotDebug, { executable: 'C:\\Godot\\godot.exe' })
await ctx.plugin(ToolGodotEgo, { executable: 'C:\\Godot\\godot.exe' })
}
Every key has a default; per-package details live in each package's README.
| Package | Notable config | Defaults that matter |
|---|---|---|
tool-godot |
executable, gdformatExecutable, formatBackend: 'gdformat' \| 'builtin', timeoutMs |
executable: godot; timeoutMs: 60000 |
lsp-godot |
connectMode: attach \| spawn \| auto, ports, spawnExecutable, spawnPort, spawnReadyTimeoutMs |
connectMode: auto; ports: [6005] |
tool-godot-debug |
executable, debugPort (0 = auto-pick), connectWaitMs, idleTimeoutMs, maxOutputBytes |
debugPort: 0; connectWaitMs: 20000; maxStops capped at 50 per call |
tool-godot-ego |
executable, allowEval, offscreen, maxFps / fixedFps, maxWidth, maxNodes, maxProps, requestTimeoutMs, graceMs |
allowEval: false; maxFps: 60; maxWidth: 1280; requestTimeoutMs: 20000 |
| Tool | Package | Purpose |
|---|---|---|
godot_validate |
tool-godot | Project/script validation through the headless editor (structured issues). |
godot_run_scene |
tool-godot | Run a scene headless, capture output. |
godot_format |
tool-godot | Format a .gd file (gdformat or builtin backend); read-only, returns text. |
godot_inspect |
tool-godot | Pure parse of project.godot / .tscn / .tres structure. |
godot_editor_script |
tool-godot | Run a res:// EditorScript in the headless editor. |
lsp |
(tool-lsp) | .gd navigation: goToDefinition / findReferences / hover through the Godot provider. |
godot_debug |
tool-godot-debug | One scripted debug run: breakpoints, headless launch, per-stop snapshots, auto-continue, structured report. |
godot_play / godot_stop / godot_scene / godot_status |
tool-godot-ego | Start, stop, report or switch scenes, and inspect the sandbox session (21 tools in total). |
godot_see / godot_state / godot_node / godot_find / godot_diff / godot_logs / godot_actions |
tool-godot-ego | See the frame, read the scene tree and clickable Controls, read properties, measure visual change, read logs, list InputMap actions. |
godot_click / godot_key / godot_type / godot_fill / godot_check / godot_hover / godot_drag / godot_scroll / godot_wait / godot_wait_for |
tool-godot-ego | Operate the running game (including setting a field and toggling a Control) and wait for frames or a value condition. |
network/language_server/remote_port, default 6005). lsp-godot attaches to a running editor, or spawns a headless one (--lsp-port) and pools providers per workspace; .gd queries (goToDefinition / findReferences / hover) are served through the harness ctx.lsp seam.--remote-debug — not DAP. Frames are [u32 LE length][variant-encoded array] of [command, threadId, params] (Godot 4.2+). godot_debug binds a pre-picked free port, spawns the game headless, snapshots the stack and locals/members/globals at each stop, and auto-continues up to maxStops.SceneTree replaces the project's main loop and loads a bridge from outside the project, so project.godot is never edited. The bridge answers newline-delimited JSON over loopback (port and token travel through the environment), captures frames into memory, and injects input through Viewport.push_input. The game keeps running between calls; godot_see delivers a frame into the conversation.godot_debug v1 is a launch-only scripted run that owns its game process; attach-mode debugging and stateful sessions are future work..godot/ import artifacts and may exceed the 60 s tool budget on large-project cold start (raise timeoutMs / spawnReadyTimeoutMs).127.0.0.1:6005).godot_debug terminates its game process on every path; a crashed harness can still orphan it.PATH for the tools themselves.pnpm install resolves every @deepseek-ai/dsh-* dependency from npm (the alpha dist-tag tracks this repository: 0.2.2-alpha.3). pnpm build compiles each package's src/ to lib/ with tsc; no other build step is involved.ui-godot/ (the browser settings card and sandbox watch panel) is not part of this build: its client bundle needs the harness monorepo's client build pipeline (packages/client/tsdown.client.ts, 1000+ lines of CSS/asset/react wiring). The four host packages and the bundle work without it; godot_see returns frames straight into the conversation, so the watch panel is convenience, not capability. Adopting the client pipeline here is tracked as future work.bundle-godot/ — the optional capability bundle (rows, icon, install docs).tool-godot/, lsp-godot/, tool-godot-debug/, tool-godot-ego/ — the four host packages above (see architecture for the module map).ui-godot/ — the browser surface; source only, excluded from pnpm build (see Building from source).docs/ — architecture documentation.Tested on:
Suites are not wired in this repository yet: they still import the harness test toolkits, which are not published. Port them once those arrive; until then pnpm build plus a real-Godot smoke run is the verification gate. Real-Godot integration suites (for example, the debugger smoke) are opt-in through GODOT_EXE.
godot_format is read-only by design; the model applies changes through the file-policy surface.toFixed(1) math types, toFixed(5) floats).Released under the MIT License. See LICENSE for the full text.
Protocol facts (LSP framing, the remote-debugger binary format, Godot version gates) are recorded against a real Godot 4.7 instance under docs/; recheck them before changing a wire claim. The repository is mounted into the harness monorepo as the packages/godot submodule; a change lands here first and the parent records the new commit.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: llm、deepseek、deepseek-harness。