This is a Next.js project bootstrapped with create-next-app.
This repo can now discover untranslated Anthropic research posts and hand them to local Codex one by one.
npm run translate:batch:check
npm run translate:batch -- --dry-run
npm run translate:batch -- --limit 1translate:batch:check: fetches Anthropic's latest research URLs and prints the posts that are still missing locallytranslate:batch: runs Codex sequentially for each missing post, usingops/codex/translation-batch-prompt.md- add
--limit Nto cap each batch size - add
--model ...or--sandbox ...if you need to override the default Codex invocation - when
BATCH_GIT_PUSH_AFTER_RUN="1"is enabled, each successful translation is committed with the required author metadata and pushed toorigin/main
For a machine that stays on, use the repo-local launchd wrapper:
cp ops/codex/translation-batch.env.example ops/codex/translation-batch.env
chmod +x scripts/run_translation_batch_loop.sh
mkdir -p logs/codex tmp/codex
zsh -n scripts/run_translation_batch_loop.sh
plutil -lint ops/launchd/io.tabber.anthropic-research-kr.translation-batch.plistManual smoke run:
scripts/run_translation_batch_loop.shInstall the LaunchAgent:
cp ops/launchd/io.tabber.anthropic-research-kr.translation-batch.plist ~/Library/LaunchAgents/
launchctl bootout "gui/$(id -u)" ~/Library/LaunchAgents/io.tabber.anthropic-research-kr.translation-batch.plist 2>/dev/null || true
launchctl bootstrap "gui/$(id -u)" ~/Library/LaunchAgents/io.tabber.anthropic-research-kr.translation-batch.plist
launchctl enable "gui/$(id -u)/io.tabber.anthropic-research-kr.translation-batch"
launchctl kickstart -k "gui/$(id -u)/io.tabber.anthropic-research-kr.translation-batch"- default cadence is every
21600seconds, meaning every 6 hours - create
ops/codex/STOPto pause future runs without unloading launchd - logs go to
logs/codex/translation-batch.stdout.logandlogs/codex/translation-batch.stderr.log - by default each run translates at most one missing article
- the local
ops/codex/translation-batch.envin this repo is configured to auto-publish after a successful run
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun devOpen http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.
This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.