forgetrail 0.4.20 → 0.5.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.
- package/CONTINUATION_PROMPT.md +5 -5
- package/INITIAL_PROMPT.md +15 -15
- package/README.md +5 -5
- package/TRACKING_SCHEMA.md +16 -7
- package/TRY_FORGETRAIL.md +3 -3
- package/WORKFLOW.md +50 -45
- package/content/AGENT_INTEGRATION_claude.md +1 -1
- package/content/AGENT_INTEGRATION_cursor.md +3 -3
- package/content/AGENT_INTEGRATION_generic.md +5 -5
- package/content/AGENT_INTEGRATION_grok.md +8 -8
- package/content/COMPANION_TOOLS.md +1 -1
- package/content/FORGETRAIL_LITE.md +72 -68
- package/content/FORGETRAIL_PROGRESS.md +3 -3
- package/content/GENESIS_SPEC_PROMPT.md +1 -1
- package/content/GENESIS_STUB.md +1 -1
- package/content/GREENFIELD_INTAKE.md +6 -6
- package/content/KICKOFF_WITHOUT_MCP.md +1 -1
- package/content/NEW_PROJECT_BOOTSTRAP.md +27 -27
- package/content/PLAN_MODE_PATTERNS.md +4 -4
- package/content/POST_BOOTSTRAP_USER_MESSAGE.md +1 -1
- package/content/SESSION_RESUME_MCP.md +7 -7
- package/content/companion-tools.json +1 -1
- package/content/cursor-rules/forgetrail-phase-status.mdc +8 -9
- package/content/examples/two-session-continuity.md +31 -67
- package/content/forgetrail-workspace-README.md +2 -2
- package/content/hooks/README.md +3 -3
- package/content/hooks/session-start.mjs +58 -63
- package/content/hooks/session-stop.mjs +49 -30
- package/content/hooks/validate-tracking-core.mjs +34 -1
- package/content/scripts/forgetrail-dev-launcher.mjs +12 -2
- package/content/skills/forgetrail/SKILL.md +21 -21
- package/content/skills/forgetrail/SKILL_FACTS.md +2 -2
- package/docs/CONTEXT_PROMPT.md +1 -1
- package/docs/NPM.md +8 -8
- package/docs/PHASE_1_BRIEF.md +7 -7
- package/package.json +69 -70
- package/scripts/forgetrail-cli.mjs +1 -1
- package/scripts/install-lib.mjs +1 -0
- package/scripts/install.mjs +6 -23
- package/scripts/publish-gate.mjs +6 -4
- package/scripts/tracking-cutover.test.mjs +109 -0
- package/scripts/workspace-index.mjs +9 -1
|
@@ -23,7 +23,7 @@ Use plan mode for Phase 1 if available. Lock PHASE_1_BRIEF.md before scaffolding
|
|
|
23
23
|
|
|
24
24
|
**Resume:**
|
|
25
25
|
```
|
|
26
|
-
Call getResumeSessionInstructions. Read
|
|
26
|
+
Call getResumeSessionInstructions. Read appledger/profiles/forgetrail.yaml, the latest session record, and CONTEXT_PROMPT.md. Do not update workflow_tracking.json.
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
## Subagent patterns
|
|
@@ -41,8 +41,8 @@ Use `run_in_background` for long subagents when appropriate.
|
|
|
41
41
|
## Tracking sync
|
|
42
42
|
|
|
43
43
|
After subagent or feature work:
|
|
44
|
-
- Update
|
|
45
|
-
- Run **`validateTracking
|
|
44
|
+
- Update `appledger/` (criteria, decision records, lessons, the session). Do not write `workflow_tracking.json`.
|
|
45
|
+
- Run **`validateTracking`** only when a legacy tracking file is present. A missing file is expected.
|
|
46
46
|
- Update `CONTEXT_PROMPT.md` when architecture or patterns change.
|
|
47
47
|
|
|
48
48
|
## Skills alternative
|
|
@@ -6,7 +6,7 @@ Use this when no agent-specific guide is available. ForgeTrail is **agent-agnost
|
|
|
6
6
|
|
|
7
7
|
| Layer | Responsibility |
|
|
8
8
|
|-------|----------------|
|
|
9
|
-
| **ForgeTrail** | 7-phase lifecycle,
|
|
9
|
+
| **ForgeTrail** | 7-phase lifecycle, `appledger/`, progressive docs, audits, lessons |
|
|
10
10
|
| **Host agent** | Tool use, file edits, terminal, optional subagents/plan modes |
|
|
11
11
|
|
|
12
12
|
ForgeTrail owns **what** and **when**. The host agent owns **execution**.
|
|
@@ -15,14 +15,14 @@ ForgeTrail owns **what** and **when**. The host agent owns **execution**.
|
|
|
15
15
|
|
|
16
16
|
**New project:**
|
|
17
17
|
```
|
|
18
|
-
Call ForgeTrail getNewProjectKickoff, write
|
|
18
|
+
Call ForgeTrail getNewProjectKickoff, write appledger/, then getPhaseGuidance("1"). Do not write workflow_tracking.json.
|
|
19
19
|
Lock architecture in docs/PHASE_1_BRIEF.md before any app code.
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
**Resume:**
|
|
23
23
|
```
|
|
24
|
-
Call getResumeSessionInstructions. Read
|
|
25
|
-
Continue from
|
|
24
|
+
Call getResumeSessionInstructions. Read appledger/profiles/forgetrail.yaml, the latest session record, and CONTEXT_PROMPT.md.
|
|
25
|
+
Continue from the current phase. Do not update workflow_tracking.json.
|
|
26
26
|
```
|
|
27
27
|
|
|
28
28
|
## When the host supports subagents
|
|
@@ -35,7 +35,7 @@ Prefer **read-only** subagents for analysis; parent or a single write-capable wo
|
|
|
35
35
|
|
|
36
36
|
## When the host supports plan mode
|
|
37
37
|
|
|
38
|
-
Use native plan mode for **Phase 1** only. On approval, export to `PHASE_1_BRIEF.md`
|
|
38
|
+
Use native plan mode for **Phase 1** only. On approval, export to `PHASE_1_BRIEF.md` and decision records in `appledger/`. Do not write `workflow_tracking.json`. See **`getPlanModePatterns`**.
|
|
39
39
|
|
|
40
40
|
## Persistent discipline
|
|
41
41
|
|
|
@@ -6,25 +6,25 @@ Grok Build (the agentic TUI/CLI from xAI) has excellent native primitives that m
|
|
|
6
6
|
|
|
7
7
|
| Grok Primitive | ForgeTrail Phase(s) | How to Use |
|
|
8
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`
|
|
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` and decision records in `appledger/`. Do not write `workflow_tracking.json`. See `PLAN_MODE_PATTERNS.md`. |
|
|
10
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
|
|
11
|
+
| `todo_write` + TODO panel | All phases | Mirror open criteria and next actions from `appledger/profiles/forgetrail.yaml`. The ledger is the durable record. Do not write `workflow_tracking.json`. |
|
|
12
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
13
|
| Native MCP (search_tool + use_tool) | Methodology delivery | Register the ForgeTrail MCP server. Tools appear as `forgetrail__*`. Use `getNewProjectKickoff`, `getPhaseGuidance`, `getCompanionSuggestions`, `runAudit`, `searchLessons`, `validateTracking`, etc. |
|
|
14
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
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 |
|
|
16
|
+
| Sessions + memory + AGENTS.md | Cross-session continuity | `appledger/` plus `CONTEXT_PROMPT.md` are the ForgeTrail equivalents. Update the session record at session end. Do not write `workflow_tracking.json`. |
|
|
17
17
|
|
|
18
18
|
## Recommended Session Openers in Grok
|
|
19
19
|
|
|
20
20
|
For a new project:
|
|
21
21
|
```
|
|
22
|
-
Call ForgeTrail getNewProjectKickoff (includeCursorRule false), write
|
|
22
|
+
Call ForgeTrail getNewProjectKickoff (includeCursorRule false), write appledger/, then start Phase 1 using native /plan mode. Read the generated plan on approval and produce PHASE_1_BRIEF.md plus decision records. Do not write workflow_tracking.json.
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
For resuming:
|
|
26
26
|
```
|
|
27
|
-
Call ForgeTrail getResumeSessionInstructions. Read
|
|
27
|
+
Call ForgeTrail getResumeSessionInstructions. Read appledger/profiles/forgetrail.yaml, the latest session record, and CONTEXT_PROMPT.md. Continue from the current phase. Do not update workflow_tracking.json.
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
## Subagent Patterns (Grok-specific)
|
|
@@ -42,11 +42,11 @@ Main thread: synthesize results into BLACK_HAT_REPORT.md + CODE_QUALITY.md, upda
|
|
|
42
42
|
|
|
43
43
|
Use `background: true` for long-running subagents and retrieve with `get_command_or_subagent_output`.
|
|
44
44
|
|
|
45
|
-
##
|
|
45
|
+
## Ledger sync
|
|
46
46
|
|
|
47
47
|
After meaningful work (especially subagent results or feature completion):
|
|
48
|
-
- Update
|
|
49
|
-
- Use `todo_write` to surface the next 3–5 open items from the
|
|
48
|
+
- Update `appledger/` (criteria, decision records, lessons, the session). Do not write `workflow_tracking.json`.
|
|
49
|
+
- Use `todo_write` to surface the next 3–5 open items from the profile.
|
|
50
50
|
- Update `CONTEXT_PROMPT.md` when patterns or architecture change.
|
|
51
51
|
|
|
52
52
|
## Skills Usage
|
|
@@ -4,7 +4,7 @@ ForgeTrail owns phases, tracking, and progressive docs. **Companions** do one bo
|
|
|
4
4
|
|
|
5
5
|
Public shelf (current versions and install): [catalystforge.com/tools](https://catalystforge.com/tools/).
|
|
6
6
|
|
|
7
|
-
**Agents:** call **`getCompanionSuggestions`** with a `phase` (`1`–`7`) or a `situation` id when a trigger below is true. `getPhaseGuidance` also appends a short optional-companions footer. Offer one sentence plus the homepage. Do **not** install unless the user asked. Do **not** name this file, MCP tools, or spec paths in the human-facing offer. After a run that matters, persist the outcome
|
|
7
|
+
**Agents:** call **`getCompanionSuggestions`** with a `phase` (`1`–`7`) or a `situation` id when a trigger below is true. `getPhaseGuidance` also appends a short optional-companions footer. Offer one sentence plus the homepage. Do **not** install unless the user asked. Do **not** name this file, MCP tools, or spec paths in the human-facing offer. After a run that matters, persist the outcome on the appledger session as `data.companion_outcomes` and in the matching progressive doc. Do not write `workflow_tracking.json`.
|
|
8
8
|
|
|
9
9
|
**Humans:** skip this file unless you already want a neighbor for a specific job.
|
|
10
10
|
|