nobel-literature
v1.2.0
Published
Nobel Literature Prize jury simulation - spin up with OpenCode and DeepSeek
Readme
Nobel Literature 诺贝尔文学奖模拟评审
🎭 Three AI judges debate the Nobel Prize in Literature — no programming experience needed.
English
What is this?
This tool launches a simulated Nobel Literature Prize jury. Three AI judges — a literary critic, a literary historian, and a contemporary literature expert — will debate and discuss candidates for the Nobel Prize. You watch their conversation unfold in your browser.
Step 0: What you'll need
- A computer running Windows 10/11 or macOS
- An internet connection
- About 10 minutes for setup
Step 1: Open the Terminal
The terminal is a text window where you type commands. Don't worry — you only need to type a few.
Windows:
- Press
Windows logo keyon your keyboard (the key with the Windows icon ⊞) - Type
PowerShell - Click Windows PowerShell or Terminal in the search results
- A blue or black text window will open — this is your terminal
macOS:
- Press
Command (⌘) + Spacetogether - Type
Terminal - Press
Enter - A white or dark text window will open — this is your terminal
Step 2: Install Node.js
Node.js is a small free program this tool needs to run. It's like installing an app — just follow the steps.
Windows — using winget:
In the terminal you just opened, type this command and press Enter:
winget install OpenJS.NodeJS.LTSWhen it asks "Do you agree to the terms?", type Y and press Enter.
macOS — using Homebrew:
First, if you don't have Homebrew yet, paste this command and press Enter:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"Then install Node.js:
brew install node@22Verify the installation (both Windows and Mac):
Close the terminal completely, then reopen it (see Step 1). Type:
node --versionIf you see something like v22.x.x, you're good! If you see an error, try closing and reopening the terminal again.
Step 3: Run the Nobel Literature Simulation
In your terminal, copy and paste this command, then press Enter:
npx nobel-literature@latest my-nobel-project💡 Replace
my-nobel-projectwith any name you like — this will be the folder where the simulation runs. For example:npx nobel-literature@latest nobel-2026
The first time you run this, it may ask:
Need to install the following packages: nobel-literature@latest. Ok to proceed? (y)Type y and press Enter.
Wait a moment. The tool will:
- Create a project folder
- Set up three AI judges and a moderator
- Automatically open a web page in your browser
That's it — you can now watch the judges discuss! 🎉
Step 4: Configure the AI (DeepSeek)
The judges need an AI provider to work. You'll need a DeepSeek API key (it's cheap and easy to get).
Get a DeepSeek API key:
- Go to https://platform.deepseek.com
- Sign up or log in
- Go to API Keys in the left menu
- Click Create API Key
- Copy the key (it starts with
sk-)
Enter the key in the web interface:
- In the web page that just opened, find the ⚙️ Settings icon in the bottom-left corner and click it
- In the settings menu, click Providers
- Click Show more providers
- Find DeepSeek in the list and click it
- Paste your API key into the input field
- Click Confirm or press
Enter
✅ You're all set! The judges are now connected to DeepSeek's AI.
Step 5: Start a Discussion
Once the web page opens:
- You'll see a chat interface
- Type:
@moderator Start the Nobel Literature Prize 2026 selection process - Press
Enter— the moderator will begin orchestrating the three judges
The judges will take turns speaking across multiple rounds, and you'll see their full debates in real time.
Step 6: If You've Run It Before
If you've already set up a project folder, just run the same command again:
npx nobel-literature@latest my-nobel-projectIt will detect the existing setup and skip initialization, going straight to opening the web interface.
Step 7: Close When Done
- In the terminal, press
Ctrl + C(hold theCtrlkey and pressC) to stop the program - To close the terminal window:
- Windows: Type
exitand pressEnter, or click the ✕ button - macOS: Type
exitand pressEnter, or press⌘ + Q
- Windows: Type
Troubleshooting
| Problem | Solution |
|---------|----------|
| node is not recognized | Close and reopen the terminal. If still broken, restart your computer. |
| npx is not recognized | Same as above — close and reopen terminal first. |
| "Need to install" prompt doesn't appear | It may appear differently; just look for a (y) prompt and type y. |
| Web page doesn't open | Check the terminal output for a URL (like http://localhost:xxxx) and open it manually in your browser. |
| Port is already in use | Stop other programs using port, or the tool will auto-pick another port. |
| DeepSeek not working | Make sure you entered the API key correctly in Settings → Providers → DeepSeek. Check your key at platform.deepseek.com. |
中文
这是什么?
这个工具会启动一个诺贝尔文学奖模拟评审。三位 AI 评委——文学评论家、文学史学家、当代文学专家——将辩论和讨论诺贝尔文学奖的候选人。你可以在浏览器中观看他们的对话。
准备工作
- 一台 Windows 10/11 或 macOS 电脑
- 网络连接
- 大约 10 分钟的设置时间
第1步:打开终端
终端是一个文字窗口,你可以在里面输入命令。别担心——你只需要输入几条命令。
Windows:
- 按键盘上的
Windows 键(带有 ⊞ 图标的那个键) - 输入
PowerShell - 在搜索结果中点击 Windows PowerShell 或 终端
- 会弹出一个蓝色或黑色的文字窗口——这就是终端
macOS:
- 同时按
Command (⌘) + 空格键 - 输入
终端或Terminal - 按
回车键 - 会弹出一个白色或深色的文字窗口——这就是终端
第2步:安装 Node.js
Node.js 是这个工具运行所需的免费小程序,就像安装一个普通软件一样。
Windows — 使用 winget:
在刚打开的终端中,输入以下命令并按 回车键:
winget install OpenJS.NodeJS.LTS当它询问"是否同意条款?"时,输入 Y 并按 回车键。
macOS — 使用 Homebrew:
如果你还没有 Homebrew,先粘贴以下命令并按 回车键:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"然后安装 Node.js:
brew install node@22验证安装是否成功(Windows 和 Mac 通用):
完全关闭终端,然后重新打开(参见第1步),输入:
node --version如果显示类似 v22.x.x 的内容,说明安装成功!如果报错,试试关闭终端再重新打开。
第3步:运行诺贝尔文学奖模拟
在终端中,复制粘贴以下命令,然后按 回车键:
npx nobel-literature@latest 我的诺贝尔项目💡 把
我的诺贝尔项目替换成你喜欢的名字——这将是模拟运行的文件夹名。例如:npx nobel-literature@latest 诺贝尔2026
首次运行时可能会询问:
Need to install the following packages: nobel-literature@latest. Ok to proceed? (y)输入 y 并按 回车键。
稍等片刻,工具会自动:
- 创建项目文件夹
- 配置三位 AI 评委和一位裁判
- 在浏览器中自动打开网页
完成——你现在可以观看评委们的讨论了!🎉
第4步:配置 AI(DeepSeek)
评委需要一个 AI 服务才能工作。你需要一个 DeepSeek API 密钥(便宜且容易获取)。
获取 DeepSeek API 密钥:
- 打开 https://platform.deepseek.com
- 注册或登录
- 点击左侧菜单中的 API Keys
- 点击 Create API Key
- 复制密钥(以
sk-开头)
在网页界面中输入密钥:
- 在刚打开的网页中,找到 左下角的 ⚙️ 设置图标,点击它
- 在设置菜单中,点击 Providers(提供商)
- 点击 Show more providers(显示更多提供商)
- 在列表中找到 DeepSeek,点击它
- 将你的 API 密钥粘贴到输入框中
- 点击 Confirm(确定)或按
回车键
✅ 大功告成!评委们现在已经连接到 DeepSeek 的 AI 了。
第5步:开始讨论
网页打开后:
- 你会看到一个聊天界面
- 输入:
@moderator 启动2026年诺贝尔文学奖评选 - 按
回车键——裁判将开始组织三位评委的讨论
评委们将轮流发言,你可以在多个轮次中观看他们的完整辩论过程。
第6步:再次运行
如果之前已经设置过项目文件夹,只需再次运行相同命令:
npx nobel-literature@latest 我的诺贝尔项目它会检测到已有设置,跳过初始化,直接打开网页界面。
第7步:结束使用
- 在终端中,按
Ctrl + C(按住Ctrl键的同时按C)停止程序 - 关闭终端窗口:
- Windows:输入
exit按回车键,或直接点击 ✕ 按钮 - macOS:输入
exit按回车键,或按⌘ + Q
- Windows:输入
常见问题
| 问题 | 解决方法 |
|------|----------|
| 提示 node 不是内部命令 | 关闭终端重新打开。如果仍不行,重启电脑试试。 |
| 提示 npx 不是内部命令 | 同上——先关闭终端重新打开。 |
| 没有弹出"Need to install"提示 | 提示可能形式不同,找到 (y) 提示后输入 y 即可。 |
| 浏览器没有自动打开 | 查看终端中的网址(类似 http://localhost:xxxx),手动在浏览器中打开。 |
| 端口被占用 | 关闭其他占用端口的程序,工具会自动选择其他端口。 |
| DeepSeek 不工作 | 确保你在 设置 → Providers → DeepSeek 中正确输入了 API 密钥。可以在 platform.deepseek.com 检查你的密钥。 |
