needsreply

package
v0.217.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2026 License: MIT Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package needsreply is the one definition of the 「needs a reply」 marker: the line an agent writes when it cannot continue without a person, the text that teaches the agent the line, and the parse of a finished turn's text. A terminal session's hook relay and a managed ACP session both read it, so the two cannot disagree on what counts.

Index

Constants

View Source
const Marker = "[needs-reply]"

Marker is the line an agent writes (alone, as the last line) when it cannot continue without a person's answer. Only such turns reach the "waiting for me" list; a plain report turn does not.

Variables

View Source
var Reminder = msgprefix.Format(msgprefix.Hint, "", "If you cannot continue without the person's answer, write "+
	Marker+" alone on the last line of your reply. Do not write it when you are only reporting that work is done.")

Reminder is the line SessionStart adds to additionalContext so the agent knows the marker. Generic wording: it names no project or tool.

Functions

func Split

func Split(msg string) (body string, needs bool)

Split strips the marker line from msg. The marker counts only as the last non-empty line, compared exactly (case-sensitive) after trimming spaces; a copy in the middle of the text is ordinary prose. body is msg without that line (and the trailing blank lines before it).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL