The one guide for contributors and coding agents. It covers the full path from zero to an open pull request: fork the repository, set up services with the right environment, accelerate your coding agent with tools, and ship.
Read VISION.md first to understand what the product is for and why it is built the way it is.
The ready-made agent prompt referenced below is shown in the README. Copy it from there into Claude Code, Codex, Cursor, Antigravity, or any coding agent.
For a complete variable reference, see configuration.md. This page explains how to get started; that page documents every variable in detail.
- Node.js 22+ and pnpm 11.x. The repository pins pnpm in
package.json, socorepack enable pnpmkeeps you aligned. Node.js 25 and later no longer bundle Corepack, so if that command fails, runnpm install -g corepackfirst. - A GitHub account.
- Accounts for the services in the area you work on. The code is free; the services are not bundled.
You have no push access to VecterAI/reacher-x, so the flow starts on GitHub:
- Fork
VecterAI/reacher-xon GitHub. - Clone your fork and add the main repository as
upstreamso you can stay in sync:
git clone https://github.com/YOUR-USERNAME/reacher-x.git
cd reacher-x
git remote add upstream https://github.com/VecterAI/reacher-x.git
git fetch upstream- Create a branch for one focused change:
git switch -c fix/short-descriptionNever commit on main. See CONTRIBUTING.md for the full branch, sync, and PR workflow.
corepack enable pnpm # on Node.js 25+, run npm install -g corepack first
pnpm install
cp .env.example .env.local
npx convex dev --oncenpx convex dev --once selects a development deployment and validates the backend. It writes CONVEX_DEPLOYMENT and NEXT_PUBLIC_CONVEX_URL to .env.local. Missing provider variables are expected at this point; set them and run the command again.
Then keep two terminals running:
# Terminal 1: Convex backend watcher
npx convex dev# Terminal 2: Next.js frontend
pnpm devOpen http://localhost:3000.
Working on the marketing pages, blog posts, or the interactive demos? Those need the demo app, a separate Next.js app with no Convex or provider credentials. Copy its environment file and run it in a third terminal:
# Terminal 3: demo app
cp demos/app/.env.example demos/app/.env.local
pnpm dev:demoThe demo runs on http://localhost:3001, and the main site and demo must use different origins. The demo needs no provider keys. See configuration.md for the origin variables and production demo hosting.
Most services in this stack separate development from production. Match them consciously:
| Service | Development | Production |
|---|---|---|
| Convex | npx convex dev targets your dev deployment. npx convex env set changes dev values. |
npx convex env set --prod, or deploy with npx convex deploy. Variables are independent per deployment. |
| WorkOS | Sandbox environment in the dashboard. localhost redirect URIs work there. |
Production environment with its own keys and allow-listed redirect URI. |
| Polar | POLAR_SERVER=sandbox (the default). Products must exist in the matching sandbox organization. |
Set POLAR_SERVER=production and use production products and webhooks. |
| Vercel | Preview variables are separate from Production. Set both explicitly. | See the two-project setup in configuration.md. |
A value set for one environment does not leak into another. The Convex CLI prints which deployment it targets; read it before running commands.
The frontend reads .env.local. Convex functions do not: backend values are set per deployment with npx convex env set. Never commit .env.local and never bulk-upload it to Convex.
| Service | Powers | How to get access | Key goes in |
|---|---|---|---|
| Convex | Backend functions, database, crons | Create a project at dashboard.convex.dev |
The deployment itself; deploy keys only for hosting (CONVEX_DEPLOY_KEY) |
| WorkOS AuthKit | Sign-in and sessions | Free dev environment at dashboard.workos.com |
WORKOS_API_KEY, WORKOS_COOKIE_PASSWORD, NEXT_PUBLIC_WORKOS_REDIRECT_URI in .env.local; WORKOS_CLIENT_ID in both .env.local and Convex |
| OpenRouter | AI models for the agent | API key at openrouter.ai/keys |
Convex: OPENROUTER_API_KEY |
| X API | Official X OAuth, webhooks, reads | Developer app at developer.x.com |
Convex: X_API_CLIENT_ID, X_API_CLIENT_SECRET, X_API_BEARER_TOKEN, X_CONSUMER_SECRET, X_TOKEN_ENCRYPTION_KEY |
| SocialAPI | X search, hydration, style analysis, monitoring | Invite only. Ask the maintainer on Discord or X/Twitter | Convex: SOCIALAPI_API_KEY |
| Renidly (formerly LinkdAPI) | LinkedIn people, company, and post reads | Sign up at renidly.com. Registration requires a work email address |
Convex: LINKDAPI_API_KEY |
| Unipile | LinkedIn connected accounts, messaging, actions | unipile.com |
Convex: UNIPILE_API_KEY, UNIPILE_BASE_URL, UNIPILE_WEBHOOK_SECRET |
| Polar | Billing | polar.sh; sandbox organization first |
Convex: POLAR_ORGANIZATION_TOKEN, POLAR_WEBHOOK_SECRET, POLAR_PRODUCT_* |
| Resend | resend.com |
Convex: RESEND_API_KEY |
|
| PostHog | Product analytics (optional) | posthog.com |
.env.local: NEXT_PUBLIC_POSTHOG_KEY, NEXT_PUBLIC_POSTHOG_HOST |
Optional helpers (Exa, Bishopi, GitHub token) are listed in configuration.md. You only need credentials for the area you work on.
The #1 blocker for contributors and coding agents is getting past workspace setup and its background workflows without burning money on OpenRouter.
To unlock the workspace dashboard, you must generate and approve example profiles during setup and have plan access. Once you approve the examples with plan access, the workspace is marked ready so you can open the dashboard immediately, while the core background workflows start right away to populate it:
- Discovery workflow
- Qualification workflow
- Enrichment workflow
By default, workspace setup example generation, discovery query planning, qualification, and autonomous background outreach use openai/gpt-6-luna-pro (and interactive setup, main, and prospect chat use openai/gpt-6-luna). When you are contributing to the project, you do not care about the quality of the lead matches. You only need setup and the background workflows to run cleanly so you can build or test your change.
Swap the model roles in your dev Convex deployment to a very cheap model that still handles tool calling and structured outputs reliably, such as a budget Gemini model (google/gemini-2.5-flash-lite or google/gemini-3.1-flash-lite) or a GLM model (z-ai/glm-5.3-flash or z-ai/glm-4.7-flash):
npx convex env set AI_ONBOARDING_MODEL google/gemini-2.5-flash-lite
npx convex env set AI_SETUP_AGENT_MODEL google/gemini-2.5-flash-lite
npx convex env set AI_MAIN_AGENT_MODEL google/gemini-2.5-flash-lite
npx convex env set AI_OUTREACH_AGENT_MODEL google/gemini-2.5-flash-lite
npx convex env set AI_FAST_MODEL google/gemini-2.5-flash-lite
npx convex env set AI_REASONING_MODEL google/gemini-2.5-flash-liteYou can substitute z-ai/glm-5.3-flash (or another cheap Gemini/GLM model on OpenRouter) in the commands above.
Do not use free OpenRouter models (such as Nvidia Nemotron :free variants). Free models are low quality and fail to call tools or return structured outputs reliably, which stalls the setup, discovery, qualification, and enrichment workflows. Budget Gemini and GLM models cost fractions of a cent per run and handle tool calling properly.
The full architecture walkthrough with the pipeline details lives in docs/architecture.md.
your browser
│
Next.js app .env.local
(app/, features/, shared/) ──────┐
│ │ WorkOS AuthKit values,
Convex backend ◄──────────────┘ Convex CLI deployment
(convex/) selection
│
┌──────────────┼───────────────────────────────┐
│ │ │
OpenRouter X/Twitter LinkedIn
(AI models) X API + SocialAPI Renidly (reads)
(search, DMs, monitors) Unipile (messaging)
│
Polar (billing) Resend (email) Exa, Bishopi, GitHub (optional)
Convex functions follow a three-layer rule: convex/agents/tools/ are thin agent-facing wrappers, convex/workflows/ orchestrate, and convex/lib/ holds core business logic. Details in CONTRIBUTING.md.
The repository ships agent skills under skills/ (managed by npx skills, locked in skills-lock.json) and agents.md as the entry point for coding agents.
- Convex plugin: recommended for Claude Code, Codex, and Cursor. It installs tools, hooks, skills, and the Convex MCP server. See docs.convex.dev/ai.
- Convex MCP server:
npx -y convex@latest mcp start, or read the server guide. It gives agents safe access to your dev deployment for data, logs, insights, and env vars. - Convex AI files:
npx convex ai-files installrefreshes managed sections inAGENTS.md/CLAUDE.md. - Vercel MCP: run
vercel mcpto wire the official server athttps://mcp.vercel.cominto Claude Code, Cursor, or VS Code. It manages projects, deployments, and logs. - These docs are agent readable: every public page and blog post serves Markdown, and
/llms.txtis the index.
Commit on your branch, run the checks, push to your fork, and open a PR against VecterAI/reacher-x:main:
pnpm exec tsc --noEmit
pnpm lint:strict
pnpm exec prettier --check path/to/changed-file
pnpm test:convexCI runs the same checks on your PR. Review bots such as CodeRabbit comment on every PR: verify each comment before acting on it. Review bots produce false positives, so never apply suggestions blindly. Reply with a short justification when a comment is wrong, and fix only what is real.
The README deploy button copies this repository into your own GitHub account and creates a Vercel project. That copy is for running your own instance, not for contributing: to contribute code, start with a proper fork as shown in the README's Contribute in minutes section. The button also prompts you for the listed environment variables and gets the app built and running; it does not fill in your service keys.
After the import, per configuration.md:
- Set the build command to
npx convex deploy --cmd 'npm run build'and addCONVEX_DEPLOY_KEYas a hosting secret so backend functions deploy with the build. - Set the Convex backend variables with
npx convex env set --prodon your own production deployment. - Allow your new callback URL (
https://your-domain/callback) in the WorkOS dashboard and set it asNEXT_PUBLIC_WORKOS_REDIRECT_URI. SetNEXT_PUBLIC_SITE_URLto the bare origin. - Set
NEXT_PUBLIC_BLOG_DEMO_ORIGINto the HTTPS origin of your deployed demo app (see Interactive Demos).
Your copy then runs live on Vercel and your own Convex deployment, under the AGPL-3.0 license.