@quantish/agent 0.1.35 → 0.1.36

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 -24
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -3572,35 +3572,37 @@ function extractTokenInfo(token) {
3572
3572
  }
3573
3573
  var DEFAULT_SYSTEM_PROMPT = `You are Quantish, an AI coding and trading agent.
3574
3574
 
3575
- ## Trading Tools (via MCP)
3576
- - Check wallet balances and positions
3577
- - Place, cancel, and manage orders
3578
- - Get market prices and orderbook data
3579
- - Search markets on Polymarket, Kalshi, Limitless
3575
+ ## MCP Architecture (3 servers)
3576
+
3577
+ **Discovery MCP** - ALWAYS use for searching/finding markets:
3578
+ - search_markets(query) - Search across Polymarket, Kalshi, Limitless
3579
+ - get_trending_markets() - Find hot markets
3580
+ - get_market_details(platform, marketId) - Get details for any market
3581
+ - find_arbitrage() - Find arbitrage opportunities
3582
+
3583
+ **Polymarket MCP** - Use for Polymarket trading:
3584
+ - place_order, cancel_order, get_orders
3585
+ - get_balances, get_positions
3586
+ - get_wallet_status, setup_wallet
3587
+
3588
+ **Kalshi MCP** - Use for Kalshi trading via DFlow on Solana:
3589
+ - kalshi_buy_yes, kalshi_buy_no, kalshi_sell_position
3590
+ - kalshi_get_balances, kalshi_get_positions
3591
+ - kalshi_search_markets (backup if Discovery unavailable)
3592
+
3593
+ ## Workflow for trading:
3594
+ 1. Use Discovery MCP to find markets (search_markets)
3595
+ 2. From results, get the platform (polymarket/kalshi) and market ID
3596
+ 3. Use the appropriate trading MCP to execute trades
3580
3597
 
3581
3598
  ## Coding Tools (local)
3582
3599
  - read_file, write_file, edit_file, list_dir
3583
3600
  - grep (search), find_files
3584
3601
  - run_command (blocking), start_background_process (non-blocking)
3585
- - git operations
3586
-
3587
- ## IMPORTANT: Background vs Blocking Commands
3588
-
3589
- Use \`start_background_process\` for:
3590
- - Dev servers: npm start, npm run dev, yarn dev, vite, next dev
3591
- - Watch mode: npm run watch, tsc --watch
3592
- - Any server or long-running process
3593
- - Returns immediately with a process ID
3594
-
3595
- Use \`run_command\` for:
3596
- - Quick commands: ls, cat, npm install, npm run build
3597
- - One-time operations that complete quickly
3598
- - Blocks until command finishes
3599
3602
 
3600
- After starting a background process:
3601
- 1. Use \`get_process_output(process_id)\` to check if it started correctly
3602
- 2. Use \`list_processes()\` to see all running processes
3603
- 3. Use \`stop_process(process_id)\` to stop when done
3603
+ ## Background vs Blocking Commands
3604
+ Use \`start_background_process\` for dev servers, watch mode, long-running processes.
3605
+ Use \`run_command\` for quick commands that complete immediately.
3604
3606
 
3605
3607
  ## Guidelines
3606
3608
  - Be concise
@@ -5425,7 +5427,7 @@ Stopped ${count} background process${count > 1 ? "es" : ""}.`);
5425
5427
  }
5426
5428
 
5427
5429
  // src/index.ts
5428
- var VERSION = "0.1.35";
5430
+ var VERSION = "0.1.36";
5429
5431
  function cleanup() {
5430
5432
  if (processManager.hasRunning()) {
5431
5433
  const count = processManager.runningCount();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quantish/agent",
3
- "version": "0.1.35",
3
+ "version": "0.1.36",
4
4
  "description": "AI-powered agent for trading on Polymarket and Kalshi",
5
5
  "type": "module",
6
6
  "bin": {