forgetrail 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/CONTINUATION_PROMPT.md +42 -0
  2. package/INITIAL_PROMPT.md +214 -0
  3. package/LICENSE +201 -0
  4. package/README.md +198 -0
  5. package/TRACKING_SCHEMA.md +162 -0
  6. package/TRY_FORGETRAIL.md +78 -0
  7. package/WORKFLOW.md +921 -0
  8. package/content/AGENT_INTEGRATION_claude.md +38 -0
  9. package/content/AGENT_INTEGRATION_cursor.md +53 -0
  10. package/content/AGENT_INTEGRATION_generic.md +50 -0
  11. package/content/AGENT_INTEGRATION_grok.md +82 -0
  12. package/content/DEV_AUTOMATION_SCRIPTS.md +103 -0
  13. package/content/FORGETRAIL_LITE.md +1202 -0
  14. package/content/FORGETRAIL_LITE_UPDATES.md +13 -0
  15. package/content/FORGETRAIL_PROGRESS.md +26 -0
  16. package/content/GENESIS_SPEC_PROMPT.md +70 -0
  17. package/content/GENESIS_STUB.md +18 -0
  18. package/content/GREENFIELD_INTAKE.md +76 -0
  19. package/content/KICKOFF_WITHOUT_MCP.md +16 -0
  20. package/content/LITE_WORKFLOW_TRACKING.json +42 -0
  21. package/content/NEW_PROJECT_BOOTSTRAP.md +180 -0
  22. package/content/ONE_CLICK_DEV_SETUP.md +142 -0
  23. package/content/PLAN_MODE_PATTERNS.md +43 -0
  24. package/content/POCKETBASE_SCHEMA_SCRIPT.md +52 -0
  25. package/content/POST_BOOTSTRAP_USER_MESSAGE.md +51 -0
  26. package/content/SCAFFOLD_INSTALL.json +110 -0
  27. package/content/SESSION_RESUME_MCP.md +35 -0
  28. package/content/SYSTEM_HEALTH_CHECKS.md +131 -0
  29. package/content/USER_REPLY_FORMAT.md +41 -0
  30. package/content/cursor-rules/forgetrail-lessons-gate.mdc +30 -0
  31. package/content/cursor-rules/forgetrail-lessons-mcp.mdc +24 -0
  32. package/content/cursor-rules/forgetrail-no-trailer.mdc +49 -0
  33. package/content/cursor-rules/forgetrail-phase-status.mdc +61 -0
  34. package/content/cursor-rules/forgetrail-updates-log.mdc +30 -0
  35. package/content/cursor-rules/spec-completion.mdc +33 -0
  36. package/content/cursor-rules/specs-and-todo.mdc +26 -0
  37. package/content/cursor-rules/url-host-matching.mdc +31 -0
  38. package/content/cursor-rules/us-english.mdc +9 -0
  39. package/content/cursor-rules/user-facing-content.mdc +31 -0
  40. package/content/examples/GENESIS_SAMPLE_mars-habitat-roster.md +154 -0
  41. package/content/forgetrail-workspace-README.md +43 -0
  42. package/content/scripts/forgetrail-dev-launcher.mjs +208 -0
  43. package/content/scripts/forgetrail-env.mjs +51 -0
  44. package/content/scripts/setup-ollama.mjs +207 -0
  45. package/content/scripts/setup-pocketbase.mjs +133 -0
  46. package/content/scripts/test-ollama.mjs +71 -0
  47. package/content/scripts/test-pocketbase.mjs +110 -0
  48. package/content/skills/forgetrail/SKILL.md +92 -0
  49. package/docs/AUTOMATED_TESTING.md +269 -0
  50. package/docs/BLACK_HAT_REPORT.md +143 -0
  51. package/docs/BRAND_AND_PRODUCT.md +381 -0
  52. package/docs/BUGS.md +62 -0
  53. package/docs/BUSINESS_PLAN.md +256 -0
  54. package/docs/CODE_QUALITY.md +170 -0
  55. package/docs/CONTEXT_PROMPT.md +357 -0
  56. package/docs/DEPLOYMENT.md +181 -0
  57. package/docs/DESIGN_SYSTEM.md +414 -0
  58. package/docs/DEV_ESTIMATE.md +127 -0
  59. package/docs/FORGETRAIL_RENAME.md +193 -0
  60. package/docs/IDEAS.md +19 -0
  61. package/docs/MARKETING_GROWTH.md +301 -0
  62. package/docs/NAMING_EXPLORATION.md +406 -0
  63. package/docs/NPM.md +98 -0
  64. package/docs/PHASE_1_BRIEF.md +161 -0
  65. package/docs/README.md +75 -0
  66. package/docs/SPEC_FEATURE_TEMPLATE.md +155 -0
  67. package/docs/SPEC_UI_CHROME_NAV_TEMPLATE.md +48 -0
  68. package/docs/TECHNICAL_REFERENCE.md +836 -0
  69. package/docs/TEST_PLAN.md +467 -0
  70. package/docs/TODO.md +125 -0
  71. package/package.json +68 -0
  72. package/prompts/black-hat-audit.md +235 -0
  73. package/prompts/brand-copy-edit-pass.md +55 -0
  74. package/prompts/cialdini-marketing-audit.md +141 -0
  75. package/prompts/competitor-deep-dive.md +201 -0
  76. package/prompts/docs-alignment-audit.md +108 -0
  77. package/prompts/engineering-skill-library.md +75 -0
  78. package/prompts/landing-page-rewrite.md +63 -0
  79. package/prompts/microcopy-centralization.md +128 -0
  80. package/prompts/panel-usability-audit.md +197 -0
  81. package/prompts/personal-beta-outreach.md +195 -0
  82. package/prompts/pre-launch-audit.md +148 -0
  83. package/prompts/product-feedback-to-spec.md +76 -0
  84. package/prompts/propagate-to-forgetrail.md +315 -0
  85. package/prompts/user-facing-content-sync-audit.md +200 -0
  86. package/prompts/ux-cohesion-audit.md +165 -0
  87. package/scripts/ensure-lease.mjs +23 -0
  88. package/scripts/forgetrail-cli.mjs +85 -0
  89. package/scripts/install-forgetrail-lite.mjs +11 -0
  90. package/scripts/install-forgetrail.mjs +11 -0
  91. package/scripts/install-lib.mjs +115 -0
  92. package/scripts/install.mjs +163 -0
  93. package/scripts/link-global.mjs +100 -0
  94. package/scripts/mcp-lib.mjs +177 -0
  95. package/scripts/mcp-status.mjs +155 -0
  96. package/scripts/publish-gate.mjs +110 -0
  97. package/scripts/rename-to-forgetrail.mjs +273 -0
  98. package/workflow_tracking.json +124 -0
