Skip to content
yo4ePublic

About

LLMなしで「誰かがそこにいる」と感じられるかを探る極小Situated Agent。世界・記憶・言語・身体状態を分離したGGPTの再実装。A tiny situated agent exploring presence without LLMs: world, memory, body state, and language running entirely in the browser.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

11 Commits

Folders and files

Repository files navigation

GGPT-3 — Generative Grandpa Pattern Talker

日本語 / English

Live: https://yo4e.github.io/ggpt-3/

日本語

GGPT-3は、汎用AIの小型版を目指すのではなく、「誰かがそこにいる」と感じられるかを試す、極小・サーバレスの会話エージェントです。

LLM、API、ログイン、バックエンド、ビルド工程は使いません。すべてブラウザ内で動作し、小さな世界、記憶、言語モデルを localStorage に保存します。

系譜

GGPT-3は、GGPT-2.1 で試した発想を、コンパクトさを保ったまま再設計・再実装したものです。

GGPT-2.1は当時の作品としてそのまま保存しており、公開版も https://ggpt.pages.dev/ に残しています。

核となる考え方

エージェントを小さな層に分けています。

  • world — 時間、天気、部屋、茶、身体状態
  • memory — 少数の最近の出来事・話題と忘却
  • language — テンプレート + 可変長Markov生成
  • agent — 知覚 → 内部状態 → 意図 → 発話
  • UI — 最小限のチャット画面

重要なのは、世界が言語生成の外側に存在することです。

「雨」という文章が先に生成されるのではなく、まず世界に雨が降っている。茶はユーザーが話題にしなくても冷める。その外在する状態を爺が知覚し、ときどき発話へ持ち込みます。

設計上の制約

  • 静的ファイルのみ
  • サーバ / API / アカウント不要
  • LLMなし
  • フレームワーク・依存ライブラリなし
  • 利用可能ならブラウザ標準の Intl.Segmenter で日本語を分割
  • ローカル保存と有限の忘却
  • ページを閉じていた時間も考慮したworld stateの追従
  • ブラウザごとに永続するseeded乱数

GGPT-3で試していること

GGPT-3の目的は、事実に正しく答えることでも、高い知能を持つことでもありません。

知能がごく小さくても、時間、身体、環境、記憶、忘却、偶然性があれば、存在感は生まれるのか。その最小条件を探る実験です。

また、GGPT-3は爺専用のチャット実装ではなく、ゲーム、メタバース、3D空間、人工世界などへ移植できる Tiny Situated Agent(極小の状況内存在)の基礎実験として育てます。

将来的には、このAgent部分を Mintwhirl Island のイチゴやドーナツを含む複数の住民へ移植し、「人間が何もしなくても住民同士で何かが起きる」小さな人工世界へ発展させることを想定しています。

長期構想と系譜は VISION.md にまとめています。

ローカルで動かす

index.html を直接開くか、任意の静的Webサーバでこのディレクトリを配信してください。

GitHub Pages

.github/workflows/pages.yml から main へのpushごとにGitHub Pagesへ自動デプロイします。

Status

Experimental.

目標は「賢いNPC」ではなく、継続性と環境的な因果によって、そこにいるように感じられる極小のsituated agentです。

ライセンス

GGPT-3 のコードと設計資料は MIT License で公開しています。Tiny Situated Agent の実装や設計を、ゲーム・人工世界など別のプロジェクトへ再利用・改変できます。

Design: 月野テンプレクス / Tsukino Templex


English

GGPT-3 is a tiny, serverless conversational agent that tries to feel like someone who is there, rather than a miniature general-purpose AI.

It uses no LLM, no API, no login, no backend, and no build step. The whole app runs in the browser and keeps its small world, memory, and language model in localStorage.

Lineage

GGPT-3 is a clean reimplementation of the ideas explored in GGPT-2.1, whose archived live version remains at https://ggpt.pages.dev/.

GGPT-2.1 is intentionally left untouched as the original work. GGPT-3 keeps its compact spirit while revisiting the implementation.

Core idea

The agent is split into small layers:

  • world — time, weather, room, tea, body state
  • memory — a few recent episodes/topics, with forgetting
  • language — templates + variable-order Markov generation
  • agent — perception → internal state → intent → utterance
  • UI — a minimal chat surface

The world exists outside the language generator. Rain is a state before it becomes a sentence. Tea cools whether or not the user mentions it.

Design constraints

  • static files only
  • no server / API / account
  • no LLM
  • no framework or dependency
  • browser-native Intl.Segmenter when available, with a tiny fallback
  • local persistence and bounded forgetting
  • real-time offline catch-up
  • deterministic seeded randomness per installation

What GGPT-3 explores

The goal is not factual correctness or intelligence. GGPT-3 asks how little language intelligence is needed for continuity, embodiment, memory, forgetting, timing, and environmental causality to create a sense of presence.

GGPT-3 is also intended as a portable Tiny Situated Agent base for games, metaverse spaces, 3D environments, and artificial worlds, rather than an implementation tied permanently to a single grandpa chat character.

The same compact agent loop can later be transplanted into multiple embodied residents, including inhabitants of Mintwhirl Island, so that things can happen between them even when the human does nothing.

See VISION.md for the long-term lineage and project direction.

Run locally

Open index.html directly, or serve the directory with any static server.

GitHub Pages

The workflow in .github/workflows/pages.yml deploys pushes to main automatically.

Status

Experimental. The goal is a tiny situated agent with enough continuity and environmental causality to feel present.

License

GGPT-3 code and design documentation are available under the MIT License. The Tiny Situated Agent implementation and design may be reused and adapted in games, artificial worlds, and other projects.

Design: 月野テンプレクス / Tsukino Templex

About

LLMなしで「誰かがそこにいる」と感じられるかを探る極小Situated Agent。世界・記憶・言語・身体状態を分離したGGPTの再実装。A tiny situated agent exploring presence without LLMs: world, memory, body state, and language running entirely in the browser.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages