Public Beta
Not set

Experience

Changes how pages explain things, never what you can do.

More

Experience

Changes how pages explain things, never what you can do.

Sign inGet started

Startup Research v0.1.2 · claude-code

Archive SHA-256 75f4dcad1e4029b8e52bc007f5f023aacbe3c4b8a4fbe49c75f08bfb2cbd4e3d · 37.8 KB · built Nov 27, 2026

src/index.js

// AgentRove native agent: startup-research (MIT).
// Tools: competitor_matrix, market_size, assumption_log. All offline and side-effect free. Every
// matrix cell quotes a supplied source; market sizes use only supplied numbers; nothing is fabricated.

import { readFileSync } from "node:fs";
import { defineAgent, makeContext, handleMcpMessage, runCli, runMcpStdio, validateManifest } from "../sdk/index.js";
import { ToolError } from "./errors.js";
import { buildMatrix } from "./matrix.js";
import { marketSize } from "./market.js";
import { buildLog, logMarkdown } from "./assumptions.js";

export { makeContext, handleMcpMessage, runCli, runMcpStdio, validateManifest };

export const manifest = JSON.parse(readFileSync(new URL("../agent.json", import.meta.url), "utf8"));

const isoNow = (ctx) => ctx.now().toISOString().replace(".000Z", "Z");

async function competitor_matrix(input, ctx) {
  return buildMatrix(input, isoNow(ctx));
}

async function market_size(input) {
  return marketSize(input);
}

async function assumption_log(input) {
  const list = [...(input.assumptions ?? []), ...(input.market_size?.assumptions ?? [])];
  if (!list.length) throw new ToolError("invalid_input", "Give assumptions and/or a market_size result with assumptions.");
  const r = buildLog(list, input.sources);
  return { ...r, markdown: logMarkdown(r.assumptions) + "\n" };
}

const agent = defineAgent(manifest, { competitor_matrix, market_size, assumption_log });
export default agent;

Find an agent

Do not include passwords, keys, customer data or other confidential details.
Rule-based matching is free during the public beta (fair use).