open-research 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 gangj277
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,123 @@
1
+ # Open Research
2
+
3
+ Local-first research CLI agent. Discover papers, synthesize notes, run analysis, and draft artifacts from your terminal.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm install -g open-research
9
+ ```
10
+
11
+ Requires Node.js 20+.
12
+
13
+ ## Quick Start
14
+
15
+ ```bash
16
+ # Launch the TUI
17
+ open-research
18
+
19
+ # Connect your OpenAI account (inside the TUI)
20
+ /auth
21
+
22
+ # Initialize a workspace
23
+ /init
24
+
25
+ # Start researching
26
+ > What are the latest advances in transformer attention mechanisms?
27
+ ```
28
+
29
+ ## What It Does
30
+
31
+ Open Research is an AI-powered research agent that runs in your terminal. It connects to OpenAI's API and gives you a full research workflow:
32
+
33
+ - **Discover papers** across arXiv, Semantic Scholar, and OpenAlex
34
+ - **Read and analyze** PDFs, datasets, and web pages
35
+ - **Run code** — Python scripts, R analysis, LaTeX compilation, anything
36
+ - **Write artifacts** — notes, syntheses, paper drafts grounded in sources
37
+ - **Review changes** — risky edits go to a review queue for your approval
38
+
39
+ ## Tools
40
+
41
+ The agent has access to:
42
+
43
+ | Tool | What it does |
44
+ |---|---|
45
+ | `read_file` | Read any file on disk (text, with binary detection) |
46
+ | `read_pdf` | Extract text from PDFs |
47
+ | `list_directory` | Explore directory trees |
48
+ | `run_command` | Execute shell commands (python, R, LaTeX, curl, etc.) |
49
+ | `search_workspace` | Search across workspace files |
50
+ | `write_new_file` | Create new workspace files |
51
+ | `update_existing_file` | Edit existing files |
52
+ | `search_external_sources` | Search academic paper databases |
53
+ | `fetch_url` | Fetch web pages and APIs |
54
+ | `ask_user` | Ask you questions when clarification is needed |
55
+ | `load_skill` | Activate research skills |
56
+ | `create_paper` | Create LaTeX paper drafts |
57
+
58
+ ## Slash Commands
59
+
60
+ | Command | Description |
61
+ |---|---|
62
+ | `/auth` | Connect OpenAI account via browser |
63
+ | `/auth-codex` | Import existing Codex CLI auth |
64
+ | `/init` | Initialize workspace in current directory |
65
+ | `/skills` | List available research skills |
66
+ | `/config` | View or change settings |
67
+ | `/clear` | Start a new conversation |
68
+ | `/help` | Show all commands |
69
+ | `/exit` | Quit |
70
+
71
+ ## Skills
72
+
73
+ Built-in research skills that guide the agent's methodology:
74
+
75
+ - **source-scout** — Find citation gaps and discover relevant papers
76
+ - **devils-advocate** — Stress-test claims and assumptions
77
+ - **methodology-critic** — Critique research methodology
78
+ - **evidence-adjudicator** — Evaluate evidence quality
79
+ - **experiment-designer** — Design experiments and studies
80
+ - **draft-paper** — Draft LaTeX papers from workspace evidence
81
+ - **paper-explainer** — Explain complex papers
82
+ - **synthesis-updater** — Update research syntheses
83
+ - **skill-creator** — Create custom skills
84
+
85
+ Type `/skill-name` in the TUI to activate any skill, or create your own in `~/.open-research/skills/`.
86
+
87
+ ## Workspace Structure
88
+
89
+ ```
90
+ my-research/
91
+ sources/ # PDFs, papers, raw data
92
+ notes/ # Research notes and briefs
93
+ artifacts/ # Generated outputs
94
+ papers/ # LaTeX paper drafts
95
+ experiments/ # Analysis scripts and results
96
+ .open-research/ # Workspace metadata
97
+ ```
98
+
99
+ ## Features
100
+
101
+ - **Markdown rendering** in terminal output (bold, italic, code blocks, lists, headings)
102
+ - **Slash command autocomplete** with arrow-key navigation
103
+ - **@file mentions** to reference workspace files inline
104
+ - **Shift+Enter** for multi-line input
105
+ - **Context management** — automatic compaction when conversation gets long
106
+ - **Token tracking** — see context usage in the status bar
107
+ - **Tool activity streaming** — see what the agent is doing in real-time
108
+ - **Review queue** — risky edits require your approval before applying
109
+
110
+ ## Development
111
+
112
+ ```bash
113
+ git clone https://github.com/gangj277/open-research.git
114
+ cd open-research
115
+ npm install
116
+ npm run dev # Run in dev mode
117
+ npm test # Run tests
118
+ npm run build # Build for production
119
+ ```
120
+
121
+ ## License
122
+
123
+ MIT
@@ -0,0 +1,8 @@
1
+ ---
2
+ name: devils-advocate
3
+ description: Stress-test claims, assumptions, and arguments in the current research workspace.
4
+ ---
5
+
6
+ # Devil's Advocate
7
+
8
+ Challenge the current thesis by locating weak assumptions, counter-evidence, and overclaims.
@@ -0,0 +1,8 @@
1
+ ---
2
+ name: draft-paper
3
+ description: Draft a LaTeX paper from the current workspace evidence and artifacts.
4
+ ---
5
+
6
+ # Draft Paper
7
+
8
+ Create a paper draft that cites the workspace faithfully and keeps claims grounded.
@@ -0,0 +1,8 @@
1
+ ---
2
+ name: evidence-adjudicator
3
+ description: Weigh conflicting evidence and assess which claims are best supported.
4
+ ---
5
+
6
+ # Evidence Adjudicator
7
+
8
+ Compare competing claims and state which evidence is stronger and why.
@@ -0,0 +1,8 @@
1
+ ---
2
+ name: experiment-designer
3
+ description: Design follow-up experiments and structured evaluation plans from the workspace.
4
+ ---
5
+
6
+ # Experiment Designer
7
+
8
+ Turn open questions into concrete hypotheses, procedures, and analysis plans.
@@ -0,0 +1,8 @@
1
+ ---
2
+ name: methodology-critic
3
+ description: Critique study design, methods, and overclaims in cited research.
4
+ ---
5
+
6
+ # Methodology Critic
7
+
8
+ Evaluate whether the cited methods actually support the claimed conclusions.
@@ -0,0 +1,8 @@
1
+ ---
2
+ name: paper-explainer
3
+ description: Explain papers, methods, and concepts grounded in the local workspace.
4
+ ---
5
+
6
+ # Paper Explainer
7
+
8
+ Translate difficult papers into clear, source-grounded explanations.
@@ -0,0 +1,16 @@
1
+ ---
2
+ name: skill-creator
3
+ description: Create or update Open Research skills using the Codex-style skill format.
4
+ ---
5
+
6
+ # Skill Creator
7
+
8
+ Use this skill when the user wants to create, revise, or package a custom research skill.
9
+
10
+ ## Workflow
11
+
12
+ 1. Clarify the job the skill should do.
13
+ 2. Define trigger phrases and example requests.
14
+ 3. Keep the skill concise.
15
+ 4. Use `SKILL.md` plus optional `scripts/`, `references/`, and `assets/`.
16
+ 5. Validate that the folder name matches the normalized skill name.
@@ -0,0 +1,8 @@
1
+ ---
2
+ name: source-scout
3
+ description: Find citation gaps and propose relevant external papers for the current research thread.
4
+ ---
5
+
6
+ # Source Scout
7
+
8
+ Use external search to find papers that close obvious evidence gaps.
@@ -0,0 +1,8 @@
1
+ ---
2
+ name: synthesis-updater
3
+ description: Update synthesis artifacts using new evidence from the workspace.
4
+ ---
5
+
6
+ # Synthesis Updater
7
+
8
+ Revise synthesis outputs without losing provenance or uncertainty labels.