Graceful handling of vague/incomplete trade requests
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 75/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- typescript
Research direction
Start in apps/agentic-server/src/routes/chat.ts and read buildSystemPrompt() alongside the existing clarification rules. Add the requested clarification-rules section without changing tool code, then verify the listed vague, incomplete, batched, clear-request, and existing-rule acceptance cases.
Written by the indexing model from the issue text.
Description
Problem
Vague requests like "sell on every week" cause the agent to either fail with tool errors or hallucinate parameter values. The system prompt has a few narrow clarification rules but no general framework for handling broadly incomplete requests.
tk ticket: sa-xeyj
Root Cause
The system prompt focuses on routing clear intents to tools, not detecting/resolving incomplete intents. No instruction like "if you cannot determine [sell asset, buy asset, amount], ask before calling any tool."
Fix (prompt-only, no tool code changes)
Add a <clarification-rules> section to the system prompt that:
- Defines minimum required params per intent (swaps: sell/buy/amount; TWAP: sell/buy/amount/duration; etc.)
- Instructs agent to batch all missing params into one clarifying question
- Handles common vague patterns with intelligent defaults/suggestions
- Never fabricates parameter values
Key Files
apps/agentic-server/src/routes/chat.ts—buildSystemPrompt()
Acceptance Criteria
- Agent asks clarifying questions for "sell on every week"
- Agent asks for missing amount on "buy some ETH"
- Agent batches all missing params into one question
- Clear requests like "swap 1 ETH to USDC" still execute immediately
- Existing specific clarification rules still work
- Dominant language
- TypeScript
- Stars
- 3
- Forks
- 2
- Avg merge
- 13m
- Merged PRs (30d)
- 3
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from shapeshift/agentic-chat
-
agent-ready
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
shapeshift/agentic-chat#243 ·
-
agent-ready Feature
Difficulty 5/5 Over a week Newbie friendliness 25/100
shapeshift/agentic-chat#245 ·
-
agent-ready
Difficulty 4/5 3-5 days Newbie friendliness 48/100
shapeshift/agentic-chat#248 ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
shapeshift/agentic-chat#241 ·
-
Feature
Difficulty 4/5 3-5 days Newbie friendliness 48/100
shapeshift/agentic-chat#227 ·
All issues in shapeshift/agentic-chat
Similar issues
-
calcite-components needs triage refactor
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Esri/calcite-design-system#15203 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 91/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 95/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100