@quantish/agent 0.1.38 → 0.1.39
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.
- package/dist/index.js +16 -17
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3635,40 +3635,39 @@ var DEFAULT_SYSTEM_PROMPT = `You are Quantish, an AI coding and trading agent.
|
|
|
3635
3635
|
|
|
3636
3636
|
## MCP Architecture (3 servers)
|
|
3637
3637
|
|
|
3638
|
-
**Discovery MCP** -
|
|
3638
|
+
**Discovery MCP** - For searching/finding markets:
|
|
3639
3639
|
- search_markets(query) - Search across Polymarket, Kalshi, Limitless
|
|
3640
|
-
- get_trending_markets() - Find hot markets
|
|
3641
3640
|
- get_market_details(platform, marketId) - Get details for any market
|
|
3642
|
-
- find_arbitrage() - Find arbitrage opportunities
|
|
3643
3641
|
|
|
3644
|
-
**Polymarket MCP** -
|
|
3642
|
+
**Polymarket MCP** - For Polymarket trading:
|
|
3645
3643
|
- place_order, cancel_order, get_orders
|
|
3646
|
-
- get_balances, get_positions
|
|
3644
|
+
- get_balances, get_positions, get_price, get_orderbook
|
|
3647
3645
|
- get_wallet_status, setup_wallet
|
|
3648
3646
|
|
|
3649
|
-
**Kalshi MCP** -
|
|
3647
|
+
**Kalshi MCP** - For Kalshi trading via DFlow on Solana:
|
|
3650
3648
|
- kalshi_buy_yes, kalshi_buy_no, kalshi_sell_position
|
|
3651
3649
|
- kalshi_get_balances, kalshi_get_positions
|
|
3652
|
-
|
|
3650
|
+
|
|
3651
|
+
## CRITICAL: Efficient Searching
|
|
3652
|
+
- Make ONE search call first. Present results to user.
|
|
3653
|
+
- Do NOT make multiple parallel searches for the same request.
|
|
3654
|
+
- Only search again if user asks for different results or first search returned nothing.
|
|
3655
|
+
- get_price and get_orderbook accept conditionId (0x...) directly - no need to look up tokenIds.
|
|
3653
3656
|
|
|
3654
3657
|
## Workflow for trading:
|
|
3655
|
-
1. Use Discovery
|
|
3656
|
-
2.
|
|
3657
|
-
3.
|
|
3658
|
+
1. Use Discovery search_markets to find markets (ONE call)
|
|
3659
|
+
2. Present results to user
|
|
3660
|
+
3. If user wants to trade, use appropriate trading MCP
|
|
3658
3661
|
|
|
3659
3662
|
## Coding Tools (local)
|
|
3660
3663
|
- read_file, write_file, edit_file, list_dir
|
|
3661
3664
|
- grep (search), find_files
|
|
3662
3665
|
- run_command (blocking), start_background_process (non-blocking)
|
|
3663
3666
|
|
|
3664
|
-
## Background vs Blocking Commands
|
|
3665
|
-
Use \`start_background_process\` for dev servers, watch mode, long-running processes.
|
|
3666
|
-
Use \`run_command\` for quick commands that complete immediately.
|
|
3667
|
-
|
|
3668
3667
|
## Guidelines
|
|
3669
|
-
- Be concise
|
|
3668
|
+
- Be concise. One search is usually enough.
|
|
3670
3669
|
- Prices on Polymarket are 0.01-0.99 (probabilities)
|
|
3671
|
-
- For dangerous operations
|
|
3670
|
+
- For dangerous operations, explain first`;
|
|
3672
3671
|
var Agent = class {
|
|
3673
3672
|
anthropic;
|
|
3674
3673
|
llmProvider;
|
|
@@ -5488,7 +5487,7 @@ Stopped ${count} background process${count > 1 ? "es" : ""}.`);
|
|
|
5488
5487
|
}
|
|
5489
5488
|
|
|
5490
5489
|
// src/index.ts
|
|
5491
|
-
var VERSION = "0.1.
|
|
5490
|
+
var VERSION = "0.1.39";
|
|
5492
5491
|
function cleanup() {
|
|
5493
5492
|
if (processManager.hasRunning()) {
|
|
5494
5493
|
const count = processManager.runningCount();
|