01 · Prepare
Prerequisites
Ensure your local environment has the required runtime and package manager before running the scaffolder.
- Node.js 20+
Required to execute the CLI bundle and support modern ECMAScript standard modules.
- pnpm 8+
Required for fast, disk-efficient dependency caching and workspace linking.
02 · Create
Quick start
Open a terminal in the directory that should contain the project, then run the current published release.
pnpm dlx @markromolecule/octo@latestReady to copy.
03 · Decide
Prompt walkthrough
The guided configuration flow prompts you for the precise options that shape your project's features and templates.
Name the project
Choose its directory and package identity.
Choose the shape
Select Monorepo or one framework-native application.
Pick frameworks
Choose the web and API tools that fit the project.
Deliver context
Use the bundled snapshot or a Git-backed factory.
04 · Choose a shape
Generated modes
Octo supports two distinct template architectures depending on whether your project requires shared workspace modules.
Monorepo
WorkspaceA pnpm and Turborepo workspace with web, API, database, UI, and shared packages wired together.
Products with multiple applications or shared packages.
apps/web with React + Vite, Next.js, or Astroapps/api with Hono or Expresspackages/db with Prisma, prisma-kysely, and Kyselypackages/ui, hooks, services, shared, tsconfig, and eslint-configpnpm-workspace.yaml and turbo.json
Standard
Single AppA focused, framework-native application without workspace files or monorepo directories.
Single applications that should keep their framework’s familiar shape.
Official Vite, Next.js, or Astro project structureConventional TypeScript starter for Hono or ExpressNo pnpm workspace or Turborepo configurationThe same context-factory and project infrastructure baseline
05 · Deliver context
Context delivery
Choose how project guidance is copied now and refreshed later.
| Method | What it does | Refresh |
|---|---|---|
| Bundled Snapshot | Copies the context-factory packaged with Octo. It is the fastest, most reproducible default. | No Git or network dependency during generation. |
| Git Submodule | Adds context-factory as a submodule and provides a context:pull path for upstream updates. | Requires access to the selected Git repository. |
| Direct Clone | Clones a standalone copy and removes its nested Git metadata for independent ownership. | Requires Git during setup; later refreshes replace the standalone copy rather than pulling it. |
06 · Configure
CLI configuration
Point Git-backed modes at a repository your team owns.
pnpm dlx @markromolecule/octo@latest \
--context-repo https://github.com/your-org/context-factory.gitFor repeated runs, configure the repository in your shell:
export CONTEXT_FACTORY_REPO=https://github.com/your-org/context-factory.git
pnpm dlx @markromolecule/octo@latestPrecedence:--context-repo overrides CONTEXT_FACTORY_REPO.
07 · Optional
Global install
If you create projects frequently, install the executable once and use the shorter octo command.
pnpm add --global @markromolecule/octoReady to copy.
octo --version
octo08 · Verify
After generation
Enter the project, install if needed, and validate its bundled context before changing features.
cd your-project
pnpm install
pnpm context:validateRead the generated agent entry point first. It routes tools into the context-factory without duplicating its rules.