Himanshu Gupta

Hi, I'm Himanshu Gupta.

Curious about how things work, why people struggle, and what we can build to help. Exploring learning, AI, and human performance.

Want to know more?

Products

Reason

(Better wording couldn’t recover context.)

Better prompts with the context of your conversation.

Reason helps a short instruction carry relevant context from an ongoing project.

Product Link

Earlier web demo

The website shows the original prompt-refinement tool. The current direction is a Mac application that helps refine an instruction using relevant context from a selected conversation.

The Observation

When working with AI on ongoing projects, I kept reconstructing decisions we had already made. A clear request could still get an unhelpful answer because a constraint or rejected approach from several days earlier was missing.

The Underlying Problem

My first version of Reason focused on asking a better question. It clarified intent, asked follow-up questions, and turned a vague idea into a more specific instruction.

That helped with ambiguity, but an instruction for an ongoing project depends on what came before it. A better sentence cannot recover a missing decision. Adding every old conversation can introduce irrelevant or contradictory context instead.

What is the smallest amount of relevant context that preserves what I mean?

That became the design question: not just how to improve the wording, but how to carry the right history forward.

The Decision

The user's current request stays at the centre of the task. History should clarify it, not pull the work back toward an older objective.

Context must also belong to the right conversation. Two chats about the same product can contain different assumptions. Similarity alone is not enough to make one safe to substitute for the other.

I treat those as separate checks: is this the right conversation, and does this part of its history help with the current request?

The Result

The current Mac pilot lets the user choose a Codex conversation, write a draft, and review an improved prompt informed by relevant history from that conversation.

The user can edit and copy the result before using it. That review step is deliberate: the person needs to judge whether the added context preserves their intent, rather than accept an invisible rewrite.

Conversation history is stored and retrieved locally. Generating the revised prompt sends the draft and selected context to the configured model.

What Remains Open

Selected project-file context is the next direction. Broader application support remains under validation.

The current implementation is a focused Mac pilot. Comparing its prompts with the originals and simpler alternatives is still needed to establish whether it improves downstream answers.

The Mental Model

A useful prompt connects intent with relevant context.

The work is deciding what belongs, what has changed, and what needs the user's review.

Where It Started

These screenshots show the earlier browser tool: clarifying intent before the work expanded toward conversation context.

Earlier Reason web interface refining a draft instruction
Earlier web demo: prompt refinement.
Earlier Reason Inquiry mode asking clarifying questions
Earlier web demo: clarifying intent.

Related Work