Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
A

Agentshire

> AI 编程
Open source

OpenClaw / QClaw plugin that visualizes AI agents as 3D NPCs in a game town — with social simulation, a map editor, and a character workshop.

1.3K stars0 likes2 views
WebsiteGitHub

About

OpenClaw / QClaw plugin that visualizes AI agents as 3D NPCs in a game town — with social simulation, a map editor, and a character workshop.

Agentshire

English | 中文

Agentshire — Let your OpenClaw/QClaw agents live in a game town you built yourself, not a ChatBox.

Agentshire is an OpenClaw/QClaw plugin that turns AI agents into living NPCs inside a 3D town you can watch, chat with, and shape yourself. It combines a living simulation layer with UGC tools: weather, day/night cycles, social NPCs, a map editor, and a character workshop.

Works with both OpenClaw CLI and QClaw desktop app.

Vision | Roadmap

Compatibility

Platform Version Status
OpenClaw CLI 2026.3.13 ✅ Recommended
QClaw Desktop 0.2.x ✅ Supported
OpenClaw CLI 2026.3.7 – 3.12 ⚠️ May work
OpenClaw CLI 2026.4.x+ ❌ Not yet — channel init regression

See Troubleshooting for version-specific issues.


See It in Action

** Watch the full demo on YouTube**

A town, not a chatbox.

https://github.com/user-attachments/assets/c888d2ef-dcba-4caa-b0af-9b5f3e3b1365

Build your characters — pick a model, give them a soul, watch them come alive.

https://github.com/user-attachments/assets/b9697432-b3ba-4e23-85fe-4c0b5c35a1b9

Build your town — drag, drop, preview.

https://github.com/user-attachments/assets/3328aa6c-3432-4f71-abfd-91aea4db15df

Every citizen has a mind of their own.

https://github.com/user-attachments/assets/720a63fc-863c-483c-bfdf-5e07e82c6f0e

Give them a mission. Watch them rally.

https://github.com/user-attachments/assets/1983f60b-aaf6-4adc-b46c-5612e4ba4c83

Work too long? Banwei Boss appears. Pop it.

https://github.com/user-attachments/assets/9be946e0-9ecf-42de-b793-a5d7ebe55612

Mission complete. Fireworks. Playable game delivered.

https://github.com/user-attachments/assets/fa6563ae-e78b-49b1-ae7b-8a8a96738341


Features

Dual-Mode Interface

  • Town Mode — Low-poly 3D town where you watch NPCs live, work, collaborate, and celebrate in real time
  • Chat Mode — IM-style chat interface with an agent list (steward + citizens, online status), message history, multimodal support (text/image), and commands (/new /help /stop)
  • Top Navigation — One-click switch between Town and Chat, with a quick menu (Citizen Workshop / Town Editor / Skill Store / Settings)
  • Bilingual UI — Full Chinese and English interface, auto-detected or manually switchable

Core

  • Agent = NPC — Every sub-agent automatically becomes a 3D citizen with a name, appearance, and personality
  • Cinematic Workflow — Summon → Rally → Assign → Enter Office → Code → Celebrate → Return to Town, fully choreographed with animations
  • Real-Time Dialog Bubbles — AI responses appear above NPC heads with a typewriter effect, streaming updates, and pagination
  • Multi-Agent Collaboration — The steward automatically decomposes tasks into parallel steps with file boundary validation
  • Zero Configuration — Install the plugin, start the Gateway, and the town runs automatically

