◉ Pulse
yj972 avatar
#25 today

yj972/know-before-act

AI #agent-skills #ai-agents #decision-theory #prompt-engineering

A lightweight agent protocol for reducing uncertainty before execution.

Created Jul 26, 2026
Stars
8
Today
+8
Forks
0
Quality
95/100
Momentum
20

README

Fetched from GitHub on Oct 30, 2026, 11:06 PM UTC · README.md

View original on GitHub

Third-party content — Open Source Pulse is not the owner of this repository.

This README belongs to yj972/know-before-act and its contributors. We fetch it directly from the project’s public GitHub repository and display it for reference only. All text, code, images and trademarks remain the property of their respective authors. See the repository for its license terms. Copyright / takedown policy.

Know Before Act

skills.sh

Know Before Act is a lightweight agent protocol that reduces uncertainty before execution by asking high-information questions.

Agents often either act too early or ask too much. This protocol adds one small decision before execution: act when the path is clear; otherwise ask the single question most likely to change it.

Theoretical Background

Know Before Act treats clarification as a conditional POMDP over a conversation:

  • The hidden state is the user's actual goal, constraints, context, and preferences.
  • The agent maintains a belief over that state, conditioned on the conversation so far.
  • It chooses between acting now and asking one question.
  • The answer is an observation that updates the belief; asking also costs user effort and time.

The question policy is inspired by Bayesian Twenty Questions: choose the question expected to remove the most uncertainty, then update the posterior from the answer. But information gain alone is not enough—the information must be likely to change the action.

In decision-theoretic terms:

Value(question) = expected improvement in the final action − cost to the user

Ask only when that value is meaningfully positive. Otherwise, make a reasonable assumption and act.

This framing connects POMDP planning with Bayes-optimal Twenty Questions, while keeping the implementation as a small behavior protocol.

Install

npx skills add yj972/know-before-act

Or copy KNOW_BEFORE_ACT.md into an agent's system prompt or instruction set.

Example

User: Help me choose a database for my app.
Agent: What workload will dominate: relational transactions, flexible documents, or analytics?
User: Relational transactions.
Agent: [Recommends an option using that constraint.]

That is the whole project. It is intentionally a behavior primitive, not a framework.

MIT licensed.

Rendered by GitHub from the repository’s README. Scroll to read the full file.
First trending

Jul 26, 2026

first spotted on the list

Best rank

#25

highest position reached

Appearances

1

times on the trending list

Quality score

95

out of 100

Momentum

20

trend strength indicator

Star velocity

0.08

stars per day since creation

Activity — last 60 days

daily counts, collected every 6 hours
  • Stars
  • Forks
  • Merged PRs
  • Issues
  • Closed issues

Collecting activity data since launch — check back in a few days.

Star history

total stars per snapshot

Not enough snapshots yet — check back soon.

Rank history

position on trending · lower is better

Not enough snapshots yet — check back soon.

3D card for your website

Live HTML card with a glass surface and pointer tilt. Paste the iframe on any website.

<iframe src="https://www.notionpulse.cc/embed/yj972/know-before-act" width="420" height="240" style="border:0;max-width:100%;background:transparent" loading="lazy" title="yj972/know-before-act — trending on Open Source Pulse"></iframe>

Stars badge

Show current stars in your README or profile. Auto-updates every 6 hours.

yj972/know-before-act stars badge
Markdown
[![yj972/know-before-act](https://www.notionpulse.cc/api/badge/yj972/know-before-act.svg)](https://www.notionpulse.cc/repo/yj972/know-before-act)
HTML
<a href="https://www.notionpulse.cc/repo/yj972/know-before-act"><img src="https://www.notionpulse.cc/api/badge/yj972/know-before-act.svg" alt="yj972/know-before-act stars badge" /></a>

Repository of the Day

#25 Repository of the Day

Repository of the Week

#25 Repository of the Week

Repository of the Month

#25 Repository of the Month