Skip to content

Use Garry Tan's exact Claude Code setup: 23 opinionated tools that serve as CEO, Designer, Eng Manager, Release Manager, Doc Engineer, and QA

TypeScript
488 B
Raw Blame
module.exports = ({ pidsFile, mode }) => ({
  chromium: {
    async launchPersistentContext() {
      const child = require('node:child_process').spawn(process.execPath, ['-e', 'setInterval(() => {}, 1000)'], {
        stdio: 'ignore',
        detached: true,
      });
      require('node:fs').writeFileSync(pidsFile, JSON.stringify([process.pid, child.pid]));
      if (mode === 'worker-crash') setTimeout(() => process.exit(3), 100);
      await new Promise(() => {});
    },
  },
});