Town Life

  • Day/Night Cycle — 24-hour clock (6 periods), real-time lighting changes, automatic street/window lights
  • 12 Weather Types — Clear / cloudy / fog / drizzle / rain / storm / snow / blizzard / sandstorm / aurora… daily random theme with smooth transitions
  • Procedural Ambient Sound — Rain, wind, birdsong, crickets, traffic, thunder — all synthesized in real time via Web Audio API, zero audio files
  • 4-Track BGM — Day / dusk / night / work tracks, auto-switching by weather, time period, and scene with 3.5s crossfade
  • NPC Daily Behavior (Dual Mode) — Algorithm-driven by default: state machine + 5 behavior templates + 400+ preset dialog lines, zero LLM cost. Enable Soul Mode to switch to AI-driven: AgentBrain 3-tier decisions (L1 daily plan / L2 tactical / L3 dialogue) + deep multi-turn LLM conversations + relationship graph + daily narrative summaries
  • Citizen Chat — Click any citizen NPC to start a conversation, routed to that citizen's independent Agent session
  • Topic Discussion — Start a group discussion with multiple citizens on a topic, with structured turn-taking and AI-moderated dialogue
  • Banwei Buster Mini-Game — NPCs generate "banwei orbs" while working; click to pop them! Includes combo system, boss battles, and NPC stress mechanics

UGC Tools

  • Citizen Workshop — Create and configure citizen characters: select/upload 3D models, edit soul personality (AI generation supported), configure animation mapping (8 slots), publish as independent Agents
  • Town Editor — Visual drag-and-drop map editing: place buildings/roads/props/lights, with grouping, alignment, undo, and JSON export (runtime integration in progress)
  • Editor Preview — One-click game-level preview window (WASD controls + full day/night + weather + vehicle animations + audio)
  • Soul System — Each NPC has a Markdown personality file defining character traits, speaking style, expertise, and work approach

Interaction & Visuals

  • Interactive 3D — Click NPCs to view status cards (avatar / persona / work logs / thinking stream / TODO), drag to pan, scroll to zoom
  • 3 Scene Types — Town (daily life) / Office (work) / Showroom (in development), with fade transitions and NPC migration
  • Rich VFX — Summon shockwave, completion fireworks, error lightning, persona-transform magic circle, thinking halo, search radar, confetti…
  • 10-Workstation Office — Each workstation has its own monitor (real-time code animation), full NPC enter/work/leave choreography
  • Deliverable Preview — After project completion, deliverable cards pop up with image lightbox, video, audio preview and download; games/websites launch directly in iframe
  • AI Tool Control — Agents can control the town via tools (broadcast messages, spawn NPCs, trigger effects, set time/weather)
  • Reconnection — WebSocket auto-reconnect with exponential backoff and work state recovery

Requirements

  • OpenClaw 2026.3.13 (recommended)
  • Node.js >= 18

Quick Install

OpenClaw CLI

bash
openclaw plugins install agentshire

QClaw Desktop

Clone into the QClaw extensions directory (where built-in plugins like qclaw-plugin, lossless-claw are located — not ~/.qclaw/plugins/), install dependencies, then restart QClaw:

bash
# Find the extensions directory (contains qclaw-plugin, lossless-claw, etc.)
ls ~/Library/Application\ Support/QClaw/openclaw/config/extensions/  # macOS
# Clone and install
cd 
git clone https://github.com/Agentshire/Agentshire.git agentshire
cd agentshire && npm install

The town opens automatically at http://localhost:55210 after restarting QClaw.

The frontend comes pre-built (town-frontend/dist/). No build step needed.

Alternative: Link Install (for development)

bash
git clone https://github.com/Agentshire/Agentshire.git
cd Agentshire && npm install
openclaw plugins install --link .

What the plugin auto-configures on first start

  1. Creates the steward workspace (workspace-town-steward/ in your state directory)
  2. Registers the town-steward Agent in openclaw.json
  3. Adds a routing rule to direct town channel messages to the steward
  4. Sets subagents.runTimeoutSeconds: 600 — 10-minute timeout to prevent premature subagent termination

The state directory is auto-detected: ~/.openclaw/ for OpenClaw CLI, ~/.qclaw/ for QClaw.

Important: Do not add a tools section to openclaw.json. The plugin registers its own tools via api.registerTool(). A manual tools.allow list will override plugin-registered tools, making them invisible to the agent.

