Skip to content
المشاريع

حول

An AI coding agent built in Godot.

أدوات التطوير

كيف تُقاس هذه الأرقام

248 نجمة26 التفرعات +2 خلال 24 ساعة

النمو المقاس للنجوم

خلال 24 ساعة
+٢
خلال 7 أيام
+٥
خلال 15 يومًا
+١٢
خلال شهر
+٤٨

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل

GAI logo

GAI

An AI coding agent built in Godot.

Godot 4.6 GDExtension Python 3.14 Node.js 24 MIT

Built on a game engine — the entire app is a Godot scene: GPU-drawn UI, shader effects, and visuals that react to what the agent is doing.
The loop — read the code, look things up, change it, run the tests, show the diff, and revert with git when it misses.
Memory — a background agent curates .memory/ during compaction, so the next session already knows your rules and goals.
Browser use — open, observe, click, type, and screenshot real pages.
Local deployment — the engine, runtimes, and GGUF models land in .dependency/; point chat at 127.0.0.1 and nothing leaves the machine.
MCP — any server's tools join the same transcript, plus 40 skills (36 with bundled scripts) and a portable AGENTS.md.

🖼️ Look inside

GAI desktop coding agent

Streaming tool calls, inline diffs, token usage — and one of 60 animated scenes painting over the transcript while it works.

🚀 Quick start

Needs Windows 10/11 and Git. Everything lands in .dependency/ — nothing is installed system-wide.

1. Clone

git clone https://github.com/godot-fun/gai.git && cd gai

2. Dependencies

Hand agent/Dependency.md to a coding agent — it provisions Godot, Python, and Node.js into .dependency/. Then install the browser service:

.dependency/node/npm.cmd install --prefix web

3. Launch

Way How Difference
Editor (simplest) Open the project in Godot 4.6, open agent/Agent.tscn, run the scene No auto pull or re-import; user:// stays with your OS profile and data goes to .gai_temp/
Launcher agent.bat Pulls, re-imports, starts; keeps user:// and data inside .gai/

✨ Why it feels different

  • 🧠 An agent loop, not autocomplete. Reads the codebase, plans, edits, runs commands and tests, then keeps going until the work is done.
  • 🧾 Every turn is a checkpoint. Diff it, restore one file, or roll the whole workspace back (when Git is installed). Your own repository is never touched.
  • 💾 Memory you can read. Rules, goals, and history live in .memory/ as plain Markdown — inspect, edit, or delete anything; a background agent merges it during compaction.
  • 🗂️ Sessions you can actually manage. Pin, rename, drag to reorder, or delete conversations in the sidebar; each workspace keeps its own set.
  • 🖥️ An editor, not a bystander. File tree, tabs, images, Markdown preview, and a Git Bash window, one click from the chat.
  • 🎙️ Talk instead of typing. Hold Alt+Z in any window — screen context, dictation, and a rewrite land in the field you were already looking at.
  • 🎆 Scenes, not a spinner. Tool calls drive live visuals over the transcript — matrix rain, a reasoning tree, a memory river — and you pick which.
  • 📷 Images are first-class. Drop a screenshot into the chat and Qwen3.8-27B reads it on your machine — no upload, no second vision API.
  • 🔒 Safety mode. When it is on, file tools stay inside the workspace and shell commands meet a heuristic guard, so a wrong step cannot wander off.
  • 🧱 A framework, not just an app. The agent runs on zfoo/, a standalone Godot framework you can sync into your own project.

🔁 One task, end to end

ask    →    explore    →    search    →    edit    →    verify    →    review
            list_dir        web_search     edit         bash           diff
            glob            web_fetch      write        read_image     checkpoint
            grep            browser_open   delete                      restore file
            read            browser_act                                git revert
              ↑                                         │
              └────────────────── fix ──────────────────┘

🧭 Project context

Four files can join a session, and each one has a toolbar toggle, so a single conversation can include or skip any of them. Three come from the opened workspace; the memory index comes from the app dir, because memory belongs to the app and no other project ships one:

