Skip to content

Commit 71af9b6

Browse files
committed
README 에이전트 그래프 업데이트
1 parent caace43 commit 71af9b6

15 files changed

Lines changed: 624 additions & 315 deletions

README.ko.md

Lines changed: 35 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -50,97 +50,74 @@
5050
| 연구 실행 패턴 | ReAct, ReWOO, ToT, Reflexion 패턴을 노드 성격에 맞게 사용 |
5151
| 로컬 ACI 실행 | `implement_experiments`, `run_experiments`를 파일/명령/테스트 액션으로 수행 |
5252

53-
## 빠른 시작
53+
## 여기서 시작하세요
54+
55+
- 처음 써본다면 `autolabos web`부터 추천합니다. 온보딩, 대시보드, 로그, 체크포인트, 아티팩트 브라우징을 한 화면에서 볼 수 있습니다.
56+
- 터미널 중심으로 쓰고 싶다면 `autolabos`로 시작하면 됩니다.
57+
- 두 명령 모두 AutoLabOS가 관리할 연구 프로젝트 폴더에서 실행하세요. 워크스페이스 상태는 `.autolabos/` 아래에 저장됩니다.
58+
59+
## 준비물
5460

55-
> [!IMPORTANT]
56-
> `SEMANTIC_SCHOLAR_API_KEY`는 필수입니다. `OPENAI_API_KEY`는 메인 provider 또는 PDF 분석 모드가 `api`일 때만 필요합니다.
61+
| 항목 | 필요한 경우 | 메모 |
62+
| --- | --- | --- |
63+
| `SEMANTIC_SCHOLAR_API_KEY` | 항상 필요 | 논문 탐색과 메타데이터 조회에 사용 |
64+
| `OPENAI_API_KEY` | 메인 provider 또는 PDF 모드가 `api`일 때만 필요 | OpenAI API 모델 실행에 사용 |
65+
| Codex CLI 로그인 | 메인 provider 또는 PDF 모드가 `codex`일 때만 필요 | 로컬 Codex 세션을 사용 |
66+
67+
## 빠른 시작
5768

58-
1. 설치 및 빌드
69+
1. AutoLabOS를 설치하고 빌드합니다.
5970

6071
```bash
6172
npm install
6273
npm run build
6374
npm link
6475
```
6576

66-
2. 환경 변수 설정
77+
2. 워크스페이스로 사용할 연구 프로젝트 폴더로 이동합니다.
6778

6879
```bash
69-
cp .env.example .env
70-
echo 'SEMANTIC_SCHOLAR_API_KEY=your_key_here' >> .env
71-
echo 'OPENAI_API_KEY=your_openai_key_here' >> .env
80+
cd /path/to/your-research-project
7281
```
7382

74-
3. TUI 실행
75-
76-
```bash
77-
autolabos
78-
```
79-
80-
4. 웹 UI 실행
83+
3. 추천 경로인 브라우저 UI를 실행합니다.
8184

8285
```bash
8386
autolabos web
8487
```
8588

86-
기본 주소는 `http://127.0.0.1:4317`입니다.
87-
AutoLabOS가 워크스페이스로 사용할 연구 프로젝트 폴더에서 이 명령을 실행하면 됩니다.
89+
기본 주소는 `http://127.0.0.1:4317`입니다. TUI부터 시작하고 싶다면 `autolabos`를 실행하면 됩니다.
8890

89-
저장소 체크아웃으로 사용 중이고 웹 자산이 없다는 메시지가 뜨면, AutoLabOS 패키지 루트에서 웹 번들을 한 번 빌드한 뒤 다시 실행하면 됩니다.
91+
4. 온보딩을 완료합니다. 아직 `.autolabos/config.yaml`이 없다면 웹에서는 onboarding이, TUI에서는 setup wizard가 열리며 같은 워크스페이스 스캐폴드와 설정을 작성합니다.
9092

91-
```bash
92-
cd /path/to/AutoLabOS
93-
npm --prefix web run build
94-
autolabos web
95-
```
96-
97-
호스트나 포트를 바꾸려면:
93+
5. 첫 실행이 성공했는지 확인합니다. 프로젝트 안에 `.autolabos/config.yaml`이 생기고, 대시보드 또는 TUI 홈 화면에서 run을 시작할 수 있으면 준비가 끝난 것입니다.
9894

99-
```bash
100-
autolabos web --host 0.0.0.0 --port 8080
101-
```
95+
6. run을 만들거나 선택한 뒤 `/new`, `/agent collect "your topic"`, 또는 웹 워크플로 카드로 첫 실행을 시작합니다.
10296

103-
개발 모드:
97+
## 첫 실행에서 일어나는 일
10498

105-
```bash
106-
npm run dev
107-
npm run dev:web
108-
```
99+
- AutoLabOS는 워크스페이스 설정을 `.autolabos/config.yaml`에 저장하고, 실행 시 `process.env` 또는 `.env``SEMANTIC_SCHOLAR_API_KEY`, `OPENAI_API_KEY`를 읽습니다.
100+
- 기본 LLM provider를 고릅니다. `codex`는 로컬 Codex 세션을 사용하고, `api`는 OpenAI API 모델을 사용합니다.
101+
- PDF 분석 모드는 별도로 고릅니다. `codex`는 로컬에서 텍스트를 추출한 뒤 분석하고, `api`는 PDF를 Responses API로 직접 보냅니다.
102+
- 메인 provider 또는 PDF 모드가 `api`이면 onboarding과 `/settings`에서 OpenAI 모델을 선택할 수 있습니다.
103+
- `/model`은 먼저 활성 백엔드를 고른 뒤, 나중에 슬롯과 모델을 다시 바꿀 수 있게 해줍니다.
109104

110-
`npm link` 없이 실행하려면:
105+
## 처음 사용자용 문제 해결
111106

112-
```bash
113-
node dist/cli/main.js
114-
node dist/cli/main.js web
115-
```
107+
- 저장소 체크아웃 환경에서 웹 자산이 없다는 메시지가 보이면, AutoLabOS 패키지 루트에서 `npm --prefix web run build`를 한 번 실행한 뒤 `autolabos web`을 다시 시작하세요.
108+
- `npm link`를 쓰지 않으려면 AutoLabOS 저장소 루트에서 `node dist/cli/main.js` 또는 `node dist/cli/main.js web`으로 실행할 수 있습니다.
109+
- 다른 호스트나 포트가 필요하면 `autolabos web --host 0.0.0.0 --port 8080`을 사용하세요.
110+
- 로컬 개발 모드는 `npm run dev`, `npm run dev:web`입니다.
116111

117112
> [!NOTE]
118113
> 외부 진입 커맨드는 `autolabos``autolabos web`입니다. `autolabos init`은 의도적으로 지원하지 않습니다.
119114
120-
## 첫 실행
121-
122-
1. 빈 프로젝트에서 `autolabos` 또는 `autolabos web`을 실행합니다.
123-
2. `.autolabos/config.yaml`이 없으면 TUI에서는 setup wizard가, 웹에서는 onboarding 폼이 열립니다.
124-
3. 두 흐름 모두 같은 설정과 스캐폴드를 만들고, Semantic Scholar 키를 저장한 뒤 메인 대시보드로 진입합니다.
125-
4. 기본 LLM provider를 선택합니다.
126-
- `codex`: 메인 워크플로를 Codex ChatGPT 로그인으로 실행 (기본값)
127-
- `api`: 메인 워크플로를 OpenAI API 모델로 실행 (`OPENAI_API_KEY` 필요)
128-
5. PDF 분석 모드를 선택합니다.
129-
- `codex`: PDF를 로컬에서 텍스트 추출 후 Codex로 분석 (기본값)
130-
- `api`: PDF를 Responses API로 직접 전달해 분석 (`OPENAI_API_KEY` 필요)
131-
6. provider 또는 PDF 분석 모드가 `api`이면 setup wizard와 `/settings`에서 모델을 고를 수 있습니다.
132-
- 현재 내장 카탈로그: `gpt-5.4`, `gpt-5`, `gpt-5-mini`, `gpt-4.1`, `gpt-4o`, `gpt-4o-mini`
133-
7. `/model`은 먼저 사용할 백엔드를 고른 뒤, 그 백엔드에 맞는 슬롯/모델을 선택합니다.
134-
- Codex CLI backend: Codex 모델 선택기
135-
- OpenAI API backend: OpenAI API 모델 선택기
136-
8. 실행 시 AutoLabOS는 `process.env` 또는 `.env``SEMANTIC_SCHOLAR_API_KEY`, `OPENAI_API_KEY`를 읽습니다.
137-
138115
## Web Ops UI
139116

140117
`autolabos web`은 TUI와 같은 런타임을 공유하는 로컬 단일 사용자용 브라우저 UI를 실행합니다.
141118

142119
- 온보딩은 같은 비대화형 setup helper를 사용하므로, 웹에서 초기 설정해도 TUI wizard와 동일한 `.autolabos/config.yaml``.env` 값이 생성됩니다.
143-
- 대시보드에서 run 검색/선택, 8개 노드 워크플로 보기, 노드 액션, 라이브 로그, 체크포인트, 아티팩트, 메타데이터, `/doctor` 요약을 확인할 수 있습니다.
120+
- 대시보드에서 run 검색/선택, 9개 노드 워크플로 보기, 노드 액션, 라이브 로그, 체크포인트, 아티팩트, 메타데이터, `/doctor` 요약을 확인할 수 있습니다.
144121
- 하단 컴포저는 슬래시 명령과 지원되는 자연어 입력을 모두 받습니다.
145122
- 복합 자연어 실행 계획은 `y/a/n` 대신 `Run next`, `Run all`, `Cancel` 버튼으로 제어합니다.
146123
- 아티팩트 브라우저는 `.autolabos/runs/<run_id>` 범위로 제한되며, 주요 텍스트 파일·이미지·PDF는 inline preview를 제공합니다.
@@ -245,7 +222,7 @@ stateDiagram-v2
245222
write_paper --> [*]: approve
246223
```
247224

248-
기본 `agent_approval` 모드에서는 각 노드가 끝날 때마다 멈춥니다. 예외적으로 `implement_experiments``run_experiments`로 자동 handoff할 수 있고, `analyze_results`는 명시적인 backward recommendation을 낼 수 있으며, `review`는 패널 결정을 review packet으로 묶은 뒤 approve 시 advance, backtrack, human hold 중 하나로 이어질 수 있습니다.
225+
기본 `agent_approval` 모드는 이제 `workflow.approval_mode: minimal`로 동작하므로, 성공한 노드는 자동으로 다음 단계로 넘어가고 사람이 꼭 판단해야 하는 transition일 때만 승인을 요청합니다. 예전처럼 각 노드마다 멈추고 싶다면 `workflow.approval_mode: manual`로 바꾸면 됩니다. `implement_experiments`여전히 `run_experiments`로 자동 handoff할 수 있고, `analyze_results`는 명시적인 backward recommendation을 낼 수 있으며, `review`는 패널 결정을 review packet으로 묶어 advance, backtrack, human hold 중 하나로 이어집니다.
249226

250227
### 단계별 연결 그래프
251228

README.md

Lines changed: 34 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -51,91 +51,68 @@
5151
| Research runtime patterns | ReAct, ReWOO, ToT, and Reflexion are used where they make sense |
5252
| Local ACI execution | `implement_experiments` and `run_experiments` execute through file, command, and test actions |
5353

54-
## Quick Start
54+
## Start Here
55+
56+
- If this is your first time, start with `autolabos web`. It gives you guided onboarding, the dashboard, logs, checkpoints, and artifact browsing in one place.
57+
- Use `autolabos` when you prefer a terminal-first loop with slash commands.
58+
- Run either command from the research project directory you want AutoLabOS to manage. Workspace state lives under `.autolabos/`.
59+
60+
## What You Need
5561

56-
> [!IMPORTANT]
57-
> `SEMANTIC_SCHOLAR_API_KEY` is required. `OPENAI_API_KEY` is only needed when the main provider or PDF analysis mode is `api`.
62+
| Item | When it is needed | Notes |
63+
| --- | --- | --- |
64+
| `SEMANTIC_SCHOLAR_API_KEY` | Always | Required for paper discovery and metadata lookup |
65+
| `OPENAI_API_KEY` | Only when the primary provider or PDF mode is `api` | Used for OpenAI API model execution |
66+
| Codex CLI login | Only when the primary provider or PDF mode is `codex` | AutoLabOS uses your local Codex session |
67+
68+
## Quick Start
5869

59-
1. Install and build
70+
1. Install and build AutoLabOS.
6071

6172
```bash
6273
npm install
6374
npm run build
6475
npm link
6576
```
6677

67-
2. Add environment variables
78+
2. Move into the research project directory you want to use as the workspace.
6879

6980
```bash
70-
cp .env.example .env
71-
echo 'SEMANTIC_SCHOLAR_API_KEY=your_key_here' >> .env
72-
echo 'OPENAI_API_KEY=your_openai_key_here' >> .env
81+
cd /path/to/your-research-project
7382
```
7483

75-
3. Launch the TUI
76-
77-
```bash
78-
autolabos
79-
```
80-
81-
4. Launch the web UI
84+
3. Start the recommended browser workflow.
8285

8386
```bash
8487
autolabos web
8588
```
8689

87-
The web server listens on `http://127.0.0.1:4317` by default.
88-
Run this from the research project directory you want AutoLabOS to use as its workspace.
90+
The web server listens on `http://127.0.0.1:4317` by default. Use `autolabos` instead if you want the TUI first.
8991

90-
If you are using a repository checkout and the CLI says the installed web assets are missing, build the web bundle once from the AutoLabOS package root:
92+
4. Finish onboarding. If `.autolabos/config.yaml` does not exist yet, the web app opens onboarding and the TUI opens the setup wizard. Both flows write the same workspace scaffold and config.
9193

