Flow

cbf3c3d6-6e47-408f-a84d-dd3c6e5982d7

ID

aborted

Status

Cost

Tokens

google/gemini-3.1-flash-lite-preview

Model

implement

Job

sc-taskify-create-task

Scenario

Error

failed to append instructions: failed to inject session state into instruction: failed to get key "GITHUB_TOKEN" from state: state key does not exist

taskify-api
implement/sc-taskify-create-task

Transcript 1 message

user

Implement scenario sc-taskify-create-task. Your working directory is /workspace. Branch implement/sc-taskify-create-task is already checked out. GITHUB_TOKEN, FLOW_TOKEN, FLOW_SERVER_URL, FLOW_GITHUB_OWNER, FLOW_GITHUB_REPO, FLOW_PLAN_BRANCH_NAME are injected as env vars. Use workspace tools to implement. Use git and gh directly (GITHUB_TOKEN is set). Do NOT use flow git-proxy. Do NOT call trigger_agent, spawn_agents, or list_available_agents. Before pushing, set git auth: git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${FLOW_GITHUB_OWNER}/${FLOW_GITHUB_REPO}. Then push with git push --force-with-lease origin implement/sc-taskify-create-task and open a PR with gh pr create --title "implement: sc-taskify-create-task" --body "Implements sc-taskify-create-task" --base main --head implement/sc-taskify-create-task (if the PR already exists, skip the pr create step).

Session context (do not rediscover — use these values directly)

  • Scenario key: sc-taskify-create-task
  • Implement branch: implement/sc-taskify-create-task (already checked out — do NOT run git checkout)
  • Plan branch: plan/main (FLOW_PLAN_BRANCH_NAME is already set in env)
  • GitHub repo: https://github.com/emergent-company/taskify-api
  • FLOW_TOKEN: flt_0fa3f97d166559bd9160cc4aa95160842441c5b1

Scenario graph: sc-taskify-create-task

[Scenario] sc-taskify-create-task
-[has]-> [ScenarioStep] step-taskify-create-task-request "Client posts a JSON body to POST /tasks and receives the created task"
-[acted_by]-> [Actor] actor-user "User" [not_existing]
-[belongs_to]-> [Domain] domain-task "Task" [not_existing]
-[occurs_in]-> [Context] ctx-taskify-create-task "POST /tasks endpoint"
-[requires]-> [APIEndpoint] ep-taskify-create-task (file=handler/tasks.go, handler=HandleCreateTask, method=POST, path=/tasks)
-[calls]-> [ServiceMethod] svc-taskify-create "CreateTask" (file=service/tasks.go)
-[uses]-> [SQLQuery] sq-insert-task "InsertTask" (file=db/queries/tasks.sql)

Follow these instructions:

Memory sandbox implementation rules

Environment

Branch already checked out at /workspace. Tools: workspace_bash, workspace_read, workspace_write, workspace_edit, workspace_glob, workspace_grep, workspace_git.

GITHUB_TOKEN, FLOW_TOKEN, FLOW_GITHUB_OWNER, FLOW_GITHUB_REPO are env vars.

CRITICAL: Do NOT call agent tools

Do NOT call list_available_agents, spawn_agents, trigger_agent, search-knowledge, skill, or skill-get.

Steps

  1. Read scenario from pre-injected graph in prompt.
  2. Write code files with workspace_write/workspace_edit.
  3. Set git auth: git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${FLOW_GITHUB_OWNER}/${FLOW_GITHUB_REPO}
  4. Commit: git add -A && git commit -m "implement: <key>"
  5. Push: git push --force-with-lease origin <branch>
  6. PR: gh pr create --title "implement: <key>" --body "Implements scenario <key>" --base main --head <branch> — skip if exists.
  7. Stop.

Follow these instructions:


name: caveman
description: >
Ultra-compressed communication mode. Cuts token usage ~75% by speaking like caveman
while keeping full technical accuracy. Supports intensity levels: lite, full (default), ultra,
wenyan-lite, wenyan-full, wenyan-ultra.
Use when user says "caveman mode", "talk like caveman", "use caveman", "less tokens",
"be brief", or invokes /caveman. Also auto-triggers when token efficiency is requested.

Respond terse like smart caveman. All technical substance stay. Only fluff die.

Persistence

ACTIVE EVERY RESPONSE. No revert after many turns. No filler drift. Still active if unsure. Off only: "stop caveman" / "normal mode".

Default: full. Switch: /caveman lite|full|ultra.

Rules

Drop: articles (a/an/the), filler (just/really/basically/actually/simply), pleasantries (sure/certainly/of course/happy to), hedging. Fragments OK. Short synonyms (big not extensive, fix not "implement a solution for"). Technical terms exact. Code blocks unchanged. Errors quoted exact.

Pattern: [thing] [action] [reason]. [next step].

Not: "Sure! I'd be happy to help you with that. The issue you're experiencing is likely caused by..."
Yes: "Bug in auth middleware. Token expiry check use < not <=. Fix:"

Intensity

Level What change
lite No filler/hedging. Keep articles + full sentences. Professional but tight
full Drop articles, fragments OK, short synonyms. Classic caveman
ultra Abbreviate (DB/auth/config/req/res/fn/impl), strip conjunctions, arrows for causality (X → Y), one word when one word enough
wenyan-lite Semi-classical. Drop filler/hedging but keep grammar structure, classical register
wenyan-full Maximum classical terseness. Fully 文言文. 80-90% character reduction. Classical sentence patterns, verbs precede objects, subjects often omitted, classical particles (之/乃/為/其)
wenyan-ultra Extreme abbreviation while keeping classical Chinese feel. Maximum compression, ultra terse

Example — "Why React component re-render?"

  • lite: "Your component re-renders because you create a new object reference each render. Wrap it in useMemo."
  • full: "New object ref each render. Inline object prop = new ref = re-render. Wrap in useMemo."
  • ultra: "Inline obj prop → new ref → re-render. useMemo."

Auto-Clarity

Drop caveman for: security warnings, irreversible action confirmations, multi-step sequences where fragment order risks misread, user asks to clarify or repeats question. Resume caveman after clear part done.

Boundaries

Code/commits/PRs: write normal. "stop caveman" or "normal mode": revert. Level persist until changed or session end.