New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@sinlair/reagent

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sinlair/reagent

Local-first research workspace and runtime CLI

Source
npmnpm
Version
0.1.5
Version published
Weekly downloads
1
-50%
Maintainers
1
Weekly downloads
 
Created
Source
ReAgent logo

ReAgent

Turn ongoing research into a reusable workflow, not a one-off conversation.

Local-first research workspace for paper discovery, evidence review, research notes, and delivery.

English  |  简体中文

Roadmap  •  Contributing  •  Operations

Node.js 22+ TypeScript Prisma CI MIT License

Screenshot of the ReAgent workbench home view

Table of Contents

Why ReAgent

ReAgent is not a chatbot with a few research buttons attached. It is a local research workspace designed for people who need to revisit topics, review evidence, save context, and ship useful outputs.

It is built for workflows such as:

  • Defining reusable research templates with goals, background, and success criteria.
  • Running repeated discovery instead of restarting the same search every week.
  • Reviewing papers, repo findings, and feedback in one place.
  • Saving notes so context survives across tasks and sessions.
  • Turning research into reports, briefings, slides, and reusable artifacts.

It fits best when you need a controllable, inspectable workspace rather than a black-box assistant.

Product Surfaces

The current web UI is organized around a small set of working surfaces:

  • Workbench for current progress, latest results, and common next actions.
  • Main Workspace for chat, quick research actions, recent tasks, and current workspace context.
  • Status for activity, latest outputs, and system health.
  • Research Workspace for templates, task lists, reports, schedules, topic reports, slides, and module files.
  • Research Map for seeing how topics, evidence, reports, and files connect.
  • Research Notes for searching, saving, and reopening file-backed notes.
  • Channels for WeChat login, connection status, lifecycle changes, and channel events.
  • Agent Settings and Skills for choosing the role, model, and tools used by chat.

Quick Start

  • Create a local env file from .env.example.
  • Install dependencies.
  • Push the Prisma schema to the default SQLite database.
  • Start the dev server.
npm install
npm run db:push
npm run dev

Open http://127.0.0.1:3000/.

Minimal local setup:

LLM_PROVIDER=fallback
WECHAT_PROVIDER=mock

If PowerShell blocks npm, use npm.cmd instead.

Global CLI install:

npm install -g @sinlair/reagent
reagent init
reagent gateway

The published package name is @sinlair/reagent, while the installed command is reagent.

Always-on gateway lifecycle:

reagent gateway install
reagent gateway status
reagent gateway restart
reagent gateway stop

Run Modes

The root app can run as a foreground dev process or as an always-on background service.

ModeCommandsNotes
Developmentnpm run devLocal development with live reload
PM2npm run pm2:start / npm run pm2:restart / npm run pm2:logsKeep the app running in the background
Windows Servicenpm run service:install / npm run service:status / npm run service:start / npm run service:stopMachine-level runtime on Windows

See OPERATIONS.md for deployment and maintenance details.

Repository Layout

PathPurpose
./Root ReAgent app, web UI, API server, and runtime
packages/reagent-core/Reusable core research logic
packages/reagent-openclaw/Installable OpenClaw plugin package
package/In-repo OpenClaw WeChat reference package kept for compatibility work
docs/Product visuals and supporting docs

Development

Validation:

npm run check:all
npm run test

If you only want to validate the publishable packages:

npm run build:packages
npm run check:packages

OpenClaw Plugin

Install the ReAgent OpenClaw plugin with:

openclaw plugins install @sinlair/reagent-openclaw --yes

Plugin source lives in packages/reagent-openclaw/.

Documentation

Inspiration

ReAgent is shaped by research-agent and research-workspace projects such as:

For a closer comparison, see docs/research-agent-landscape.md.

License

Released under the MIT License.

FAQs

Package last updated on 07 Apr 2026

Related posts