92-
```bash
93-
cd /path/to/AutoLabOS
94-
npm --prefix web run build
95-
autolabos web
96-
```
97-
98-
Use a custom bind address or port when needed:
94+
5. Confirm the first run worked. You should now have `.autolabos/config.yaml`, a configured workspace, and either the dashboard or the TUI home screen ready for a run.
9995

100-
```bash
101-
autolabos web --host 0.0.0.0 --port 8080
102-
```
96+
6. Create or select a run, then start with `/new`, `/agent collect "your topic"`, or the workflow cards in the web UI.
10397

104-
Development mode:
98+
## What Happens On First Run
10599

106-
```bash
107-
npm run dev
108-
npm run dev:web
109-
```
100+
- AutoLabOS stores workspace config in `.autolabos/config.yaml` and reads `SEMANTIC_SCHOLAR_API_KEY` and `OPENAI_API_KEY` from `process.env` or `.env`.
101+
- Choose the primary LLM provider: `codex` uses your local Codex session, while `api` uses OpenAI API models.
102+
- Choose the PDF analysis mode separately: `codex` keeps PDF extraction local before analysis, while `api` sends the PDF to the Responses API.
103+
- If the primary provider or PDF mode is `api`, onboarding and `/settings` let you choose the OpenAI model.
104+
- `/model` lets you switch the active backend first, then choose the slot and model later.
110105

111-
Without `npm link`, you can still run:
106+
## Common First-Run Fixes
112107

113-
```bash
114-
node dist/cli/main.js
115-
node dist/cli/main.js web
116-
```
108+
- If a repository checkout says the installed web assets are missing, build them once from the AutoLabOS package root with `npm --prefix web run build`, then restart `autolabos web`.
109+
- If you do not want `npm link`, you can still run `node dist/cli/main.js` or `node dist/cli/main.js web` from the AutoLabOS repository root.
110+
- If you need a different bind address or port, run `autolabos web --host 0.0.0.0 --port 8080`.
111+
- For local development, use `npm run dev` and `npm run dev:web`.
117112

118113
> [!NOTE]
119114
> External entrypoints are `autolabos` and `autolabos web`. `autolabos init` is intentionally not supported.
120115
121-
## First Run
122-
123-
1. Run `autolabos` or `autolabos web` in an empty project.
124-
2. If `.autolabos/config.yaml` does not exist, the TUI opens the setup wizard and the web app shows the onboarding form.
125-
3. Both flows create the same scaffold/config, store your Semantic Scholar key, and open the main dashboard.
126-
4. Choose the primary LLM provider:
127-
- `codex`: use Codex ChatGPT login for the main workflow (default)
128-
- `api`: use OpenAI API models for the main workflow (`OPENAI_API_KEY` required)
129-
5. Choose the PDF analysis mode:
130-
- `codex`: download and extract PDF text locally, then analyze with Codex (default)
131-
- `api`: send the PDF directly to the Responses API (`OPENAI_API_KEY` required)
132-
6. If the provider or PDF mode is `api`, setup wizard and `/settings` let you choose a model.
133-
- Current built-in catalog: `gpt-5.4`, `gpt-5`, `gpt-5-mini`, `gpt-4.1`, `gpt-4o`, `gpt-4o-mini`
134-
7. `/model` now lets you choose the active backend first, then select the slot/model:
135-
- Codex CLI backend: Codex model selector
136-
- OpenAI API backend: OpenAI API model selector
137-
8. At runtime, AutoLabOS reads `SEMANTIC_SCHOLAR_API_KEY` and `OPENAI_API_KEY` from `process.env` or `.env`.
138-
139116
## Web Ops UI
140117

141118
`autolabos web` starts a local single-user browser UI on top of the same runtime used by the TUI.
@@ -246,7 +223,7 @@ stateDiagram-v2
246223
write_paper --> [*]: approve
247224
```
248225

249-
Default `agent_approval` mode pauses after every node. `implement_experiments` is the one forward step that can skip its pause through automatic handoff to `run_experiments`, `analyze_results` can emit explicit backward recommendations, and `review` now packages a review decision that approval can turn into an advance, a backtrack, or a human hold.
226+
Default `agent_approval` mode now runs with `workflow.approval_mode: minimal`, so successful nodes auto-advance and human approval is only requested when a transition explicitly requires human judgment. Set `workflow.approval_mode: manual` if you want the legacy pause-after-each-node behavior. `implement_experiments` can still auto-handoff into `run_experiments`, `analyze_results` can emit explicit backward recommendations, and `review` still turns panel output into an advance, a backtrack, or a human hold.
250227

251228
### Phase-by-Phase Connection Graphs
252229

0 commit comments

Comments
 (0)