Skip to content
NaituwPublic

About

Human-in-the-loop tool for answering questions from AI agents.

Resources

Stars

165 stars

Watchers

0 watching

Forks

Latest commit

 

History

1,493 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AskHuman

English | 简体中文

AskHuman

A cross-platform human-in-the-loop tool. When an AI agent is about to end a conversation or needs confirmation, it runs the AskHuman CLI to pop up a window so you can ask follow-ups, pick options, add text, or attach images — and the result is returned to the agent.

  • A single executable AskHuman that lets agents ask questions through the CLI
  • Built on Tauri 2 (Rust + Vue 3), supports macOS / Linux / Windows
  • Multiple channels: local popup + Telegram + Slack + DingTalk + Feishu, independently toggleable and racing in parallel when several are on

How it works

AskHuman bridges AI agents and humans: a Bash call fans out to the popup and IMs

Screenshots

Your agent's questions arrive at the local GUI popup and Telegram, Slack, DingTalk, and Feishu all at once, along with the key context, attachments, and preset options — so whether or not you're at your desk, you get notified and can reply anytime.

Reply to your agent from the local popup, Telegram, Slack, DingTalk, or Feishu

The tool automatically records the recent history of agent questions and human answers, so you can refer back to it anytime while answering new questions. (If you don't need history, you can turn it off in the settings.)

Browse message and reply history per project

iOS app

Answer your agents' questions from your iPhone when you're away from your desk. Questions arrive in the app's inbox with push notifications, and messages are end-to-end encrypted through an MQTT broker you provide. Join the beta on the AskHuman Mobile page (TestFlight, iOS 17 or later), then follow the setup guide; in Settings → Channels, the iOS App card walks you through it.

Install

# npm (recommended): downloads only the one binary matching your platform
npm i -g askhuman

You can also download a platform archive from GitHub Releases, extract it, and put AskHuman on your PATH. To build from source, see the development guide.

Running the GUI popup on Linux needs system WebKitGTK (e.g. libwebkit2gtk-4.1); if it's missing and a session-based channel is configured, AskHuman uses that channel automatically.

Usage

1. Run the setup wizard

Right after installing, run this once — it is the first step:

AskHuman setup

A short guided flow (about 2 minutes). It connects your Agents (Cursor, Claude Code, Codex, Grok, Pi, Antigravity), optionally sets up remote answering through Telegram / Slack / DingTalk / Feishu, and — only if you choose to — keeps AskHuman in the menu bar or running in the background. Before it changes any of your files it shows you which ones. Without a graphical session (SSH, a server) or with --text, the same flow runs in your terminal.

You can run it again any time to add an Agent or a channel: what is already set up stays as it is. It is also in Settings → General → Setup wizard. Restart any Agent session that was already open so it loads the new instructions.

2. The AskHuman command

AskHuman is a command-line tool that AI agents use to ask you questions and get the result back. The most common usages:

# The most basic ask: the first argument is the question, -o adds an option
AskHuman "Continue?" -o "Continue" -o "Stop"

# With an image and multiple questions: the first argument is a shared description,
# -f attaches a file/image, each -q is a question, -o! marks the recommended answer
AskHuman "Take a look at this change?" -f ./diagram.png \
  -q "Continue?" -o! "Continue" -o "Stop" \
  -q "Run the tests?" -o "Run" -o "Skip"

# Strict choice for scripts: only preset options, single choice, machine-readable JSON
AskHuman -q "Deploy where?" -o "staging" -o! "production" --single --select-only --output json

# Long Markdown via stdin: quoted heredoc (write the heredoc last on the command line)
AskHuman -q "Continue?" -o "Continue" -o "Stop" --stdin <<'EOF'
# Review notes with `code`, $HOME, and "quotes"
EOF

# Other common ones
AskHuman setup        # the setup wizard (add --text for the terminal version)
AskHuman --settings   # open the settings UI
AskHuman --history    # open reply history (add --all for every project)

For the full CLI usage, see AskHuman --help; for the asking usage tuned for AI agents, see AskHuman --agent-help; for scripting/automation (--select-only / --single / --output json), see AskHuman --scripting-help.

3. Integrate with your Agent

AskHuman setup already does this for you; this section is for adjusting it later or doing it by hand.

To make your agent call AskHuman on its own when finishing or needing confirmation, add the relevant prompt to the agent's global instructions. Run AskHuman --settings, open the Agents panel, and choose:

  • Manual integration — copy the reference prompt and add it to your agent's global instructions yourself (e.g. Cursor Rules / AGENTS.md / CLAUDE.md).
  • Automatic integration — select the integration mode for each supported agent. CLI mode installs that agent's instruction artifact and, where available, a timeout Hook that keeps a detected AskHuman call from being canceled while you reply. MCP mode installs the appropriate instruction artifact and an MCP server configuration instead.

Antigravity supports None, CLI, and MCP on Unix, with MCP recommended and CLI selectable. Its integration installs one Antigravity plugin (the interaction rules, the MCP server and lifecycle hooks) that the app and agy share, and sessions show up in the Agent console, with Stop confirmation, interjection, Watch, and tasks started from your phone, IM or the New Task window (through the app with AskHuman-managed sidecars, or agy in a terminal); whether a particular Antigravity client discovers the rules and can run the selected transport depends on the client. Windows Antigravity integration changes are currently rejected. See Antigravity setup for the configuration paths, session limits, and unsupported features.

4. Set up communication channels

The setup wizard walks you through one channel at a time; this section is for adding or changing one later.

The local popup works out of the box. You can also enable DingTalk, Feishu, Telegram, or Slack — so you get questions and can reply whether or not you're at your desk (multiple channels can run in parallel and race for the answer). Configure them in the Channels tab; for each channel's onboarding steps, see:

5. General settings

For general preferences such as theme, window behavior, speech input, and reply history, see General Settings.

Advanced

Program integration

Add askhuman to your project (npm i askhuman); npm install pulls the current platform's binary, and at runtime you resolve the path and call it:

import { getBinaryPath, isAvailable } from "askhuman";
import { spawnSync } from "node:child_process";

if (isAvailable()) {
  const r = spawnSync(getBinaryPath(), ["Continue?", "-o", "Continue", "-o", "Stop"], { encoding: "utf8" });
  if (r.status === 3) { /* no available channel: degrade without blocking */ }
  else if (r.status === 0) { /* parse the result blocks from r.stdout */ }
}

Exit codes: success / cancel is 0; no available channel is 3; other errors are 1. Custom source name: set ASKHUMAN_ENV_SOURCE_NAME=Agent, and the popup title and channel message headers become Question from Agent.

Environment variables

For the available environment variables, see Environment Variables.

Development

For local build, test, and release workflow, see the development guide.

License

MIT © Naituw

About

Human-in-the-loop tool for answering questions from AI agents.

Resources

Stars

165 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages