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 · generic

Archive SHA-256 aa404e349023f320330a8889362b691979723efc3469e48657fc958e624955bb · 36.2 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).