Skip to content

BinaryCheater/scholar-mode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Research Sidecar Workspace

English | 中文

Install And Run

Global install:

npm install -g @binarycheater/research-sidecar
cd ~/Research/project-a
research-sidecar

Project-local install:

cd ~/Research/project-a
npm install -D @binarycheater/research-sidecar
npx research-sidecar

Then open:

http://localhost:4317

Initialize a workspace:

research-sidecar init --graph research/graph.yaml

Install bundled skills into the workspace:

research-sidecar install-skills

This repository contains Research Sidecar, a local web app and CLI for graph-backed research work, plus the workspace skills that make the workflow useful with Codex.

Research Sidecar is meant for a common research pattern: you have evolving notes, experiment reports, claims, evidence, and open questions, but you need a small structure that makes the state understandable. The structure lives in graph.yaml; the detailed reasoning lives in Markdown or HTML files; private app state lives in .side/.

What It Does

  • Renders a research graph from one or more graph.yaml files in a workspace.
  • Handles the graph as a DAG: shared hypotheses render once with all visible parent edges instead of being forced under one display parent.
  • Lets you choose which graph is active and saves that choice to .side/config.json.
  • Opens Markdown, HTML, and text documents linked from graph nodes.
  • Supports inline and block LaTeX in Markdown previews.
  • Provides a chat/review surface where the model can inspect constrained workspace files.
  • Installs workspace skills into <workspace>/.agents/skills and <workspace>/.claude/skills so Codex, Claude, and the sidecar share the same research workflow instructions.
  • Packages as an npm CLI: run it globally or locally from the directory you want to treat as the workspace.

Repository Layout

sidecar/              npm package, web UI, server, CLI, tests
skills/               bundled workspace skill source copied by `research-sidecar install-skills`
docs/                 usage guide and API reference
.side/                local app state; ignored by git

Mental Model

The workspace is the directory where you run research-sidecar.

my-research-workspace/
  .side/
    config.json       local selected graph, model settings, sessions
  .agents/
    skills/
      research-graph-sop/
      scholar-mode/
      sidecar-thinking/
      writing-explanatory-reports/
  .claude/
    skills/
      research-graph-sop/
      scholar-mode/
      sidecar-thinking/
      writing-explanatory-reports/
  dingyi/
    synthetic/
      graph.yaml
      rq.main.md
      reports/

Graph files can live anywhere under the workspace. The UI searches the workspace for graph manifests such as graph.yaml, graph.yml, and *.graph.yaml. If several graphs exist, choose one in the UI; the selection is saved to .side/config.json and the graph reloads immediately.

Inside a graph, linked files are relative to the graph file by default:

file: ./rq.main.md
file: reports/stage1.md

Use a leading slash only when you explicitly mean “from the workspace root”:

file: /shared/background.md

Working With This Source Repo

For app development:

cd sidecar
npm install
npm run dev

For production build validation:

npm test
npm run typecheck
npm run pack:sidecar

npm run pack:sidecar verifies that the npm package contains the CLI, compiled server, built client, and all bundled skills.

Publish the npm package from the repository root with:

npm run publish:sidecar

This publishes the sidecar/ workspace package, not the private repository wrapper.

Documentation

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors