@quantish/agent 0.1.34 → 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 +30 -27
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -35,12 +35,13 @@ var schema = {
35
35
  default: DEFAULT_MCP_URL
36
36
  },
37
37
  model: {
38
- type: "string",
39
- default: "claude-sonnet-4-5-20250929"
38
+ type: "string"
39
+ // No default here - getModel() returns provider-specific default
40
40
  },
41
41
  provider: {
42
42
  type: "string",
43
- default: "anthropic"
43
+ default: "openrouter"
44
+ // OpenRouter is recommended for new users
44
45
  }
45
46
  };
46
47
  var ConfigManager = class {
@@ -3571,35 +3572,37 @@ function extractTokenInfo(token) {
3571
3572
  }
3572
3573
  var DEFAULT_SYSTEM_PROMPT = `You are Quantish, an AI coding and trading agent.
3573
3574
 
3574
- ## Trading Tools (via MCP)
3575
- - Check wallet balances and positions
3576
- - Place, cancel, and manage orders
3577
- - Get market prices and orderbook data
3578
- - 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
3579
3597
 
3580
3598
  ## Coding Tools (local)
3581
3599
  - read_file, write_file, edit_file, list_dir
3582
3600
  - grep (search), find_files
3583
3601
  - run_command (blocking), start_background_process (non-blocking)
3584
- - git operations
3585
-
3586
- ## IMPORTANT: Background vs Blocking Commands
3587
-
3588
- Use \`start_background_process\` for:
3589
- - Dev servers: npm start, npm run dev, yarn dev, vite, next dev
3590
- - Watch mode: npm run watch, tsc --watch
3591
- - Any server or long-running process
3592
- - Returns immediately with a process ID
3593
-
3594
- Use \`run_command\` for:
3595
- - Quick commands: ls, cat, npm install, npm run build
3596
- - One-time operations that complete quickly
3597
- - Blocks until command finishes
3598
3602
 
3599
- After starting a background process:
3600
- 1. Use \`get_process_output(process_id)\` to check if it started correctly
3601
- 2. Use \`list_processes()\` to see all running processes
3602
- 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.
3603
3606
 
3604
3607
  ## Guidelines
3605
3608
  - Be concise
@@ -5424,7 +5427,7 @@ Stopped ${count} background process${count > 1 ? "es" : ""}.`);
5424
5427
  }
5425
5428
 
5426
5429
  // src/index.ts
5427
- var VERSION = "0.1.34";
5430
+ var VERSION = "0.1.36";
5428
5431
  function cleanup() {
5429
5432
  if (processManager.hasRunning()) {
5430
5433
  const count = processManager.runningCount();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quantish/agent",
3
- "version": "0.1.34",
3
+ "version": "0.1.36",
4
4
  "description": "AI-powered agent for trading on Polymarket and Kalshi",
5
5
  "type": "module",
6
6
  "bin": {