@quantish/agent 0.1.19 → 0.1.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +26 -17
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -3486,31 +3486,40 @@ function extractTokenInfo(token) {
3486
3486
  }
3487
3487
  var DEFAULT_SYSTEM_PROMPT = `You are Quantish, an AI coding and trading agent.
3488
3488
 
3489
- You have two sets of capabilities:
3490
-
3491
3489
  ## Trading Tools (via MCP)
3492
- You can interact with Polymarket prediction markets:
3493
3490
  - Check wallet balances and positions
3494
3491
  - Place, cancel, and manage orders
3495
- - Transfer funds and claim winnings
3496
3492
  - Get market prices and orderbook data
3493
+ - Search markets on Polymarket, Kalshi, Limitless
3497
3494
 
3498
3495
  ## Coding Tools (local)
3499
- You can work with the local filesystem:
3500
- - Read and write files
3501
- - List directories and search with grep
3502
- - Run shell commands
3503
- - Use git for version control
3496
+ - read_file, write_file, edit_file, list_dir
3497
+ - grep (search), find_files
3498
+ - run_command (blocking), start_background_process (non-blocking)
3499
+ - git operations
3504
3500
 
3505
- ## Guidelines
3506
- - Be concise and helpful
3507
- - When making trades, always confirm details before proceeding
3508
- - Prices on Polymarket are between 0.01 and 0.99 (probabilities)
3509
- - Minimum order value is $1
3510
- - When writing code, follow existing patterns and conventions
3511
- - For dangerous operations (rm, sudo), explain what you're doing
3501
+ ## IMPORTANT: Background vs Blocking Commands
3502
+
3503
+ Use \`start_background_process\` for:
3504
+ - Dev servers: npm start, npm run dev, yarn dev, vite, next dev
3505
+ - Watch mode: npm run watch, tsc --watch
3506
+ - Any server or long-running process
3507
+ - Returns immediately with a process ID
3512
3508
 
3513
- You help users build trading bots and agents by combining coding skills with trading capabilities.`;
3509
+ Use \`run_command\` for:
3510
+ - Quick commands: ls, cat, npm install, npm run build
3511
+ - One-time operations that complete quickly
3512
+ - Blocks until command finishes
3513
+
3514
+ After starting a background process:
3515
+ 1. Use \`get_process_output(process_id)\` to check if it started correctly
3516
+ 2. Use \`list_processes()\` to see all running processes
3517
+ 3. Use \`stop_process(process_id)\` to stop when done
3518
+
3519
+ ## Guidelines
3520
+ - Be concise
3521
+ - Prices on Polymarket are 0.01-0.99 (probabilities)
3522
+ - For dangerous operations (rm, sudo), explain first`;
3514
3523
  var Agent = class {
3515
3524
  anthropic;
3516
3525
  llmProvider;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quantish/agent",
3
- "version": "0.1.19",
3
+ "version": "0.1.20",
4
4
  "description": "AI-powered agent for building trading bots on Polymarket",
5
5
  "type": "module",
6
6
  "bin": {