gitwtfhub

wtf is proactive-nudge?

shitsuten/proactive-nudge — explained in plain English

Analysis updated 2026-05-18

29JavaScriptAudience · developerComplexity · 3/5Setup · moderate

TL;DR

A background worker that sends timed messages into your existing chat app after a user goes quiet, nudging the AI to reply naturally with full context.

Mindmap

mindmap
  root((repo))
    What it does
      Sends timed chat nudges
      Injects nudge messages
      Keeps full chat context
    How it works
      Checks silence interval
      Calls normal chat endpoint
      Model replies naturally
    Use cases
      Reminders for idle users
      Scheduled AI check-ins
      Tool-triggering prompts
    Tech stack
      JavaScript
      Background worker
    Audience
      Chat app builders
      AI companion makers
    Setup
      Connect behind chat app
      Configure interval and text

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Why would anyone build with this?

REASON 1

Send a check-in message when a user goes quiet in your chat app.

REASON 2

Schedule a timed reminder that nudges the AI to use tools before replying.

REASON 3

Keep conversation history intact while injecting scheduled prompts into chat.

REASON 4

Push a short summary of the AI reply to the user's phone after a nudge.

What's in the stack?

JavaScript

How it stacks up

shitsuten/proactive-nudgeable-rip/cc-visionrouteraisatan/poe2dire
Stars292929
LanguageJavaScriptJavaScriptJavaScript
Setup difficultymoderateeasyeasy
Complexity3/52/51/5
Audiencedeveloperdevelopergeneral

Figures from each repo's GitHub metadata at analysis time.

How do you spin it up?

Difficulty · moderate Time to first run · 30min

Requires connecting behind an existing chat app or AI gateway and configuring silence intervals and nudge messages.

Wtf does this do

This is a small background worker that sends proactive messages in chat applications. You connect it behind your existing chat app, AI companion, or agent gateway. The idea is simple: when a user has been silent for a configured amount of time, the worker injects a custom message into the normal chat flow, and the model replies as it normally would. The project exists because many proactive messaging systems just push a fixed message on a timer, like an alarm. That feels artificial: the user might have just finished talking, the message has no context, and it does not read like real conversation. This worker takes a different approach. It only creates a conversation opportunity by injecting a special user message marked with [nudge]. The actual reply still goes through the normal chat pipeline, so the model sees full context, memory, and tools, and the conversation history stays complete. Users configure everything themselves: the silence interval (fixed or random), the injected message text, and which conversation to target. The worker checks when the last user message was sent and waits only the remaining time if the user spoke recently. When the interval passes, it calls the normal chat endpoint with the nudge message. The system prompt tells the model that [nudge] messages are scheduled prompts, not freshly typed user messages, and the model should reply naturally without mentioning automation. Optionally, the worker can push a short reply summary to the user's phone. A notable design choice is that the nudge message is just a user-defined instruction. It can be a simple reminder, or it can tell the model to check specific tools or data before responding. The worker itself stays thin: it only triggers and injects. All business logic lives in the existing chat gateway and tool system. The README discusses the tradeoff between injecting data directly into the worker versus letting the model fetch it, noting that direct injection is cheaper but makes the worker dependent on business logic, while letting the model fetch is more flexible at the cost of an extra API call.

Yoink these prompts

Prompt 1
Set up a proactive nudge worker that sends a reminder message into my chat app after a user has been silent for 30 minutes, using a fixed silence interval.
Prompt 2
Configure a random silence interval between 1 and 4 hours for the proactive-nudge worker, with a nudge message that asks the AI to check the user's calendar before replying.
Prompt 3
Connect the proactive-nudge worker behind my existing AI companion gateway so that when a user goes quiet, the worker injects a [nudge] message and the model replies naturally without mentioning automation.
Prompt 4
Add phone push notifications to the proactive-nudge worker so that after the model replies to a nudge, a short summary of the reply is sent to the user's phone.

Frequently asked questions

wtf is proactive-nudge?

A background worker that sends timed messages into your existing chat app after a user goes quiet, nudging the AI to reply naturally with full context.

What language is proactive-nudge written in?

Mainly JavaScript. The stack also includes JavaScript.

How hard is proactive-nudge to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is proactive-nudge for?

Mainly developer.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.