lin-answer-now
Agent 与会话 活跃维护

lin-answer-now

lin1213812138/lin-answer-now

检测到智能体已有答案时立即催促交付;工具调用越积越多时提醒强度逐级升高,防止流程卡住。安装即用,无需配置,显著加快响应速度。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
None
开源协议
203 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:lin1213812138/lin-answer-now
git clone https://github.com/lin1213812138/lin-answer-now.git
git clone git@github.com:lin1213812138/lin-answer-now.git
README.md main

answer-now

English | 中文

A DeepSeek Harness plugin that pushes the agent to deliver its answer as soon as it has one, instead of burning your time on extra queries.

What it does

  1. Injects instructions into the system prompt — stop querying the moment you can answer, never repeat a query, prefer one decisive query over several narrow ones, no filler tool calls.
  2. Counts tool calls per agent per turn — and when the count crosses a threshold, injects an escalating reminder into the agent's inbox ("answer now instead of querying further" → "stop calling tools and produce your final answer").
  3. Resets on new user messages, so each of your turns starts fresh.

It is advisory-only: it never blocks or rejects a tool call, so it can't break a legitimate workflow.

Install

From npm (prebuilt, no build step):

dsh plugin --profile desktop add lin-answer-now

Or from GitHub source:

dsh plugin --profile desktop add https://github.com/lin1213812138/lin-answer-now

Then restart dsh web (or reload the page) and you're done.

Can't reach npm? Install straight from the GitHub source — this needs no npm account or login:

dsh plugin --profile desktop add https://github.com/lin1213812138/lin-answer-now

Installing on another machine (中文说明见 README.zh.md)

Each machine has its own DSH profile, so the plugin isn't shared automatically. On the other computer, just run one of the install commands above (use dsh profile list to find the profile name if it isn't desktop), then restart dsh web (or reload the page).

Local link: installs: if you installed from a local folder with a link: entry (development copy), the plugin is bound to that folder on disk — keep the folder around or the link breaks. Published npm/GitHub installs are self-contained and don't have this dependency.

Configuration

All values are optional; the defaults are sensible.

- id: answer-now
  name: lin-answer-now
  config:
    thresholds: [4, 7, 10]        # remind at these tool-call counts, escalating each time
    include: []                   # only watch these tools (empty = all)
    exclude: ["answer_now"]       # never count these tools
    quietTools: ["todo_write", "todo_read", "todo_write_many", "schedule_list"]
    cooldownSteps: 1              # tool calls to skip between reminders
    reminderSummary: "answer now" # summary text on the reminder message
    resetOnUserMessage: true      # reset the counter when you send a new message

Requirements

DSH ≥ 0.2.0.

License

MIT