A plug-in for any game · built on FalkorDB

Characters that remember, gossip, exaggerate, hold grudges and investigate.

Gossip Engine plugs into a game and gives its characters a memory. They see what you do, tell the people they know, and act on what they believe. The story changes as it travels, and you can trace every reaction back to who told whom.

  • 5 SDK calls to give characters memory
  • 16 graph tools for any AI agent
  • 500 characters, one night, one second
    One story, recorded from the engine with GTA V characters. Nobody wrote Michael's reaction. It came from what Jimmy told him. Run it live in Story Lab.

    GTA V, with a memory

    What if Los Santos remembered what Franklin did?

    In GTA V, people forget you when you turn a corner, and the big reactions are cutscenes. We gave nine GTA V characters to the engine: Franklin's friends on Forum Drive, his boss Simeon, the De Santa family, Lester and Trevor. Then we played two stories from the game.

    Replay of a recorded engine run · run Los Santos live in Story Lab

    The engine made each hop, retelling, belief and reaction above, and Gemini wrote the words (server/scripts/export_showcase.py, world file los_santos.json). GTA V and its characters belong to Rockstar Games. Gossip Engine is not affiliated with or endorsed by Rockstar Games.

    Made for a whole city

    • One graph for each save. Each save is separate, it lasts, and you can query it with Cypher.
    • Level of detail. Run gossip only for districts near the player. Run the rest once each game day.
    • 500 characters in about one second. The night runs without the model. Gemini writes only the lines a player reads.
    • Fixed seeds. QA can play any night again, exactly the same.
    • Designers work in data. Groups, values, traits and rules live in one world JSON file.

    Ask the graph: who is after Franklin, and why?

    MATCH (npc:NPC)-[:HAS_RULE]->(r:Rule),
          (b:Belief)-[:TRIGGERS]->(r),
          (b)-[:SUPPORTED_BY]->(m:Memory),
          (m)-[:HEARD_FROM]->(src:NPC)
    WHERE r.active AND r.effect = 'hostility'
    RETURN npc.name, r.label, m.version_text, src.name

    The query runs on the recorded Los Santos save.

    Stories you know

    Scripted in the game. Emergent with the engine.

    Each card is a moment from GTA V. "Today" is how the game handles it. "With Gossip Engine" is what the engine does with the same characters. You can run each one yourself in Story Lab.

    Complications

    Franklin · Jimmy · Michael

    TodayFranklin repossesses Jimmy's car, and Michael is waiting in the back seat because the mission script puts him there.

    With Gossip EngineJimmy tells his dad that Franklin stole the car at gunpoint. Michael believes his son, and comes looking for Franklin. Nobody wrote that scene.

    Stories change as they spread

    Lamar talks

    Lamar · Aunt Denise · Stretch

    TodayLamar's stories live in cutscenes. Nobody on Forum Drive hears about your day unless a mission says so.

    With Gossip EngineSimeon tells Lamar about the repo job. By morning Lamar has told Aunt Denise and Stretch, twice and louder, each time in his own words.

    Memory for each person

    The Vangelico job

    Lester · Trevor · Michael

    TodayTrevor sees the jewelry store robbery on the TV news and works out that Michael is alive. It is a cutscene.

    With Gossip EngineLester saw the job on the store's cameras. He tells Trevor, and Trevor wants in on Franklin's next job. The news travels like any other story.

    Reactions that start missions

    Give the car back

    Franklin · Simeon · the De Santas

    TodayThe repo job has one ending. You take the car, or you fail the mission.

    With Gossip EngineLet Jimmy keep the car, and the De Santas like Franklin more. Simeon hears about it and cuts Franklin's pay. Every choice has a cost, and a reason.

    Choices with consequences

    Who believes what

    Michael · Lester · Amanda

    TodayEvery character knows exactly what the script tells them.

    With Gossip EngineMichael checks where a story came from, unless it comes from his son. Lester only trusts what he saw himself. Amanda always takes Jimmy's side.

    Personality decides belief

    Your game

    Web and Godot SDKs · REST for any engine

    Describe your characters, who knows whom, and what your actions mean, as one JSON file. Call recordEvent when something happens and advanceTime when time passes. Read getAttitude for prices, refusals and missions, each with its reason.

    See the SDK

    GTA V and its characters belong to Rockstar Games. Gossip Engine is not affiliated with or endorsed by Rockstar Games. The cards show what the engine could add. They are not features of the game.

    How it works

    See. Tell. Believe. Act. Investigate.

    1. 1

      See

      recordEvent

      Franklin drives off in Jimmy's car. The engine stores the event once. Jimmy and Simeon each get their own memory of it.

    2. 2

      Tell

      advanceTime · overhear

      At night, people who know each other meet and pass on their best story. Jimmy turns "took my car back" into "stole it at gunpoint".

    3. 3

      Believe

      Each listener decides how much to believe. Simeon believes any story about money. Lester trusts only what he saw. Amanda always believes her son.

    4. 4

      Act

      getAttitude · talk

      A strong enough belief changes behavior. Michael comes looking for Franklin, and says why: "Heard from Jimmy · last night."

    5. 5

      Investigate

      traceRumor

      Every version links back to the one it came from. You, a skeptic in the story, or an agent can follow the chain to whoever started it.

    Agents on the graph

    Agents read the memory graph, choose their own tools, and act on what they find.

    Both agents connect to the Gossip Engine MCP server and let Gemini decide which graph tool to call next. Every step shows on screen, and every fact in their answer comes from a tool result.

    In our demo game

    Sheriff Hale

    Ask the sheriff who started a rumor. He ranks the gossips with PageRank, follows the chain of custody one hop at a time, questions the people on it, and checks trust and factions. Then he fines the liar and posts a notice. The notice spreads overnight like any other story.

    If you planted the lie yourself, he catches you. He cannot close a case without the evidence.

    • influence
    • story_holders
    • who_told
    • trace_rumor
    • interview_npc
    • credibility
    • get_factions
    • shortest_path
    • close_case
    Play, then talk to the Sheriff
    In the Studio, on Los Santos

    Balance Copilot

    A designer asks: "Michael comes after Franklin in almost every run. Bring it under 40%." The Copilot runs seeded simulations, reads the graph for the cause, tests fixes on throwaway copies of the save, and shows the numbers side by side.

    In one run: Michael came after Franklin in 90% of 40 runs. Jimmy is the bridge to his father. Weakening that one bond brought it to 0%. A quieter Jimmy only brought it to 67.5%.

    • simulate_odds
    • world_stats
    • influence
    • try_tuning
    Open the Copilot

    Your own agent can use the same tools

    Gossip Engine is an MCP server. Connect Claude, Cursor or your studio's bot, then ask: "Who in Los Santos is most likely to turn on Franklin, and who told them?" The agent picks the tools and answers with the path through the graph.

    claude mcp add --transport http gossip-engine https://YOUR-HOST/mcp

      Our demo game

      Thornbury: the engine inside a real game

      To prove the engine runs in a game you can play, we built Thornbury, a small pixel-art village with eight people. Skip the blacksmith's bill and the village talks about it overnight. Whisper a lie, and Sheriff Hale finds out who started it.

      Replay of a recorded engine run · play it live

      Dusk in Thornbury…

      The Studio

      Try a story before your players do.

      The Studio is for the people who make the game. Story Lab opens on Los Santos. Every step runs on the real engine, on a fresh save.

      1. 1

        Pick what Franklin does

        Repossess Jimmy's car, give it back, or rob the Vangelico jewelry store.

      2. 2

        Play the night

        Watch each handoff on the graph: who told whom, in their own words, and where the story changed.

      3. 3

        See the morning

        See how each person treats Franklin and why. Then run another choice side by side, or ask the Balance Copilot.

      Open Story Lab Worlds: Los Santos (a GTA V example) · Thornbury (our demo game) · or your own JSON

      The SDK

      A few calls. Your town remembers.

      import { GossipEngine } from "@gossip-engine/sdk";
      
      const gossip = new GossipEngine({ saveId: player.saveId });
      await gossip.defineWorld(npcs, relationships, { actions, rules });
      
      // Franklin takes Jimmy's car back for Simeon. Jimmy sees it, Simeon knows.
      await gossip.recordEvent("player", "repossessed_car", "jimmy", ["simeon"]);
      
      // Night. People who know each other meet and talk.
      await gossip.advanceTime(14);
      
      const michael = await gossip.getAttitude("michael");
      // michael.activeRules[0].label → "Comes looking for Franklin"
      // michael.reason.sourceLabel → "Heard from Jimmy · last night"
      const reply = await gossip.talk("michael", "Hey, about the car…");
      • defineWorld()Add the characters, their traits, who knows whom, what each action means, and which beliefs change behavior.
      • recordEvent()Store what happened, plus a memory for the target and for each witness.
      • advanceTime()Run the night: people meet, retell, believe and judge each other. You get back each handoff.
      • talk() · getAttitude()A reply that comes only from what this character remembers, plus the price, the refusal and the reason.
      • plantRumor() · traceRumor()A lie with a hidden source, and the chain back to whoever started it.
      • overhear()Daytime gossip that the player can walk into.
      • forkSave() · simulate()A second timeline, and the odds of each outcome over many seeds.
      • runAgent() · /mcpSheriff Hale and the Balance Copilot, or any agent you connect: the same graph tools over MCP.
      Web · TypeScript Godot 4 Unity · soon Unreal · soon All of them use the same REST and WebSocket API.

      Your world is data

      Personalities, gossip traits, how close two people are, what each action means and when behavior changes: all of it lives in one world file. Los Santos and Thornbury run on the same engine, with different JSON.

      Read the SDK reference Read the world guide
      {
        "npcs": [{ "id": "michael", "gossipTrait": "skeptic",
                    "credulity": 0.5, "family": ["jimmy", "amanda"] }],
        "relationships": [{ "a": "jimmy", "b": "michael", "strength": 0.8, "contact": 0.85 }],
        "actions": { "repossessed_car": { "valence": "negative", "severity": 0.75,
            "dims": { "honesty": -0.7 }, "twist": "stole_car_at_gunpoint" } },
        "rules": [{ "npc": "michael", "dim": "honesty", "op": "<=", "threshold": -0.4,
                   "effect": "hostility", "label": "Comes looking for Franklin" }]
      }

      Under the hood

      One FalkorDB graph for each save

      The engine stores what really happened once, and never changes it. Each character's version is its own node, linked back to where it came from. That link powers the source tags, the Sheriff's chain of custody and the Copilot's numbers.

      …nodes · edges in the recorded Los Santos save
      Fixed seedsthe same story on each run
      16 toolsover MCP, for any agent
      Geminiwrites what characters say, from their own memories