Harness engineering beginner tutorial, from 0 to 1
TypeScript agentagenticagentic-aiaiai-agentai-agentsdshdsh-pluginharnessharness-engineeringharness-frameworkllm
Update acknowledgments wording and refresh CLAUDE.md
sanbuphy2363346e2823
diff --git a/CLAUDE.md b/CLAUDE.mdindex 770d2f7..411ded9 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -11,7 +11,7 @@ Learn Harness Engineering is a project-based course on building reliable coding```sh# Documentation sitenpm install-npm run docs:dev # Dev server with hot reload+npm run docs:dev # Dev server with hot reload (VitePress)npm run docs:build # Production buildnpm run docs:preview # Preview built site@@ -21,14 +21,16 @@ npx tsx docs/lectures/<lecture-dir>/code/<file>.ts# Project Electron apps (from each project directory)cd projects/project-NN/starter # or solution/npm install-npm run dev # Build + launch Electron-npm run check # Type-check only-npm run test # Run Vitest tests+npm run dev # Build + launch Electron (via scripts/dev.js)+npm run check # Type-check both tsconfig.json and tsconfig.node.json+npm run test # Vitest run (single run)+npm run test:watch # Vitest watch mode```## Repository Structure- `docs/` — VitePress documentation site (lectures, projects, resources)+- `docs/.vitepress/config.mts` — Nav/sidebar config for both EN and ZH locales- `docs/lectures/` — 12 lectures, each with `index.md` + `code/` examples- `docs/projects/` — 6 project descriptions- `docs/resources/` — Bilingual (en/zh) templates, references, OpenAI advanced pack@@ -44,16 +46,17 @@ The course revolves around an Electron knowledge-base desktop app that evolves a- **Services** (`src/services/`): DocumentService, IndexingService, QaService, PersistenceService- **Shared types** (`src/shared/types.ts`): Cross-boundary interfaces and IPC channel constants-Each project's starter/solution is a complete copy of the Electron app at that evolutionary stage. P(N+1) starter is derived from P(N) solution.+Each project's starter/solution is a complete copy of the Electron app at that evolutionary stage. P(N+1) starter is derived from P(N) solution. The shared foundation is in `projects/shared/`.## Key Patterns-- IPC channels defined as constants in `src/shared/types.ts` (IPC_CHANNELS)+- IPC channels defined as constants in `src/shared/types.ts` (IPC_CHANNELS) — single source of truth- All data stored locally as JSON/text files (no database)- Mock Q&A returns structured answers with citations (no real LLM API)- Harness files in project roots: AGENTS.md, CLAUDE.md, feature_list.json, init.sh, claude-progress.md- Progressive disclosure: short AGENTS.md entrypoint linking to focused docs+- Each project has two tsconfigs: `tsconfig.json` (renderer) and `tsconfig.node.json` (main/preload)## Bilingual Content-All resources exist in both English (`docs/resources/en/`) and Chinese (`docs/resources/zh/`). Keep both in sync.+All content exists in both English and Chinese. Documentation lives in shared `docs/lectures/` and `docs/projects/` dirs (content is bilingual within each file). Resources have separate `docs/resources/en/` and `docs/resources/zh/` directories. Keep both in sync.diff --git a/README.md b/README.mdindex 83d3d5b..bcb8769 100644--- a/README.md+++ b/README.md@@ -494,4 +494,4 @@ learn-harness-engineering/## Acknowledgments-This course was inspired by and draws ideas from [learn-claude-code](https://github.com/shareAI-lab/learn-claude-code) — a progressive guide to building agent harnesses from scratch, from a single loop to isolated autonomous execution.+This course was inspired by and draws ideas from [learn-claude-code](https://github.com/shareAI-lab/learn-claude-code) — a progressive guide to building agent from scratch, from a single loop to isolated autonomous execution.