MCPcopy Create free account
hub / github.com/Facets-cloud/flow / buildBootstrapPrompt

Function buildBootstrapPrompt

internal/app/do.go:819–821  ·  view source on GitHub ↗

buildBootstrapPrompt is a backwards-compat shim for old callers that pass only a slug. Now points at the regular-task variant. Tests still call this to verify the regular variant.

(slug string)

Source from the content-addressed store, hash-verified

817// Adds an explicit `flow show playbook <slug>` context-load step and
818// frames the run's brief as an authoritative snapshot — the session
819// must execute against that snapshot, not re-read the live playbook
820// brief (which may drift between runs).
821func buildPlaybookRunBootstrapPrompt(runSlug, playbookSlug string, isFirstRun bool) string {
822 base := fmt.Sprintf(
823 "You are running playbook `%s` as run `%s`. Do ALL of the following in order before executing anything:\n"+
824 "1. Invoke the flow skill via the Skill tool. This loads the operating manual that governs how this session works.\n"+

Calls 1

buildTaskBootstrapPromptFunction · 0.85