whatisgithub

What is chatgpt-task-hook?

wuyunjiang/chatgpt-task-hook — explained in plain English

Analysis updated 2026-07-25

1TypeScriptAudience · developerComplexity · 3/5Setup · moderate

In one sentence

A local macOS tool that lets you trigger ChatGPT or Codex tasks via HTTP webhooks instead of time-based schedules, with dynamic data placeholders.

Mindmap

mindmap
  root((repo))
    What it does
      HTTP task triggering
      Web UI for tasks
      Dynamic prompt templates
    How it works
      Runs as background service
      Reads local desktop projects
      Delivers prompts to app
    Tech stack
      TypeScript
      Node
      macOS LaunchAgent
    Use cases
      Event-based task triggers
      Automated code workflows
      API-driven AI tasks
    Audience
      Mac power users
      Developers

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

What do people build with it?

USE CASE 1

Trigger a ChatGPT or Codex task automatically from another app using a webhook.

USE CASE 2

Pass dynamic data into a prompt using placeholder fields to get contextual results.

USE CASE 3

Run a background service on macOS that listens for task triggers on login.

USE CASE 4

Test task creation and delivery locally without using real AI quota.

What is it built with?

TypeScriptNode.jsnpmmacOS LaunchAgent

How does it compare?

wuyunjiang/chatgpt-task-hook0xkinno/neuralvault0xmayurrr/ai-contractauditor
Stars111
LanguageTypeScriptTypeScriptTypeScript
Setup difficultymoderatehardeasy
Complexity3/54/52/5
Audiencedeveloperdeveloperdeveloper

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

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires macOS, the ChatGPT or Codex desktop app installed locally, and running npm commands to start the service.

The explanation does not mention a license for this repository.

So what is it?

This is a local macOS tool that lets you trigger ChatGPT or Codex tasks through an HTTP API instead of scheduling them at fixed times. The author built it for personal use because the normal task scheduling in ChatGPT only supports time-based triggers, not event-based ones. The project provides a web interface styled to match ChatGPT's existing scheduled tasks panel, and it runs alongside the ChatGPT desktop app. Each task stores a prompt that gets sent to Codex or ChatGPT, with configurable options for the model, reasoning effort, project path, and execution target. You can create new tasks or continue existing ones. The service reads locally saved projects from the ChatGPT or Codex desktop client and uses them as working directories. When a task runs, the service tries to open the target task in the Codex desktop app and delivers the prompt through the same channel the desktop app uses for manual input. Triggering a task is done by sending an HTTP POST request to a local endpoint. If a task has a secret key configured, you include it in the request for authentication. Task prompts support placeholder fields using double curly braces, so you can pass dynamic data in your trigger request and the service fills it in. Nested fields work with dot syntax, and any unused fields in your request get appended to the prompt as extra context. If a placeholder has no matching parameter, the request fails with a 400 error. The service can run manually with standard npm commands, binding to a local port. For permanent use, it registers as a macOS LaunchAgent that starts on login, restarts on crash, and listens on a fixed local port. Logs and task data are stored in a local data directory. The project includes a smoke test that uses fake Codex components to verify task creation, continuation, and prompt delivery without consuming actual model quota.

Copy-paste prompts

Prompt 1
Help me write a curl command to trigger a task in ChatGPT-Task-Hook that includes a secret key and a dynamic field for my prompt.
Prompt 2
Show me how to structure an HTTP POST body with nested fields using dot syntax for ChatGPT-Task-Hook so the service fills in my prompt placeholders.
Prompt 3
Explain how to install ChatGPT-Task-Hook as a permanent macOS LaunchAgent so it starts on login and restarts on crash.
Prompt 4
Help me create a task in ChatGPT-Task-Hook that continues an existing conversation and passes a file path as extra context in the trigger request.

Frequently asked questions

What is chatgpt-task-hook?

A local macOS tool that lets you trigger ChatGPT or Codex tasks via HTTP webhooks instead of time-based schedules, with dynamic data placeholders.

What language is chatgpt-task-hook written in?

Mainly TypeScript. The stack also includes TypeScript, Node.js, npm.

What license does chatgpt-task-hook use?

The explanation does not mention a license for this repository.

How hard is chatgpt-task-hook to set up?

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

Who is chatgpt-task-hook for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.