@@ -0,0 +1,38 @@
1
+ # ForgeTrail Integration Guide for Claude Code / Claude agents
2
+
3
+ Claude-based coding agents integrate with ForgeTrail through MCP, extended planning discipline, and optional parallel workers (where the host exposes them).
4
+
5
+ ## Primitives → ForgeTrail
6
+
7
+ | Capability | ForgeTrail use |
8
+ |------------|--------------|
9
+ | ForgeTrail MCP | `getNewProjectKickoff`, `getPhaseGuidance`, `runAudit`, `searchLessons`, `validateTracking` |
10
+ | Extended planning / "plan before code" | Phase 1 — produce a reviewable plan artifact; lock `PHASE_1_BRIEF.md` before scaffolding (`getPlanModePatterns`) |
11
+ | gstack slash commands (optional) | Sprint execution inside phases — see WORKFLOW §1b; persist outcomes in tracking |
12
+ | Subagents / agent teams (when available) | Parallel audits and research — `suggestSubagentDecomposition` |
13
+ | Project `CLAUDE.md` / `AGENTS.md` | Trailer-ban + methodology pointers from kickoff `.forgetrail/` copies |
14
+
15
+ ## Session openers
16
+
17
+ **New project:**
18
+ ```
19
+ Call ForgeTrail getNewProjectKickoff, write .forgetrail/workflow_tracking.json, getGreenfieldIntakePrompt, getPhaseGuidance("1").
20
+ No app code until PHASE_1_BRIEF.md is locked.
21
+ ```
22
+
23
+ **Resume:**
24
+ ```
25
+ getResumeSessionInstructions → read tracking + CONTEXT_PROMPT → continue current phase.
26
+ ```
27
+
28
+ ## gstack + ForgeTrail
29
+
30
+ If [gstack](https://github.com/garrytan/gstack) is installed, use WORKFLOW §1b: gstack for inner-loop build/review/QA/ship; ForgeTrail for phase state and durable docs. After every gstack sprint, update tracking.
31
+
32
+ ## Subagents
33
+
34
+ Call **`suggestSubagentDecomposition`** before spawning workers. Phase 7: parallel security, UX, and code-quality analysis; parent writes audit docs. Phase 4: parallel research subagents; parent picks approach and implements.
35
+
36
+ ## Tracking
37
+
38
+ Run **`validateTracking`** after sessions. Log decisions with rationale in Phase 1 for cold-start Phase 2.
@@ -0,0 +1,53 @@
1
+ # ForgeTrail Integration Guide for Cursor
2
+
3
+ Cursor agents (Composer, Agent mode) map well to ForgeTrail via MCP, **Cursor rules**, optional **subagents** (Task tool), and **Plan mode**.
4
+
5
+ ## Primitives → ForgeTrail
6
+
7
+ | Cursor capability | ForgeTrail use |
8
+ |-------------------|--------------|
9
+ | ForgeTrail MCP tools | Methodology delivery — `getNewProjectKickoff`, `getPhaseGuidance`, `runAudit`, `validateTracking`, etc. |
10
+ | `.cursor/rules/*.mdc` | Persistent phase + lessons discipline from kickoff (`forgetrail-phase-status`, `forgetrail-lessons-gate`, `forgetrail-lessons-mcp`) |
11
+ | Plan mode (`SwitchMode` / plan) | Phase 1 architecture — explore before edits; export to `PHASE_1_BRIEF.md` on approval (`getPlanModePatterns`) |
12
+ | Task / subagents (`explore`, `generalPurpose`, `shell`) | Parallel audits (Phase 7), research (Phase 4), spikes (Phase 5) — call `suggestSubagentDecomposition` first |
13
+ | TodoWrite | Mirror open exit criteria from tracking (visible next actions) |
14
+
15
+ ## Recommended session openers
16
+
17
+ **New project:**
18
+ ```
19
+ Call ForgeTrail getNewProjectKickoff (includeCursorRule true), write .forgetrail/ and .cursor/rules/, then getPhaseGuidance("1").
20
+ Use plan mode for Phase 1 if available. Lock PHASE_1_BRIEF.md before scaffolding.
21
+ ```
22
+
23
+ **Resume:**
24
+ ```
25
+ Call getResumeSessionInstructions. Read .forgetrail/workflow_tracking.json and CONTEXT_PROMPT.md.
26
+ ```
27
+
28
+ ## Subagent patterns
29
+
30
+ **Phase 7 example:**
31
+ ```
32
+ Call suggestSubagentDecomposition for phase 7 and task "black-hat, UX cohesion, code quality audits".
33
+
34
+ Launch parallel explore subagents (readonly) for each audit type using runAudit + searchLessons.
35
+ Parent synthesizes BLACK_HAT_REPORT.md and CODE_QUALITY.md, updates tracking gotchas/decisions.
36
+ ```
37
+
38
+ Use `run_in_background` for long subagents when appropriate.
39
+
40
+ ## Tracking sync
41
+
42
+ After subagent or feature work:
43
+ - Update `.forgetrail/workflow_tracking.json` (exit criteria, decisions, gotchas, sessions).
44
+ - Run **`validateTracking`**.
45
+ - Update `CONTEXT_PROMPT.md` when architecture or patterns change.
46
+
47
+ ## Skills alternative
48
+
49
+ Cursor users typically rely on **rules** from kickoff rather than Grok-style skills. Optional: add **`getForgeTrailSkill`** content as a global Cursor skill if your workflow supports it.
50
+
51
+ ## MCP setup
52
+
53
+ Register the ForgeTrail MCP server in Cursor settings with `FORGETRAIL_ROOT` pointing at the ForgeTrail repo. Reconnect after server updates so new tools appear.
@@ -0,0 +1,50 @@
1
+ # ForgeTrail Integration Guide (generic agents)
2
+
3
+ Use this when no agent-specific guide is available. ForgeTrail is **agent-agnostic** — the lifecycle, tracking file, and MCP tools work with any capable coding agent.
4
+
5
+ ## Core integration model
6
+
7
+ | Layer | Responsibility |
8
+ |-------|----------------|
9
+ | **ForgeTrail** | 7-phase lifecycle, `.forgetrail/workflow_tracking.json`, progressive docs, audits, lessons |
10
+ | **Host agent** | Tool use, file edits, terminal, optional subagents/plan modes |
11
+
12
+ ForgeTrail owns **what** and **when**. The host agent owns **execution**.
13
+
14
+ ## Session openers
15
+
16
+ **New project:**
17
+ ```
18
+ Call ForgeTrail getNewProjectKickoff, write .forgetrail/workflow_tracking.json, then getPhaseGuidance("1").
19
+ Lock architecture in docs/PHASE_1_BRIEF.md before any app code.
20
+ ```
21
+
22
+ **Resume:**
23
+ ```
24
+ Call getResumeSessionInstructions. Read .forgetrail/workflow_tracking.json and CONTEXT_PROMPT.md.
25
+ Continue from currentPhase.
26
+ ```
27
+
28
+ ## When the host supports subagents
29
+
30
+ 1. Call **`suggestSubagentDecomposition`** with phase + task.
31
+ 2. Spawn parallel workers for audits (Phase 7), research (Phase 4), or spikes (Phase 5).
32
+ 3. Parent synthesizes into ForgeTrail docs and updates tracking.
33
+
34
+ Prefer **read-only** subagents for analysis; parent or a single write-capable worker for implementation.
35
+
36
+ ## When the host supports plan mode
37
+
38
+ Use native plan mode for **Phase 1** only. On approval, export to `PHASE_1_BRIEF.md` + `decisions[]`. See **`getPlanModePatterns`**.
39
+
40
+ ## Persistent discipline
41
+
42
+ - Install **`.cursor/rules/`** from kickoff (Cursor), or copy **`getForgeTrailSkill`** output to your agent's skill directory (Grok, etc.).
43
+ - Call **`validateTracking`** after substantive work.
44
+ - Call **`getAntiPatterns`** + **`searchLessons`** before large feature work.
45
+
46
+ ## MCP registration
47
+
48
+ Point `FORGETRAIL_ROOT` at the ForgeTrail repo root. Run `mcp-server/dist/index.js` via stdio. Tools include `getPhaseGuidance`, `getTemplate`, `runAudit`, `validateTracking`, `suggestSubagentDecomposition`, and `getAgentIntegrationGuide`.
49
+
50
+ Call **`getAgentIntegrationGuide({ agent: "grok" })`** (or `cursor`, `claude`) when using a supported host for tailored syntax.
@@ -0,0 +1,82 @@
1
+ # ForgeTrail Integration Guide for Grok Build
2
+
3
+ Grok Build (the agentic TUI/CLI from xAI) has excellent native primitives that map extremely well to ForgeTrail. Treat ForgeTrail as the **lifecycle + persistent memory layer** and Grok primitives as the **execution engine**.
4
+
5
+ ## Key Grok Primitives and ForgeTrail Mapping
6
+
7
+ | Grok Primitive | ForgeTrail Phase(s) | How to Use |
8
+ |-----------------------------|----------------------------|------------|
9
+ | `/plan` + enter/exit_plan_mode + plan.md | Phase 1 (Architecture) | Use native plan mode for all Phase 1 work. On approval, export to `PHASE_1_BRIEF.md` + `decisions[]`. See `PLAN_MODE_PATTERNS.md`. |
10
+ | `spawn_subagent` (explore/plan/general, capability_mode, isolation: worktree, background, resume_from, personas) | All phases, especially 4, 5, 7 | Use for parallel audits (black-hat, UX, code quality), research, stabilize debugging, and exploratory spikes. Call `suggestSubagentDecomposition` first. Prefer read-only for analysis subagents. |
11
+ | `todo_write` + TODO panel | All phases | Mirror open exit criteria and next actions from `.forgetrail/workflow_tracking.json`. Use as the visible "what's next" while tracking.json is the durable record. |
12
+ | Skills (`/create-skill`, SKILL.md) | All sessions | Install the `forgetrail` skill (see `SKILL.md` in content/skills/forgetrail). It keeps phase discipline, tracking rules, and subagent patterns always active. |
13
+ | Native MCP (search_tool + use_tool) | Methodology delivery | Register the ForgeTrail MCP server. Tools appear as `forgetrail__*`. Use `getNewProjectKickoff`, `getPhaseGuidance`, `runAudit`, `searchLessons`, `validateTracking`, etc. |
14
+ | Headless (`grok -p ... --output-format json`) | Automation / CI | Call kickoff/resume tools and have the agent produce structured phase state. Add exit-criteria validation in pipelines. |
15
+ | `docx` / `pptx` / `xlsx` skills + image/video gen | Phase 1 intake, Phase 6/7 deliverables | Use for exports (PDF/DOCX/PPTX), landing pages, brand assets, and marketing materials called out in greenfield intake. |
16
+ | Sessions + memory + AGENTS.md | Cross-session continuity | `.forgetrail/workflow_tracking.json` + `CONTEXT_PROMPT.md` are the ForgeTrail equivalents. Update them at session end. |
17
+
18
+ ## Recommended Session Openers in Grok
19
+
20
+ For a new project:
21
+ ```
22
+ Call ForgeTrail getNewProjectKickoff (includeCursorRule false), write the tracking file, then start Phase 1 using native /plan mode. Read the generated plan on approval and produce PHASE_1_BRIEF.md + decisions.
23
+ ```
24
+
25
+ For resuming:
26
+ ```
27
+ Call ForgeTrail getResumeSessionInstructions. Read .forgetrail/workflow_tracking.json and CONTEXT_PROMPT.md. Continue from current phase.
28
+ ```
29
+
30
+ ## Subagent Patterns (Grok-specific)
31
+
32
+ Example for Phase 7 Hardening:
33
+ ```
34
+ Use suggestSubagentDecomposition for "black-hat security audit, UX cohesion review, and code quality audit of the current codebase".
35
+
36
+ Then spawn three subagents in parallel:
37
+ 1. subagent_type: "explore", capability_mode: "read-only", persona: security-auditor, prompt: "Run the black-hat audit prompt from runAudit and searchLessons for security issues."
38
+ 2. Similar for ux-cohesion and code-quality.
39
+
40
+ Main thread: synthesize results into BLACK_HAT_REPORT.md + CODE_QUALITY.md, update tracking gotchas/decisions, and present prioritized TODO items to user.
41
+ ```
42
+
43
+ Use `background: true` for long-running subagents and retrieve with `get_command_or_subagent_output`.
44
+
45
+ ## Tracking Sync
46
+
47
+ After meaningful work (especially subagent results or feature completion):
48
+ - Update `.forgetrail/workflow_tracking.json` (exit criteria, decisions, gotchas, sessions).
49
+ - Use `todo_write` to surface the next 3–5 open items from the tracking file.
50
+ - Update `CONTEXT_PROMPT.md` when patterns or architecture change.
51
+
52
+ ## Skills Usage
53
+
54
+ Install the forgetrail skill (copy from content/skills/forgetrail/SKILL.md to ~/.grok/skills/forgetrail/SKILL.md).
55
+
56
+ Then simply say things like:
57
+ - "/forgetrail kickoff new project"
58
+ - "Use forgetrail discipline for this feature"
59
+
60
+ The skill will remind you of phases, tracking, subagents, etc.
61
+
62
+ ## Headless / Automation Tips
63
+
64
+ ```bash
65
+ grok -p "Call ForgeTrail getNewProjectKickoff and set up the project per the bundle. Then begin Phase 1." --output-format json --always-approve
66
+ ```
67
+
68
+ Parse the JSON and continue sessions with `--resume` or named `--session-id`.
69
+
70
+ ## Dogfooding ForgeTrail on ForgeTrail
71
+
72
+ Use this very repo as a test case. Run a full cycle or slices with Grok Build + the local MCP server registered. Capture results back into `specs/canonical/forgetrail-modern-agents-evolution.md`.
73
+
74
+ ## Registration (local dev)
75
+
76
+ ```bash
77
+ grok mcp add forgetrail -- node "Z:\workspace\forgetrail\mcp-server\dist\index.js" --env FORGETRAIL_ROOT="Z:\workspace\forgetrail"
78
+ ```
79
+
80
+ Or via `~/.grok/config.toml` under `[mcp_servers.forgetrail]`.
81
+
82
+ After registration, tools are discoverable via the normal MCP search/use flow in Grok.
@@ -0,0 +1,103 @@
1
+ # Dev automation scripts (app repo)
2
+
3
+ Use **small `pnpm` scripts** (backed by files under `scripts/` when needed) so new contributors and future you don’t rely on memory, long READMEs, or dozens of IDE clicks. Prefer **idempotent** commands (safe to run twice).
4
+
5
+ This guide lists **strong defaults** for a typical full-stack app. Names are examples—align with your stack.
6
+
7
+ ---
8
+
9
+ ## 1. Env readiness — `pnpm run env:check` (or `doctor`)
10
+
11
+ **Problem:** “App won’t start” because a variable is missing or misnamed.
12
+
13
+ **Script:** Read required keys from a single source of truth (e.g. list in `scripts/check-env.ts`, or parse `.env.example` for keys without default values). Exit **non-zero** if something required is missing. **Do not** print secret values—only names of missing vars.
14
+
15
+ **User flow:** Copy `.env.example` → `.env`, fill secrets, run `pnpm run env:check` before `pnpm run dev`.
16
+
17
+ ---
18
+
19
+ ## 2. Generated types / API client — `pnpm run gen:types`
20
+
21
+ **Problem:** Hand-written types drift from PocketBase collections, OpenAPI, or GraphQL.
22
+
23
+ **Script:** Regenerate TypeScript types (or a thin client) from the real schema: PocketBase export, `openapi-typescript`, codegen, etc. Commit generated files or gitignore + CI generate—pick one policy and document it in **`README.md`**.
24
+
25
+ **User flow:** After schema changes, run `pnpm run gen:types` (and commit if applicable).
26
+
27
+ ---
28
+
29
+ ## 3. Seed / fixture data — `pnpm run db:seed`
30
+
31
+ **Problem:** Empty DB makes every demo “first create records by hand in the admin UI.”
32
+
33
+ **Script:** Idempotent seed using the **same auth path** the app uses (user token) or admin API for dev only. Guard with `NODE_ENV=development` or an explicit `--force` so production never runs it by accident.
34
+
35
+ **User flow:** After migrations/schema apply, `pnpm run db:seed` for local demo data.
36
+
37
+ ---
38
+
39
+ ## 4. End-to-end test browsers — `pnpm run test:e2e:install` (or postinstall)
40
+
41
+ **Problem:** First `pnpm run test:e2e` fails with “install Playwright browsers.”
42
+
43
+ **Script:** `pnpm exec playwright install` (or `playwright install --with-deps` on CI). Optionally wire **`pnpm run test:e2e`** to depend on install, or document **`pnpm run test:e2e:install`** once per machine.
44
+
45
+ **User flow:** One command after clone or when Playwright upgrades.
46
+
47
+ ---
48
+
49
+ ## 5. Git hooks (lint/format on commit) — `pnpm prepare` + Husky (or similar)
50
+
51
+ **Problem:** CI catches style issues late; contributors forget to run lint.
52
+
53
+ **Script:** `pnpm prepare` runs `husky` install; `.husky/pre-commit` runs `lint-staged` or `pnpm run lint`. Keep it **fast** so people don’t `--no-verify` habitually.
54
+
55
+ **User flow:** `pnpm install` once; hooks activate automatically.
56
+
57
+ ---
58
+
59
+ ## PocketBase-specific (already separate)
60
+
61
+ Collection/schema apply from **`.env` admin credentials** is covered in **`POCKETBASE_SCHEMA_SCRIPT.md`** — combine with the above: bootstrap binary → schema script → env check → dev.
62
+
63
+ **Isolated check:** `pnpm run test:pocketbase` or **test-pocketbase.bat** — see **`SYSTEM_HEALTH_CHECKS.md`**.
64
+
65
+ ---
66
+
67
+ ## Ollama (local LLM — runtime or build-time seed)
68
+
69
+ When the brief uses **runtime LLM API** or **build-time LLM generation** with Ollama (see **FORGETRAIL_LITE** §7.1, README “LLM-backed content”):
70
+
71
+ | Script | Purpose |
72
+ |--------|---------|
73
+ | `pnpm run setup:ollama` | Install Ollama if missing, detect VRAM, pull Granite 4.1 / Gemma 3 (non-thinking default) |
74
+ | `pnpm run test:ollama` | Version + one completion — proves inference works |
75
+
76
+ **`.env`:** `OLLAMA_BASE_URL`, `OLLAMA_MODEL`. Use **`OLLAMA_USE_THINKING=1`** only when the product needs reasoning models. See **FORGETRAIL_LITE.md** §4.8.
77
+
78
+ ---
79
+
80
+ ## 0. One-click launchers (non-technical operators)
81
+
82
+ Before the terminal-heavy block below, agents should create **setup.bat** / **setup.sh**, **run.bat** / **run.sh**, **status.bat** / **status.sh** per **`ONE_CLICK_DEV_SETUP.md`** and **FORGETRAIL_LITE.md** §4.5–§4.6.
83
+
84
+ **README “Quick start (no terminal)”** — three double-clicks: setup → run → status.
85
+
86
+ ---
87
+
88
+ ## README pattern (terminal / agents)
89
+
90
+ Document a **single “first time” block** for contributors who prefer the shell:
91
+
92
+ 1. `cp .env.example .env` and fill values
93
+ 2. `pnpm install`
94
+ 3. `pnpm run setup:pocketbase` (or double-click **setup.bat** — resolves **latest** PocketBase unless `POCKETBASE_VERSION` is pinned)
95
+ 4. `pnpm run pocketbase:schema` (if applicable)
96
+ 5. `pnpm run env:check`
97
+ 6. `pnpm run db:seed` (optional)
98
+ 7. `pnpm run dev` (or **run.bat**)
99
+ 8. `pnpm run forgetrail:status` — phase progress
100
+ 9. `pnpm run test:pocketbase` — PocketBase only (troubleshooting)
101
+ 10. `pnpm run setup:ollama` → `pnpm run test:ollama` — when local LLM is in scope
102
+
103
+ Adjust order to match your stack; link to **`ONE_CLICK_DEV_SETUP.md`**, **`SYSTEM_HEALTH_CHECKS.md`**, **`POCKETBASE_SCHEMA_SCRIPT.md`**, and **`FORGETRAIL_LITE.md`** §4.2.2–§4.8 from **`CONTEXT_PROMPT.md`** so agents don’t invent one-off instructions or hardcode old PocketBase versions.