repowiseamosblomqvist/learnharness

Architecture of amosblomqvist/learnharness

amosblomqvist/learnharness is 1,169 source files holding 7,329 symbols across 12 modules, written mainly in TypeScript, JavaScript, Python. The largest module is tests, with 432 files, and 6 files are entry points into the dependency graph.

How learnharness fits together

The Electron entry point electron/main.cjs opens the desktop window, runs the local server and holds sign-in state for ChatGPT and subscription accounts. The app directory defines the screens, including the home page, the new session page, the chat and the settings. The components directory holds the React interface, and components/chat.tsx runs the session while drawing the transcript from shared widgets. The agent logic lives under src/agent, where src/agent/subagents/extraction.ts works on extracting material for the lesson. The plugins directory contains feature projects such as flashcards and a drawing pad, each with its own src/main.ts or src/main.js entry point. The root config.ts sets where the app keeps its data and provides the path table and thinking-level type that src/agent, src/store, src/server and src/core import.

Largest modules

  • tests: 432 files and 78,815 lines of code
  • src: 219 files and 27,981 lines of code
  • components: 180 files and 29,216 lines of code
  • plugins: 107 files and 17,019 lines of code
  • app: 51 files and 996 lines of code
  • scripts: 28 files and 5,923 lines of code
  • electron: 14 files and 1,753 lines of code
  • root: 7 files and 173 lines of code

Languages

By file count: TypeScript 954 files, JavaScript 86 files, Python 7 files, Shell 1 file.

Documentation

Repowise documents learnharness in 780 pages generated from the source, 26 of them written explanations of the repository and its modules. Module guides include:

  • app/api: API
  • src/agent: Agent
  • src/agent/tools: Agent Tool Implementations
  • app: App Pages and Chat Routes

More on learnharness: summary and FAQ, codebase overview, code health.

Related guide: Best dependency graph tools for monorepos