Update

bash
openclaw plugins install agentshire

Or for link installs: cd Agentshire && git pull && npm install.

Then restart the Gateway (or restart QClaw).


Usage

  1. Complete the Quick Install steps
  2. Start (or restart) the OpenClaw Gateway:
    bash
    openclaw gateway
  3. The town opens automatically in your browser
  4. Chat in the browser — all Agent activity is automatically mapped to the town

Tip: If the browser didn't open automatically, visit: http://localhost:55210?ws=ws://localhost:55211

Citizen Workshop

Visit http://localhost:55210/citizen-editor.html to create and configure your NPC team.

Town Editor

Visit http://localhost:55210/editor.html to open the visual map editor.

Configuration (Optional)

Customize ports and behavior in your openclaw.json (~/.openclaw/openclaw.json for OpenClaw CLI, ~/.qclaw/openclaw.json for QClaw):

json
{
  "plugins": {
    "entries": {
      "agentshire": {
        "enabled": true,
        "config": {
          "wsPort": 55211,
          "townPort": 55210,
          "autoLaunch": true
        }
      }
    }
  }
}
Option Default Description
wsPort 55211 WebSocket port (real-time plugin ↔ frontend communication)
townPort 55210 HTTP port (frontend static files + editor API)
autoLaunch true Auto-open town in browser on startup

AI Tools

Tool Description
town_announce Broadcast a message in the town
town_spawn_npc Spawn a new NPC
town_effect Trigger visual effects (celebration / fireworks / glow, etc.)
town_set_time Control the game clock
town_set_weather Control weather (12 types available)
town_status View current town status
register_project Register a simple project (single-agent or steward-only)
create_project Create a project directory for multi-agent work
create_task Create a task directory for single-agent delegation
create_plan Create a collaboration plan (parallel steps, requires create_project or create_task first)
next_step Query plan progress and get next step instructions
mission_complete Unified completion handler — auto-routes to celebration or partial delivery based on remaining work

Soul System

Every NPC has an independent soul file (Markdown) that defines personality, speaking style, expertise, and work approach.

Format: a Markdown file starting with # Character Name, optionally containing metadata (model ID, gender, role), core persona, detailed personality settings, and dialog examples. The content is injected as the Agent's system prompt.

Search priority (later overrides earlier):

  1. plugin-builtin/town-souls/ — Preset souls (8 citizens + steward)
  2. cwd/town-souls/ — Project-level souls
  3. {stateDir}/town-souls/ — User custom souls (~/.openclaw/ or ~/.qclaw/)
  4. town-data/souls/ — Souls published from Citizen Workshop

You can:

  • AI-generate soul files in the Citizen Workshop
  • Modify built-in soul files to adjust personalities
  • Place custom souls in your state directory's town-souls/ folder to override presets
  • Create entirely new soul files for new characters

Architecture

…

Developer architecture guide: AGENTS.md


Development

bash
# After cloning
cd agentshire

# Build the town frontend
cd town-frontend && npm install && npm run build

# Dev mode (hot reload)
cd town-frontend && npm run dev

# Run tests
npm test                              # Plugin + bridge layer
cd town-frontend && npx vitest run    # Frontend

The frontend has 4 entry pages:

Page URL Description
Town index.html 3D town + chat
Town Editor editor.html Visual map editing
Citizen Workshop citizen-editor.html Character creation and configuration
Editor Preview preview.html Game-level preview window

Developer architecture guide: AGENTS.md


Asset Pack (Optional)

Basic

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

TypeScript3dai-agentsgamedevmulti-agents

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
CategoryAI 编程
PricingOpen source

> Related tools

G
GitHub Copilot
GitHub 官方 AI 编程助手,覆盖补全、Chat 与 Agent 模式。
C
Cursor
AI 原生代码编辑器,对话改代码、多文件 Agent 与规则体系是其核心。
S
skills
Skills for Real Engineers. Straight from my .agents directory.