File What it adds
AGENTS.md Repository map, GDScript conventions, and testing rules — the agent's standing instructions for this project
SYSTEM.md Not shipped with the repo: create one to replace the generated system prompt — workspace path, Godot version, dependency paths, and OS facts — with your own text
.memory/ Durable memory, one Markdown file per topic — created in the app dir on first run, indexed from each file's front matter, curated by a background agent during compaction
.agents/skills/README.md Hand-written catalog of the skills — for people and other agents; the app builds its own index from the skill folders instead, grouped into Workspace skills then Built-in skills

AGENTS.md is appended as an extra context message, together with two indexes the app generates itself: one from the skill folders under .agents/skills/, one from the memory files under .memory/; SYSTEM.md is the only one that replaces the base prompt instead of adding to it. .memory/ is read from (and written in) the app dir only — switching workspace never changes it — and each generated row links the absolute file, since agent tool paths resolve against the workspace.

Edit any of them and the next new session already sees the change — no app restart needed.

🎨 Beyond code: asset skills

The agent also owns a library of 40 skills (36 with bundled scripts) — audio cleanup, image processing, video pipelines, storyboards, and TTS. Each has a SKILL.md the agent understands and a CLI.md command reference; executable skills add a scripts/ folder. All are reachable from chat, the CLI, and a typed node canvas.

.dependency/python/python .agents/skills/audio-to-wav/scripts/convert.py --audio path/to/audio.mp3

GAI workflow editor

Browse the full catalog; details are in agent/app/workflow/README.md.

🧱 The Godot framework

The app is built on zfoo/ — a standalone GDScript framework that ships in this repo, not vendored glue. It is usable outside GAI: copy or sync it into any Godot 4.6 project.

Module What it gives you
zfoo/ai/ OpenAI-compatible chat, streaming, tool definitions, tool calls
zfoo/net/ TCP and WebSocket clients, router request/response
zfoo/concurrent/ executors, thread-safe collections, LRU caches
zfoo/ui/ theme tokens, typography, display scaling, alerts, toasts, popups
zfoo/audio/ music playlists, voice, sound effects, microphone recording
zfoo/resource/, zfoo/scene/ async loading, fade and slide scene transitions
zfoo/hotupdate/ PCK hot update
zfoo/gdtest/ unit and integration test runners

Full API surface: the framework reference in AGENTS.md.

🔌 Local services

Service Role
web/ Node.js + Playwright: web search, page fetch with screenshots, MCP gateway (GET /mcp/tools, POST /mcp/call)
LlamServer Qwen3.8-27B via llama.cpp: local image reading and text chat (idle-released)

🧩 MCP

Copy web/mcp.example.json to web/mcp.json, list stdio or Streamable HTTP servers, then restart the browser service from Settings.

🤝 Works with other agents

Agent Setup
OpenCode Use the included opencode.json
DeepSeek / Codex Native project-instruction and skill support
Cursor Copy the skill folders from .agents/skills/ (skip common/ and fixtures/) to .cursor/skills/
Claude Copy AGENTS.md to CLAUDE.md, then copy the skill folders from .agents/skills/ (skip common/ and fixtures/) to .claude/skills/

🗺️ Repository map

agent/  desktop agent · editor · tools · MCP · local servers
web/    Node.js browser + MCP gateway        cpp/   godot-cpp GDExtension
zfoo/   reusable Godot framework              .dependency/  isolated runtimes
.agents/skills/  skill definitions, docs, scripts   .memory/  durable memory, written on first run
.agents/skills/README.md  skill index               (its *.md files are the generated index)
test/   zfoo tests                           agent/test/   app tests
.gai/        launcher data dir. cloud/ is Steam Cloud synced (sessions, note, model profiles,
             setting.config); cache/ app-wide caches; checkpoints/ shadow git repos; Godot/ the
             portable user:// tree (logs)
.gai_temp/   same, when the app is started from the Godot editor instead (agent.bat passes --data-dir .gai)

📄 License

MIT — see LICENSE.

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…