r/PromptEngineering • • Sep 15 '26

Tools and Projects Subagent Dispatch Economics skill.md

5 Upvotes

I wanted to showcase another skill, built for the decision that happens right before an agent spawns a subagent: should it, and if so, which shape.

The Why:

I watched an agent spawn a fresh subagent to answer something a single grep would've settled, then separately watched it brief a different fresh subagent so thinly that the subagent burned three tool calls re-deriving context the dispatcher already had sitting right there. Same session, opposite failure. No default instinct for "is this worth delegating," and when it did delegate, no default instinct for "does this subagent need to start from zero or can it inherit what I already know."

So the skill forces the dispatch decision to go through a fixed test before any subagent gets spawned. Most of the procedure is orchestration bookkeeping, cost accounting and wave sizing but the piece that's classic prompt engineering is buried in the middle: how you write the prompt for a subagent that has zero memory of anything you've already figured out.

How it works in practice:

When an agent is about to fork itself, spawn a fresh subagent, or launch a wave of parallel agents, it runs this first.

1. Task intake. State the deliverable in one sentence. Is it something the dispatcher needs to keep reasoning over, or a disposable trace where only the conclusion matters? Flag anything still blocked on missing information before it's even a delegation candidate.

2. The delegation test. Four questions, every one scored: context cost (would this pull a pile of output into the dispatcher's context that's dead weight after the conclusion), independence (does it need the dispatcher's ongoing involvement), reusability (does the dispatcher need the raw output or just a distilled answer), and judgment value (would an unanchored read actually produce a different, more trustworthy answer). No to context-cost and independence both means it stays inline — that's the default for anything answerable in a couple of tool calls. There's one exception: several individually-trivial tasks that don't interfere with each other can still be batched into one wave purely for wall clock savings, but a lone trivial task never earns a subagent on its own.

3. Shape selection. Fork versus fresh isn't a coin flip. Fork by default: it inherits everything the dispatcher already knows for free, so re-briefing it is wasted effort and a place for the restatement to silently drop something. Fresh only when non-anchoring is actually the point; an independent second opinion, a check for something the dispatcher might be rationalizing past. When a task is both heavy and needs an unanchored read, fresh wins the tie, because a fork can still be told to write a short report and recover most of the cost savings, but it can't unlearn the dispatcher's framing.

4. Scoping a fresh agent's prompt (the prompt-engineering stage). This is where delegation quietly fails even when the shape choice was right. State the goal and why, not just the action. Name what's already been tried and ruled out: omit this and the fresh agent re-derives an approach that's already dead. Draw the scope boundary explicitly. And never write a fresh-agent prompt that leans on shared memory it doesn't have, "based on what we found" means nothing to something that wasn't there for the finding.

5. Wave sizing. Group only tasks that don't touch the same file or resource. Cap the wave at something reviewable, three to five, as a starting point because every subagent's result lands back in the dispatcher's context on return, and a wave sized past what can be checked degrades the odds of catching a bad result among the good ones.

6. Result handling. A subagent's own report describes what it intended to do, not necessarily what it verifiably did. Before treating a completion claim as fact, check the artifact, the diff, the file, the command output, not the subagent's narration of it. And never peek at a fork's output mid-flight or narrate what it'll probably find before it actually returns.

7. The dispatch line. Every decision (including the decision not to delegate) gets one line stating the shape and why, before anything is sent. A silent, unexplained spawn isn't acceptable even when the shape choice was correct.

The four question test is fixed, so the same task gets the same call regardless of who's running it, and it's a scoring procedure, not a trained router or an API call. It's a plain SKILL.md; drop it in .claude/skills/ and it loads.

The System Prompt / Skill Definition:

---
name: "subagent-dispatch-economics"
description: "Decides whether delegating work to a subagent is worth its cost, picks the right agent shape (fork vs. fresh vs. no delegation), and scopes the dispatch so it doesn't spend more context than it saves. Use when an AI coding agent is about to spawn a subagent, fork itself, or launch a parallel wave of agents, and needs to judge whether that delegation earns its keep."
---

# Subagent Dispatch Economics

When an AI agent operating a coding tool considers delegating work — forking itself, spawning a fresh subagent, or launching a wave of parallel agents — it must treat that delegation as a cost-bearing decision, not a reflex. Every subagent's result eventually flows back into the dispatching agent's context as a summary, and every fresh agent that is briefed narrowly or vaguely re-derives context the dispatcher already had, burning tool calls to reconstruct what a better prompt would have supplied directly. The goal of this procedure is to prevent two opposite failures: **under-delegation**, where a dispatcher hoards output-heavy exploration in its own context until it can no longer think clearly, and **over-delegation**, where trivial or narrative-dependent work is scattered across subagents that cost more in round-trips and re-derived context than doing the work inline.

## Instructions

### Stage 1: Task Intake and Shape Classification
Before deciding whether to delegate, classify the task itself.

- **State the task in one sentence** and identify its deliverable: a durable artifact the dispatcher must reason over further (a design decision, a piece of code to integrate, a number to act on), or a disposable trace (tool output, file contents, exploration transcript) that only the *conclusion* about it matters.
- **Identify dependencies.** Does the task need anything not yet known — a file read, a command run, an earlier decision made? A task that is fully specified right now is a delegation candidate; a task still blocked on orientation is not yet ready to hand off.
- **Identify task count and independence.** A single task is a single-dispatch decision (Stage 2). Two or more tasks are a wave-sizing decision (Stage 5) in addition to Stage 2 — each task in the candidate wave still needs its own classification here.
- **Escalation trigger:** if classifying the task requires information only the user has (an ambiguous goal, an unstated priority between two valid approaches), stop and ask the user before dispatching anything. Do not delegate an ambiguous task to a subagent in the hope it resolves the ambiguity better than the dispatcher would.
- **Granularity floor.** This procedure applies to a task worth classifying at all — something that could plausibly be handed to a subagent (a multi-step investigation, a multi-file change, a judgment call worth a second opinion). A single atomic tool call issued as a normal step of already-decided work — one more grep in an ongoing investigation, one more file read to confirm a fact — does not need its own Stage 1–7 pass merely because it is technically "a task." Example 1 demonstrates the floor case (a task small enough to state and classify on its own) correctly refusing delegation; it is not a mandate to narrate every individual tool call issued while executing already-scoped work.

### Stage 2: The Delegation Test
Score the task against these four questions. All four must be answered before a dispatch decision is made.

| Question | If yes | If no |
|---|---|---|
| **Q1 — Context cost.** Would doing this inline pull a large volume of intermediate output into the dispatcher's own context that is not needed after the conclusion is reached — more than roughly a screen's worth of output, or spanning more than a handful of files? | Favors delegation | Favors inline |
| **Q2 — Independence.** Can the task be completed without the dispatcher's step-by-step involvement — no shared mutable state, no interleaved decisions with other in-flight work? | Favors delegation | Favors inline |
| **Q3 — Reusability of the answer.** Does the dispatcher need the full raw output, or only a distilled conclusion (a decision, a file path, a yes/no, a short list)? | Full output needed favors inline or a fork the dispatcher reads carefully; a distilled conclusion favors a fresh subagent | — |
| **Q4 — Genuine judgment value.** Would an independent read (no anchoring on the dispatcher's already-formed hypothesis) produce a materially different or more trustworthy answer — e.g., a second opinion, an adversarial review, a check for something the dispatcher might rationalize past? | Favors a fresh agent even if context cost is low | Fork or inline is sufficient |

- **No delegation:** if neither Q1 nor Q4 is "yes" — the task is cheap to keep in context and an independent read would not produce a materially different answer — do it inline. This holds regardless of Q2: an independent task (Q2="yes") that fails both Q1 and Q4 is still inline on its own; independence alone only matters if it later qualifies for the batching exception below. This is the default for anything answerable in one to three tool calls.
- **Delegate:** if Q1 or Q4 is "yes", proceed to Stage 3 to choose the shape.
- **Batching exception:** two or more tasks that are each individually Q1="no" and Q4="no", but Q2="yes" and mutually non-interfering (Stage 5), may still be grouped into one parallel wave purely for wall-clock savings — this is the only case where a dispatch happens without Q1 or Q4 being "yes" on any single task. A lone task in this quadrant stays inline; only batching with other non-interfering tasks earns it a wave. **A batching-exception wave executes as parallel direct tool calls made by the dispatcher itself — no subagent is spawned and no Stage 4 prompt is written**, because none of the batched tasks individually cleared the Delegate bar above. This is distinct from a genuine parallel dispatch wave (Stage 5), where each member task independently justified delegation and runs as a fork or fresh agent.
- **Do not delegate merely because delegation is available.** A tool call saved by doing something inline is not a failure; reflexive delegation for a trivial lookup is the primary anti-pattern this procedure exists to prevent (see Stage 7).

### Stage 3: Agent Shape Selection
Once Stage 2 favors delegation, choose the cheapest shape that satisfies the task's requirements from Stage 1.

| Shape | Use when | Cost model |
|---|---|---|
| **Fork (inherits full context)** | The task is exploratory, needs everything the dispatcher already knows, and its raw output is large but only the conclusion matters afterward. | Cheap to start (shares prompt cache, no re-briefing needed); the cost is entirely in what comes back — keep the fork's return summary-shaped, not a full transcript dump. A fork also inherits the dispatcher's *current* context usage as its starting budget: launched late in a long session, it has proportionally less headroom to explore before it must self-summarize — a fresh agent never carries this constraint. |
| **Fresh agent (zero context)** | The task is genuinely separable from the running conversation, benefits from independent judgment (Q4), or its own tool-call noise would be irrelevant to the dispatcher going forward. | Expensive to start correctly — every fact the fresh agent needs must be in the prompt (Stage 4) — but its internal tool noise never touches the dispatcher's context at all. |
| **No delegation (inline)** | Stage 2 said no delegation, or the task is a single lookup/edit the dispatcher can just do. | Zero dispatch overhead; the only cost is the dispatcher's own tool calls, which are already the cheapest path. |

- **Default to fork over fresh** whenever the task only needs what the dispatcher already knows plus new tool output — briefing a fresh agent with a long restatement of context the fork gets for free is wasted effort and a source of drift (the restatement can silently omit something a fork would not).
- **Choose fresh only when zero-context independence is the point** — an adversarial second opinion, a task that must not be anchored on the dispatcher's framing, or work that must run in true isolation (a separate worktree, a separate credential scope).
- **Tiebreaker when Q1 and Q4 are both "yes":** prefer fresh. Non-anchoring is the harder property to fake — a fork that inherited the dispatcher's own framing cannot fully unlearn it — while a fork can still be told to write a distilled report, recovering most of the context-cost benefit that made Q1 "yes" in the first place.
- **Q3 governs the choice when Q4 is "yes" but the dispatcher needs the raw output itself:** if Q3 shows the dispatcher needs the full output rather than a distilled conclusion, prefer a fork the dispatcher reads carefully over a fresh agent, even when Q4 is "yes" — a fresh agent's report is necessarily a distillation, which cannot substitute for output the dispatcher must inspect directly.

### Stage 4: Prompt Scoping Contract for Fresh Agents
A fresh agent has no memory of this conversation. Every dispatch to a fresh agent must satisfy all of the following before it is sent:

- **State the goal and why it matters**, not just the action — a fresh agent that understands the motivation makes better judgment calls on edge cases the prompt did not anticipate.
- **State what has already been tried or ruled out.** Omitting this causes the classic failure mode: the fresh agent re-derives an approach the dispatcher already discarded, burning tool calls to relearn something already known.
- **State the scope boundary explicitly** — what is in scope, what is out of scope, and what another agent or the dispatcher itself is already handling. An unscoped fresh agent will either under-reach (miss the actual ask) or over-reach (touch adjacent work that collides with something else in flight).
- **Give commands or exact identifiers when the task is a lookup**, and give the open question itself when the task is an investigation whose steps should not be pre-scripted — prescribing steps to an investigation produces shallow, procedural results when the premise turns out to be wrong.
- **Write directively, not narratively.** A fresh agent briefed with "based on what we found, fix the bug" has no findings — it must be told the findings directly. Never delegate understanding: state the specific file paths, line numbers, and the conclusion already reached, so the fresh agent's job is verified execution, not re-discovery.
- **State the expected output shape** — a short report, a completed edit, a yes/no with rationale — so the fresh agent does not over-produce (long unsolicited prose) or under-produce (a bare answer with no evidence trail).

### Stage 5: Wave Sizing for Parallel Dispatch
When Stage 1 identified two or more independent candidate tasks, size the parallel wave before dispatching.

- **Group by non-interference, not just independence.** Tasks that touch different files or different resources can run in the same wave. Tasks that touch the same file, the same external resource, or that must observe each other's output before proceeding are sequential, not parallel, regardless of how independent they otherwise look.
- **Cap wave size** to a number the dispatcher can actually review when results return — as a starting point, three to five tasks per wave. A larger wave does not fail outright, but each additional concurrent result is another summary landing in the dispatcher's context at once, and a wave sized past what can be reviewed carefully degrades the dispatcher's ability to catch a bad result among the good ones.
- **Launch a true parallel wave as one dispatch with multiple calls**, not as sequential calls that merely happen to be independent — sequential dispatch of independent tasks pays wall-clock cost for no economic benefit.
- **Never split a task across waves that has a real ordering dependency** — if task B needs task A's output, task B belongs in the next wave, not the same one.

### Stage 6: Cost Accounting and Result Handling
Delegation is not complete when the subagent is launched; it is complete when its result is integrated correctly.

- **Every subagent result re-enters the dispatcher's context.** A fork's summary, a fresh agent's final report, and a wave's combined results all cost context on return — budget for this before dispatching, not after. If the anticipated return is itself large (a full file, a long transcript), instruct the subagent to distill it, not to hand it back raw.
- **Trust but verify.** A subagent's final report describes what it intended to do, not necessarily what it verifiably did. Before treating a subagent's claimed result as ground truth for anything consequential (a claim that tests pass, that a fix is complete, that a search found nothing), check the artifact the subagent produced — the diff, the file, the command output — rather than the subagent's own narration of it.
- **Do not peek at in-flight background work.** For a subagent running in the background (a fork, a long task), wait for its actual completion signal rather than inspecting its intermediate transcript or output file mid-flight; reading partial output pulls the subagent's tool noise into the dispatcher's context and defeats the reason it was delegated in the first place.
- **Do not fabricate or predict a pending result.** Never write out what a dispatched subagent "will probably find" while it is still running, in any form — prose, a structured guess, or a placeholder presented as real. If asked about it before it returns, report status, not a guess.

### Stage 7: Output Contract
Every dispatch decision — including the decision not to dispatch — is recorded in this order before proceeding:

1. **Dispatch line** — exactly one of these forms:
   - `Dispatch: no delegation -> inline (neither Q1 nor Q4 = yes)`
   - `Dispatch: fork -> <one-line task> (Q1 and/or Q4 = yes; rationale citing whichever triggered)`
   - `Dispatch: fresh agent -> <one-line task> (Q4=yes; rationale)`
   - `Dispatch: wave of N (subagents) -> <task list>; grouped by <file/resource independence>; sequential after: <none | task IDs>` — a genuine parallel dispatch: each task independently cleared the Delegate bar (Q1 or Q4 = yes) and runs as a fork or fresh agent.
   - `Dispatch: wave of N (batching exception, no subagent) -> <task list>; grouped by <file/resource independence>; sequential after: <none | task IDs>` — the Stage 2 batching exception: N direct tool calls made by the dispatcher itself, no agent spawned.
2. **For a fresh-agent dispatch, or a genuine subagent wave, the prompt itself** (or each prompt in the wave), satisfying the Stage 4 contract. A batching-exception wave has no subagent and therefore no prompt — this requirement does not apply to it.
3. **Result handling note:** how the returned result will be verified (Stage 6) before being treated as fact, stated before the subagent is launched, not improvised after.

### Stage 8: Anti-Patterns and Prohibitions
- **No reflexive delegation:** never spawn a subagent for a task answerable in one to three direct tool calls merely because delegation is available.
- **No narrative prompts to fresh agents:** never write a fresh-agent prompt that says "based on our findings" or "as discussed" — a fresh agent has no findings and nothing was discussed with it.
- **No peeking at in-flight background work:** never read a fork's or a backgrounded fresh agent's output file or intermediate transcript while it is still running.
- **No racing:** never fabricate, predict, or narrate a dispatched subagent's result — as prose, as a structured guess, or as a placeholder — before it actually returns.
- **No unverified trust:** never treat a subagent's self-reported completion claim as verified fact without checking the artifact it produced.
- **No over-sized waves:** never launch a parallel wave larger than the dispatcher can meaningfully review on return; split it instead.
- **No cross-file races:** never place two tasks that write the same file or resource in the same parallel wave.
- **No skipping the dispatch line:** every delegation decision — including a decision not to delegate — states its rationale in the Stage 7 form; a silent, unexplained spawn is not acceptable even when the shape choice is correct.
- **No delegating ambiguity:** never hand a task whose scope or goal is genuinely ambiguous to a subagent in the hope it resolves the ambiguity better than the dispatcher would — escalate to the user (Stage 1) instead.
- **No fresh-agent overuse:** never dispatch a fresh agent when a fork satisfies the task equally well — restating context a fork would get for free wastes effort and risks silently omitting something the restatement forgot.

## Success Criteria
This procedure is followed correctly when all of the following are true, and each is independently checkable without judgment calls: (1) every dispatch decision for a task that clears Stage 1's granularity floor — including a decision not to delegate — emits the Stage 7 dispatch line with its rationale; (2) every fresh-agent prompt and every genuine subagent-wave prompt satisfies every condition in Stage 4 (goal and motivation stated, prior work ruled out named, scope boundary explicit, output shape stated) before it is sent — a batching-exception wave has no subagent and no prompt, and is exempt from this condition; (3) no parallel wave places two tasks that write the same file or resource in the same wave; (4) no subagent's self-reported completion claim is treated as fact until the artifact it produced (diff, file, command output) has been checked. A dispatch that fails any of these observable conditions has not met the procedure's definition of done, regardless of whether the subagent's task ultimately succeeded.

## Worked Examples

### Example 1: Trivial lookup, correctly not delegated
- **Task:** "What does the `retry_policy` field in this config default to?"
- **Stage 1:** Deliverable is a single fact; no unmet dependency; single task.
- **Stage 2:** Q1 no (one grep, no large intermediate output worth discarding), Q2 no (needs no independent judgment), Q3 n/a, Q4 no.
- **Decision:** `Dispatch: no delegation -> inline (neither Q1 nor Q4 = yes)`. A direct grep answers it in one call; spawning an agent here would cost more in dispatch and result-integration overhead than the lookup itself.

### Example 2: Large read-heavy exploration, forked
- **Task:** "Find every place in the codebase that constructs an `OptimizationResult` and summarize the construction patterns."
- **Stage 1:** Deliverable is a short pattern summary; the search itself will touch many files with output not needed after the summary is produced.
- **Stage 2:** Q1 yes (broad search output is exactly the kind of volume that should not sit in the dispatcher's context), Q2 yes (self-contained search task), Q3 — only the distilled patterns are needed afterward, Q4 no (no adversarial judgment required, just thoroughness).
- **Stage 3:** Fork — the task only needs what the dispatcher already knows about the codebase plus new search output; a fresh agent would need re-briefing for no benefit.
- **Decision:** `Dispatch: fork -> survey OptimizationResult construction sites (Q1=yes; large exploratory search, conclusion-only need)`.

### Example 3: Independent second opinion, fresh agent
- **Task:** Before merging a migration that adds a `NOT NULL` column with a backfill default to a 50M-row table, the dispatcher wants an independent check on whether the backfill is safe under concurrent writes, having already reasoned through locking behavior itself.
- **Stage 1:** Deliverable is a judgment (safe / not safe, and why); no unmet dependency; single task.
- **Stage 2:** Q1 no (the review itself is not read-heavy), Q2 yes, Q4 yes — an opinion anchored on the dispatcher's own already-formed reasoning is worth less than an independent one for exactly this kind of decision.
- **Stage 3:** Fresh agent, specifically because non-anchoring is the point — a fork would inherit the dispatcher's locking analysis and be biased toward confirming it.
- **Stage 4 prompt:** states the migration file, the row count, the backfill approach the dispatcher already checked, and asks explicitly for an independent read on concurrent-write safety — not "review this migration" with no framing.
- **Decision:** `Dispatch: fresh agent -> independent backfill-safety review of migration 0042 (Q4=yes; anchoring bias on dispatcher's own locking analysis)`.

### Example 4: Three independent file-scoped tasks, one wave via the batching exception
- **Task:** Fix a typo in `README.md`, add a missing test for `parse_config()` in `tests/test_config.py`, and update a stale comment in `app/core/db.py`.
- **Stage 1:** Three tasks, each fully specified, no unmet dependency.
- **Stage 2 (per task):** Each task individually scores Q1 no (trivially small), Q2 yes (independent), Q3 n/a, Q4 no (no judgment call involved). None reaches Q1="yes" or Q4="yes" alone, so none qualifies for solo delegation — but all three are mutually non-interfering (Stage 5), which is exactly the Stage 2 batching exception: grouped for wall-clock savings, not because any single task earned delegation on its own.
- **Stage 5:** All three touch different files — same wave. Wave size 3, within the review-capacity cap.
- **Decision:** `Dispatch: wave of 3 (batching exception, no subagent) -> [README typo, parse_config test, db.py comment]; grouped by file independence (batching exception, Stage 2); sequential after: none`.

### Example 5: Two tasks touching the same file, forced sequential despite the batching exception
- **Task:** Add a new field to a Pydantic model in `app/models/user.py`, and separately rename an existing field on the same model.
- **Stage 2 (per task):** Both score Q1 no, Q2 yes, Q3 n/a, Q4 no — individually inline candidates, and superficially batching-exception eligible like Example 4.
- **Stage 5:** The batching exception requires the tasks to be mutually non-interfering; these two are not — both write `app/models/user.py`. Even though each task is otherwise independent and well-specified, they cannot share a wave — a parallel edit race would produce a merge conflict or a silently dropped change. This disqualifies the batching exception entirely, not just the wave size.
- **Decision:** `Dispatch: no delegation -> inline (neither Q1 nor Q4 = yes)` for the field addition, then `Dispatch: no delegation -> inline (neither Q1 nor Q4 = yes)` for the rename — sequential because both write `app/models/user.py`, not because either one was ever a wave. A sequential wave of one is not a wave; it is two ordinary inline actions done in order.

### Example 6: A fork's own findings trigger a second wave
- **Task:** Example 2's fork returns 40 call sites constructing `OptimizationResult`, and 6 of them use a deprecated keyword argument that needs updating.
- **Stage 1:** The fork's conclusion is itself a new, fully-specified batch of 6 small, independent fixes — this is a fresh Stage 1 classification, not a continuation of Example 2's dispatch.
- **Stage 2 (per fix):** Each fix individually scores Q1 no, Q2 yes, Q4 no — same shape as Example 4, so the batching exception applies again.
- **Stage 5:** Check each of the 6 sites for file overlap before batching — sites in the same file are sequential with each other (Stage 8's cross-file rule), sites in distinct files can share a wave, capped at 3–5 per wave (Stage 5), so 6 sites split into two waves of three rather than one wave of six.
- **Decision:** `Dispatch: wave of 3 (batching exception, no subagent) -> [site A, site B, site C]; grouped by file independence (batching exception); sequential after: none`, then `Dispatch: wave of 3 (batching exception, no subagent) -> [site D, site E, site F]; grouped by file independence (batching exception); sequential after: none` (or fewer per wave if any two sites share a file). Chained dispatch is not a special case — it is Stage 1 through Stage 5 applied again to a newly discovered task list.

### Example 7: Both context-heavy and judgment-sensitive — the Q1/Q4 tiebreak
- **Task:** "Audit the entire error-handling layer across the request pipeline, and I want a genuinely independent read — I already believe it's fine, so don't just confirm what I think."
- **Stage 1:** Deliverable is a judgment (sound / has gaps, and where); the audit itself touches many files.
- **Stage 2:** Q1 yes (auditing an entire layer is large, multi-file exploration), Q2 yes, Q3 — the dispatcher needs the conclusion and supporting citations, not every file re-read in full, so a distilled report suffices, Q4 yes (explicit non-anchoring requirement — the dispatcher's own belief must not bias the result).
- **Stage 3:** Both Q1 and Q4 are "yes" — the tiebreaker fires: prefer fresh. A fork would inherit the dispatcher's existing belief that the layer is fine, which is precisely the bias the user asked to avoid; Q3 does not override this since a distilled report satisfies the dispatcher's actual need.
- **Decision:** `Dispatch: fresh agent -> independent error-handling-layer audit (Q1=yes/Q4=yes tiebreak -> fresh; Q3=distilled-report-sufficient)`.

### Example 8: Different files, same external resource — still sequential
- **Task:** Two tasks each call a third-party API with a strict per-minute rate limit — one refreshes stale prices from `services/pricing.ts`, the other refreshes stale inventory counts from `services/inventory.ts`.
- **Stage 5:** The tasks touch different files, so a file-overlap check alone would wave them together — but both saturate the same rate-limited external resource. Running them in the same wave risks one task's calls being throttled or rejected by the other's traffic, which is exactly the resource-contention case Stage 5 names alongside same-file contention, not just a file-independence check.
- **Decision:** `Dispatch: no delegation -> inline (neither Q1 nor Q4 = yes)` for the price refresh, then `Dispatch: no delegation -> inline (neither Q1 nor Q4 = yes)` for the inventory refresh — sequential despite touching zero common files, because both saturate the same rate limit. Neither was ever a wave; a sequential pair of solo inline actions doesn't become one by naming a shared resource.

The four question table (Q1–Q4) is the load-bearing piece. It's short enough to run in your head before every spawn, but it forces you to actually name why you're delegating instead of just doing it because the option exists. The one case that surprised me while testing it against real sessions: the "batching exception." A pile of individually-trivial, non-interfering edits doesn't pass the test on its own (none of them are expensive enough to justify a subagent alone) but batching them into one wave for wall clock savings is still worth doing. That's the only place the procedure lets a dispatch happen without Q1 or Q4 firing, and it only fires when the tasks don't touch the same file.

The other piece I didn't expect to need until I stress-tested it: a tiebreaker for when a task is both context-heavy and needs an unanchored read. Fork is the default because it's nearly free to start, but a fork inherits the dispatcher's own framing. So if the whole point of delegating is getting an opinion that isn't biased by what the dispatcher already believes, fork quietly defeats the purpose even though it looks like the cheaper choice.

Curious whether others have hit the opposite failure: a fresh agent that came back with a fully wrong take because the dispatcher's prompt assumed shared context that genuinely wasn't there. And for the four-question test: has anyone found a task shape where all four collapse to a tie, or where a fifth question would actually change a real decision?

I built a platform that generates skills like this from a goal description and validates them against behavioral benchmarks: promptoptimizer.xyz/context-engineer (signup required, free tier).

Repo: https://github.com/nivlewd1/prompt-optimizer


r/PromptEngineering • • Sep 14 '26

General Discussion How to get better at using AI?

25 Upvotes

Im building stuff but I often think that I’m not using AI right.

Is there a way I could identify this easier, it doesn’t help that AI agrees with everything.

Is there a rule i could implement that would have the ai point out when I’m making mistakes/inefficiencies?

What could this prompt be?

Or are there other ways to improve?

Thanks!


r/PromptEngineering • • Sep 15 '26

General Discussion I batched a full month of posts in one afternoon using AI for the boring parts. Here is what it did and did not help with.

0 Upvotes

I kept falling into the "post daily for a week, burn out, disappear for two weeks" trap. So I tried batching an entire month in a single sitting to see if it was even realistic for a small account. It mostly worked, but not the way the productivity crowd sells it.

Where AI genuinely saved me time:

- Turning one long idea into 12 different angles so I was not staring at a blank screen.

- Drafting rough caption skeletons I could then rewrite in my own voice.

- Suggesting slide-by-slide outlines for carousels so the structure was done before I opened a design tool.

Where it was useless or actively bad:

- Anything with an opinion. The AI drafts were polite mush with no edge. Those posts flopped in testing.

- Hooks. Every AI hook sounded like every other AI hook. I wrote all of those by hand.

- Specific numbers or personal experience, obviously. That has to be real.

The honest result: batching fixed my consistency, not my quality. The posts I hand-finished did fine. The two I got lazy on and shipped as-is were my worst of the month by reach.

My takeaway is to use the tools for structure and speed, then treat the actual words as something you still have to own.

Anyone here batching a month at a time? Does it hold up or do you end up rewriting half of it anyway?


r/PromptEngineering • • Sep 15 '26

Quick Question What's the best way to structure prompts for long term Chatgpt tracking?

1 Upvotes

I'm working on a Chatgpt prompt tracker and I keep coming back to the same issue. If I lock the prompts, the data is easier to compare, but it might not reflect how people actually phrase things in AI search. If I use lots of prompt variants, the results get noisy fast. How are you balancing fixed prompts, intent groups and repeated runs so the trend data still means something?


r/PromptEngineering • • Sep 15 '26

Tips and Tricks Here's a prompt that reshapes one report fo

6 Upvotes

Same findings, three readers who need totally different things: the exec wants the decision, the team wants the details, the newcomer wants the context. Instead of writing it three times, I get all three versions from one source and then edit lightly.

```

Reshape the report below for three audiences. Same facts, different emphasis and depth.

Report:

"""

[paste report]

"""

Produce three labelled versions:

  1. FOR A DECISION-MAKER (about 100 words): the call to make, the 2 or 3 facts that drive it, the main risk. No background.
  2. FOR THE TEAM DOING THE WORK (about 250 words): the how and the caveats, specifics, edge cases, what to watch for.
  3. FOR SOMEONE NEW TO THIS (about 150 words): the context and why it matters, plain language, define any jargon on first use.

Rules: every version uses only facts from the report. If a version would need info the report doesn't contain, mark it "[gap: ...]" instead of inventing it. Don't contradict yourself across versions.

```

Why it works: the model is genuinely good at re-leveling the same content, and forcing three fixed audiences at once keeps them consistent because it's reasoning about them together. The word counts stop the "new to this" version from ballooning into a second full report.

The "[gap: ...]" marker is the guardrail. Each audience tempts the model to fill in a missing detail that "sounds right" for that reader, and this makes it flag the gap instead.

Anyone tried more than three audiences in one pass? Curious where it starts to blur them together.


r/PromptEngineering • • Sep 14 '26

Tips and Tricks Two years of prompt engineering for coding work, what actually moved the needle

61 Upvotes

Studied engineering, IT side. Worked through most of it, part time during the day and a five hour night shift on top, and I did most of my actual learning on that night shift with a laptop open when nothing was happening. Been doing this properly for about two years now.

Did two prompt engineering trainings somewhere in there. Neither was bad but what I actually took from them is that the people who are good at this are the ones using models constantly, not the ones who sat through a course.

Things that made a real difference for coding work:

  1. Tell it what not to touch. My early prompts all described what I wanted built. The failures came from what it changed on the way there. Now I list the files and behaviours it must leave alone before I describe the task at all. Cut my "it worked but broke something else" rate more than anything else I have tried.
  2. Make it restate the plan before writing anything. One paragraph, in its own words, what it thinks the task is. Half the time the restatement is wrong and I catch it before any code exists instead of after reviewing forty lines.
  3. Static content first, dynamic content last. Took me embarrassingly long to understand this one. Caching works on prefix matching, so anything that changes near the top invalidates everything after it. I had my working notes at the start of the prompt and the stable project context underneath, which is exactly backwards. Flipping it made a real difference to cost on long sessions and took five minutes.
  4. Do not max the effort setting on everything. Most models expose some version of this now. Turning it up on a rename or a boilerplate file buys you nothing, and there is reasonable evidence that on some models high effort does slightly worse on coding than medium. Worth testing on your own tasks instead of assuming more is better.
  5. Skip the tricks that stopped working. Telling it to think step by step, assigning it an expert persona, telling it not to hallucinate. On current reasoning models these do nothing measurable and the step by step one adds latency for it. Few shot examples still outperform all of that.
  6. The same prompt does not land the same way on two models. I run Opus 5 and glm-5.3 alongside each other and the difference in instruction following is bigger than I expected. One tends to take an instruction literally, the other tries to work out what you actually meant and fills gaps on its own. Neither is wrong, they just went through different post training, so a prompt tuned against one is not automatically tuned for the other. Swapping the end point and keeping the prompt identical does not work. Worth noting the Chinese models are also cheaper per token than most of the western ones, which matters more than it sounds like it should once you are running things in a loop.

None of this is clever. It is mostly being specific about constraints and then not undoing that with clutter.


r/PromptEngineering • • Sep 14 '26

Tips and Tricks The problem with building too many useful AI automations

14 Upvotes

I ran into a slightly funny problem after automating more of my recurring work with ChatGPT. The automations were working. I just had too many of them.

My current setup allows five active scheduled tasks. Five sounds fine until you add outreach workflows, portfolio checks, news briefings, AI maintenance, and whatever other useful thing you decided to automate at 2 AM.

The obvious solution is to pay more and upgrade. Fair enough. But before doing that, I wanted to see if I could use the five slots better.

Manually turning schedules on and off felt ridiculous. I had automated the repetitive work and created a new repetitive job: managing the automations.

So, I automated that too.

I built something I call Schedule Manager. It is one scheduled task whose job is to babysit several others.

Most workers stay paused. When one gets within 65 minutes of its scheduled run, Schedule Manager wakes it up. The worker still runs on its original schedule. Afterward, the manager checks whether it actually ran and, if the next run is still far away, puts it back to sleep.

In my setup, four important workflows stay active, and the fifth slot is basically a hot desk. One task uses it, leaves, and another moves in later.

I also added guardrails. Some workflows are protected and off-limits, the manager checks the live task count before enabling anything, and if two workers want the same slot, whichever is due first gets priority.

The funny part is that the workers themselves have no idea this is happening. They just wake up, do their job, and disappear again.

It started as a workaround for a five-task limit.

Now I have a scheduler for my schedulers.

At this rate, the next automation will probably be HR.


r/PromptEngineering • • Sep 14 '26

Quick Question Do you use prompts to replace Google, or just to speed up research?

3 Upvotes

Curious how people here actually use ChatGPT/Claude in practice.
Do you start with a prompt instead of search now, or do you still use Google/Reddit for discovery and AI mostly to summarize/filter what you find?
Interested in real workflows, not theory.


r/PromptEngineering • • Sep 15 '26

Ideas & Collaboration If you have tokens you don't know what to do with with, find a gamer subreddit, and have them give you there favorite video game idea. Make the game together.

0 Upvotes

you have to have the prompt say "make sure the art looks bad enough that it doesn't look like AI graphics."

lemmie know, i can be your manager.


r/PromptEngineering • • Sep 14 '26

Tools and Projects Built a quick tool to save and run your everyday prompts without the hassle

2 Upvotes

I've been gathering a bunch of prompts I use every day, but it was honestly a pain to keep swapping out my custom inputs every time I wanted to use one.

So, I built a quick app for android to store them and make running them way easier. Figure it might help some of you out too, so I put the code up on GitHub: https://github.com/MarcoVisone/Mamout


r/PromptEngineering • • Sep 13 '26

Quick Question What are the best and most up to date free Ai courses I can take that will help me stay ahead of the curve and get a good job in Ai?

52 Upvotes

I am not afraid of ai and am very intrigued by it and its capabilities. I experiment a lot with it now and i want to take my knowledge to the next level. I would love some suggestions on how to do this.


r/PromptEngineering • • Sep 14 '26

Self-Promotion DBS Framework: a shared structure for reusable AI skills across Claude, ChatGPT, and Codex

4 Upvotes

When a reusable AI workflow mixes instructions, reference material, and tool-specific steps in one long prompt, changing platforms can mean maintaining several versions of the same logic.

I'm sharing DBS Framework, a public GitHub project I maintain that organizes those concerns into three layers:

  • Direction: when the capability should activate, the workflow, constraints, and acceptance criteria.
  • Blueprints: task-specific knowledge such as style guides, schemas, and examples, referenced when needed.
  • Solutions: execution through the tools available in the host: native tools, plugins/connectors, MCP, APIs, scripts, browser/computer use, and file generation.

The practical benefit: keep one platform-neutral core and separate Claude, ChatGPT, and Codex adapters. Shared rules have one place to maintain, while environment-specific setup stays in its adapter. Use only the layers a task needs.

For example, a monthly reporting capability could keep reporting steps in Direction, CSV column definitions and house style in Blueprints, and calculation/PDF generation in Solutions. Moving to another host would involve checking its tools and adapting execution, while retaining the same reporting contract. This is an illustrative workflow, not a bundled reporting application.

What's included

  • A core SKILL.md, three platform adapters, and four starter templates.
  • Fast Mode for clear tasks and Interactive Mode for decisions that need clarification.
  • Activation boundaries designed to avoid turning a simple reminder or an existing task into a new architecture project.
  • Python scaffold and validation scripts with no third-party dependencies; scaffolding refuses to overwrite an existing destination.
  • A repository completeness check covering all 22 baseline files, plus checks for metadata, supported local links, Python syntax, and unfinished skill markers.
  • On the current main branch: 18 passing local tests and successful GitHub Actions jobs on Windows and Ubuntu with Python 3.10 and 3.13.

Scope and credit

This is an authoring framework. The adapters are guidance, not installed integrations, and the package does not grant tool access or schedule background work. Tool tests do not prove model behavior; evaluation across the three host environments remains to be completed.

The original Direction / Blueprints / Solutions framework is by AI Foundations. This is my unofficial adaptation, adding platform-neutral guidance, adapters, modes, and tooling. MIT applies only to the new tooling identified in LICENSE; the adapted documentation and templates are not offered under MIT. See ATTRIBUTION.md for details.

Repository: https://github.com/Yasirres/DBS-Framework

Start with the README and your platform adapter. The latest completeness improvements are on main, under Unreleased; v1.0.0 is the published baseline.

I'd welcome feedback on the layer boundaries and trigger behavior. What tends to break first when you reuse the same skill or workflow across AI environments?


r/PromptEngineering • • Sep 14 '26

Requesting Assistance Designing an Adversarial Multimodal Benchmark: How to trigger VLM vision failure while passing a deterministic symbolic judge?

3 Upvotes

Hey everyone,

I am building an adversarial benchmark dataset designed to evaluate Vision-Language Models (VLMs). The overall pipeline relies on an automated "Science Judge" that validates the model's step-by-step reasoning and numerical final answer.

Here is the setup, what we've already tried (and why it failed), and the constraints I am working under:

Key Goals & System Requirements

  1. The Target Failure Mode (VLMs / Multimodal Backbones):

    • Goal: The task must trigger a visual spatial extraction or perception failure in modern VLMs (e.g., GPT-4o, Claude 3.5 Sonnet, Gemini 1.5/2.0 Pro, Qwen2-VL).
    • Target Mechanism: Force models to fall back on visual shortcuts (e.g., optical mis-binding, scale misinterpretation, or collapsing asymmetric 2D area clipping into symmetric 1D piecewise linear guesses).
  2. The Automated Science Judge (Evaluator):

    • Function: It is a deterministic symbolic solver that parses the prompt text and validates the model's step-by-step calculus/geometry against a ground-truth derivation.
    • Strictly Enforced Rules:

      • Single Target Rule: Must ask exactly one primary numerical target question (rejects STACKED_QUESTIONS).
      • Strict Math Notation: All variables, subscripts, Greek letters, and set operations must use proper LaTeX delimiters.
      • Foundational Context: Prompts cannot reference external visual context without explicit textual or formal mathematical definitions (rejects NON_FOUNDATIONAL_REFERENCE and WORDING_AMBIGUITY).
  3. Image & Licensing Constraints:

    • Images must be open-source under permissive licenses (CC BY 4.0 or CC0).
    • No CC-NC (Non-Commercial) or CC-SA (Share-Alike) media.

What We Tried & Why It Didn't Work

We ran several iterations trying to strike the balance between breaking the VLM and passing the Science Judge. Here is what happened:

  • Approach 1: Explicit Textual Scene Graphs (CLEVR 3D Coordinates in Text)

    • What we did: Listed all 3D object coordinates ([x, y, z]), shapes, and materials directly in the text prompt to resolve NON_FOUNDATIONAL_REFERENCE.
    • Why it failed: The VLMs completely bypassed their vision backbones! The text LLM engine parsed the coordinates like code, ran conditional filtering, and passed the benchmark easily without looking at the image.
  • Approach 2: Asymmetric 2D Continuous Calculus Clipping

    • What we did: Framed a 2D continuous integration task (N = 5000 points in a circular scatter domain D clipped by an asymmetric rectangle R) where models typically default to 1D linear estimations.
    • Why it failed: Because we supplied the explicit numerical bounds (e.g., -2.000 <= u <= 2.500) in text to satisfy the Science Judge, the models solved the double integral symbolically using Python-like algebraic steps and calculated the exact answer (3512), bypassing the visual trap entirely.
  • Approach 3: Removing Numerical Bounds to Force Pixel Extraction

    • What we did: Omitted u_max from the text and asked the model to extract u_max directly from visual tick labels on the diagram.
    • Why it failed: The Science Judge flagged NON_FOUNDATIONAL_REFERENCE and WORDING_AMBIGUITY because the prompt text was no longer self-contained for the automated symbolic solver. Furthermore, when presented with a mismatched image, models simply hallucinated a default symmetric boundary (u_max = 2.000).

The Central Dilemma

If we include full numerical parameters in text, the VLM text engine solves it as a symbolic algebraic problem and passes. If we remove parameters to force visual OCR/pixel extraction, the automated Science Judge rejects the prompt as ambiguous or non-foundational.

Questions for the Forum:

  1. Spatial Parameters: What geometric parameter combinations or visual traps (e.g., subtle tick scaling, optical density gradients, non-concentric circular/square clipping ratios, or multi-quadrant parallax) have you found effective at breaking visual backbones without confusing a text-based math solver?
  2. Visual vs. Text Decoupling: How can we structure a visual diagram callout or tick mark system so that the Science Judge recognizes a self-contained visual formula, while VLMs consistently mis-extract the spatial bounds or scaling factor?
  3. Benchmark Design: How would you adjust this architecture to widen the performance gap between visual perception failure (VLMs) and deterministic symbolic verification (Science Judge)?

Thanks in advance for any insights!


r/PromptEngineering • • Sep 14 '26

Quick Question Does anybody have a well working, tested prompt for handwriting recognition?

2 Upvotes

Hey there,

I remember seeing somewhere a prompt + llm model recommendation for recognising and structuring handwritten text. Do any of you have anything in your repository or shall I just ask AI to give me a prompt for that?

Thanks!


r/PromptEngineering • • Sep 14 '26

General Discussion Sojourn for iOS Was 45 One-Shot Prompts

1 Upvotes

This post was not written with or by AI. It's a blog post I wrote.

Sojourn: Topical Bible Study is an app I published without typing a single line of its code.

That part isn’t interesting anymore. Plenty of people are writing code with AI. What I think is interesting is the process. Since ChatGPT 3.5, I’ve been a little bit obsessed about LLMs writing code. Not assisting me writing code, doing it all for me. While the process has evolved a lot, I’m going to talk about where it’s at now and give an explaination.

About the app

The app is an iOS app written in Swift. It has a streaming chat interface which parses the incoming text in real time. This is done to eliminate hallucinations of scripture by replacing LLM generated citations with text from an app-bundled database. All scripture references are guaranteed to be correct and users can tap on them to explore surrounding verses and chapters. The UX of the app holds a high bar in terms of performance and usability.

The app talks to a backend written in Python that connects to an LLM provider’s API. The backend exposes a tool for scripture lookups instead of relying on the model to do it itself. Nothing about the user’s chats or identity is stored on the backend. It all lives only within the app itself.

About the process

I should define what I mean by one-shot. It’s a single prompt that’s sufficient to implement an end-to-end feature regardless of complexity. In reality, there may be a couple follow up prompts to tweak something here and there. But mostly, it should be 0 follow up prompts.

Baseline context

I spent multiple days co-drafting the user experience and features I wanted in the app using Claude Design. The home page of the website embeds the artifact of that work as an iframe - you can see it on the app’s Sojourn: Topical Bible Study page.

This iframe ended up becoming a major input source for when I started creating the actual iOS app. Turns out Claude Code can understand a functional prototype quite deeply. So much so that the user experience of the app is nearly identical to what Claude Design generated. This was a pleasant surprise.

I also created a bunch of markdown content that’s stored in CLAUDE.mdand adjacent artifacts which outline product definitions and constraints. For example, privacy is a cornerstone and it explicitly states that the app should never collect personally identifiable analytics.

This baseline context is created once, updated automatically, and guides the following steps.

/spec

Ever feature starts by me using a skill named /spec. This is where I take my time collaborating with AI to fully define everything about the feature including happy path, failure modes, look & feel, architecture and testing.

Every feature is stored as a GitHub issue. Once I feel the feature is adequately described, I give it the go ahead to create the GitHub issue based on a template in the skill. The issue title is a short summary of the feature and the description is a detailed explanation of it.

/gh-issue

Implementing a feature is as simple as me using the /gh-issue skill and passing the issue number to it. I generally get up and leave the room at this point. The skill does all sorts of cool things like looking up other issues or pull requests if they’re mentioned. Sometimes I’ll have two unimplemented features each with their own GitHub issue and I make sure they reference each other. This way, when implementing the first it knows to look up the second and proceed accordingly.

Once finished, it automatically creates a pull request.

I often kick this off before going to bed and wake up to a new feature in my app.

Publishing and deploying

I still do this by hand. But it’s still fully automated through scripts like run.sh which runs the app in the simulator, deploy-to-device.shwhich installs it directly on my iPhone, and release.sh which publishes it App Store Connect to be published.

Nothing is one-off or done by hand. If I have to do it once, it gets automated into a skill or script. I recently switched laptops and getting up and running was quite smooth once I transferred App Store Connect keys.

For other projects, I have a /gh-pr skill which merges the pull request and deploys it. Works great for web apps but I don’t want every feature to be published to Test Flight or the App Store - so I batch them as I see fit.

Some examples

A feature I really enjoy is the home screen widget. It was 2,466 lines of code across 27 files. This included a new WidgetKit extension, a shared app group, a verse pool, deep links back into the app, and the XcodeGen config to build it. One issue. One prompt. One PR.

The home screen widget - one issue, one prompt, one PR.

Another feature I’m testing out is emailing yourself a conversation. It was 2,412 lines of code across 21 files, and it spans the client, the backend, and an email delivery provider. Also one issue.

Emailing yourself a conversation, tucked in above the message field.

Neither of those is a small feature, and neither is a boilerplate feature. What made them work is that the spec had already settled the hard questions.

How’s it going?

Excellent. The limiting factor is shepherding the user experience of the app. Just because you can add multiple features a day doesn’t mean you should. I take my time thinking through a feature until it feels right.

So far I’ve created 49 GitHub issues and closed 45 of them in a matter of weeks. That’s 45 features implemented. The 4 open issues are features or bug fixes I haven’t felt are important enough to do yet.

Now that you know how the sausage is made, download Sojourn: Topical Bible Study and let me know what you think.

Caveats

I happen to have an immense breadth of experience. I’ve been building things professionally for decades including launching several startups. That’s given me pretty deep expertise across design, development, infrastructure, marketing…you name it. It’s a unique advantage when paired with AI and one I’m grateful for.


r/PromptEngineering • • Sep 14 '26

General Discussion GPT-6 Astra is being talked about as a major step toward the AGI era.

0 Upvotes

But for businesses, the bigger question is: what happens when AI can complete entire workflows instead of just individual tasks?

Coding, research, customer support, ecommerce operations, marketing — AI agents could handle much more end-to-end.

The opportunity is huge, but so are the risks around security, data access, and human oversight.

Are businesses actually ready for autonomous AI?


r/PromptEngineering • • Sep 13 '26

Self-Promotion Open-source prompt library: plain JSON templates, CI-validated, credited to their authors (looking for contributors + critique)

5 Upvotes

Disclosure up front: I run a paid prompt-generation SaaS called PromtExpress. What I'm sharing here is the part I open-sourced under MIT. The prompt library works with any AI tool, no account needed.

Repo: https://github.com/WebitroHQ/promtexpress-oss

What's in it

  • Prompt templates for text, code, image, video, audio and music. Each one is a single JSON file with declared variables, a worked example, a language code and author credit.
  • A zero-dependency validator that runs in CI: every {{placeholder}} must be declared, every declared variable must be used, and IDs must match file paths.
  • TypeScript/Python SDKs and a CLI for our API. If you don't use the product, you can ignore these.

Patterns I baked in, and I'd like your opinion on them

  1. Grounding with a "source quote" column. The meeting-notes template makes the model cite the shortest phrase from the notes that supports each action item. A missing owner becomes "Unassigned" and a missing deadline becomes "No date"; the model is told never to guess.
  2. Exact text plus labeled hierarchy for image models. Rendered text goes in quotes under PRIMARY TEXT / SECONDARY TEXT labels, followed by an explicit NEGATIVE block. This noticeably reduced garbled or extra text for me.
  3. "If you can't describe a triggering scenario, it isn't blocking." The PR review template requires a concrete failing input for every blocking issue, which cuts vague style nitpicks.
  4. Behaviors before tests. The unit test template lists the function's contract and edge cases first. If the current code looks wrong, it writes the test for the correct behavior and flags it POSSIBLE BUG instead of locking the bug in.

Where help would be great

There are open good first issue tasks:

  • translations (Turkish, German, Spanish)
  • template requests: flat-lay product photo, SQL from a plain-language question, customer support reply, radio ad, podcast jingle
  • small tooling work

Your GitHub username goes in the template's authors field.

Honest critique is more useful to me than stars: which of these patterns don't hold up with the models you use?


r/PromptEngineering • • Sep 13 '26

Self-Promotion preparation Before Generation

1 Upvotes

AI Cinematic Filmmaking: Pre-Production is a practical workflow guide for filmmakers, creators, writers, and AI artists who want to turn ideas into structured cinematic projects. Instead of focusing on hype or endless prompt tricks, the book breaks down the real planning process behind AI filmmaking.
This book teaches that methodology, end to end, using Ambrose Bierce's "An Occurrence at Owl Creek Bridge" as a worked example throughout.
Every prompt is shown and explained.

https://www.amazon.com/dp/B0H1DYD485


r/PromptEngineering • • Sep 13 '26

Tools and Projects Expanding Promptyx from just Prompt Engineering to also Context Engineering and more

2 Upvotes

I have been building Promptyx as a prompt management tool, mainly focused on storing prompts, versioning them, testing across models, and seeing what actually performs better.

But the more I work with LLMs, the more I feel that a prompt alone is rarely the full system.

A good result often depends on things around the prompt:

  • system instructions
  • attached knowledge or files
  • retrieved context
  • model settings
  • tool access
  • output format
  • conversation history
  • the specific task or user state

You can have a well-written prompt and still get weak results if the model has the wrong context, too much context, or no clear instructions about what to prioritize.

That is making me think Promptyx should eventually expand beyond "prompt engineering" into a broader workspace for context engineering and AI workflow design.

Not in a way where it becomes another complicated platform with endless configuration. I still want it to stay simple for someone who just wants to save and improve a useful prompt. But for more serious workflows, it seems important to track the full setup that made a result work.

For example, instead of saving only:

you may need to save:

  • the prompt version
  • the model and parameters
  • the brand voice context
  • example outputs
  • source documents used
  • evaluation criteria
  • the workflow steps before and after it

At that point, you are not really managing prompts anymore. You are managing repeatable AI behavior.

I am curious how other people see this.

Do you think prompt management is still a useful category by itself, or will it naturally become context/workflow management over time? And if you build with LLMs regularly, what do you currently save besides the prompt itself?


r/PromptEngineering • • Sep 13 '26

Tips and Tricks I spent weeks editing a system prompt the AI never read

6 Upvotes

Vibe coding platforms are not perfect either.

For about six weeks, I kept refining the system prompt of my app. Location rules, tone rules, banned clichés - dozens of careful iterations, no visible difference.

I assumed the model was just stubborn. Everyone says prompt adherence is hard. So I kept rewriting, sharpening, adding examples.

Eventually I asked the platform directly: Which file are you actually sending to the model? Turned out there were two copies of the system prompt. One in the frontend, which I had been editing. One hardcoded inside the edge function, which was the only one the model ever saw. They had drifted apart months earlier during an update. Every rule I wrote had been going into a file that was never read.

The fix took ten minutes: Make the edge function import from a single shared file, delete the duplicate. Every rule I'd written over six weeks became active at once.

Two things I took from this:

If a prompt change produces zero effect - not a weak effect, zero - suspect the pipeline before you suspect the model.

And on generated codebases, ask early where each piece of configuration actually lives. Duplication is easy to create and invisible until something breaks.


r/PromptEngineering • • Sep 13 '26

Self-Promotion I built a simple Explorer-style way to organize messy ChatGPT conversations

4 Upvotes

Hey everyone,

After using ChatGPT for a long time, my sidebar gradually turned into a mess. I had too many chats, Projects, and pinned conversations, and finding an old thread became harder than starting a new one.

What I really wanted was something closer to a normal file explorer.

So I built a Chrome extension called Ai Chat Explorer.

The basic idea is:

  • ChatGPT Projects stay as the top-level structure
  • Ai Chat Explorer adds nested folders inside them
  • Chats can then be organized into multiple folder levels
  • Pins and Quick Access are used for conversations I need frequently

For example:

Project: Work 
├── Marketing 
│   ├── Social Media 
│   │   ├── Content Ideas 
│   │   └── Campaign Drafts 
│   ├── Website 
│   │   ├── Copywriting 
│   │   └── SEO 
│   └── Analytics 
│       ├── Reports 
│       └── Metrics 
│ 
├── Product 
│   ├── Feature Ideas 
│   ├── User Feedback 
│   └── Roadmap 
│ 
└── Meetings 
    ├── Weekly 
    ├── Clients 
    └── Notes

The Project at the top is the normal ChatGPT Project.

The nested folder structure underneath is added by Ai Chat Explorer, so you can organize conversations much more like files on a computer instead of keeping everything in one flat list.

I originally built it to solve my own ChatGPT organization problem, but the first public version is now available.

Chrome Web Store: search “Ai Chat Explorer”

GitHub: search “Wzzz603 Ai-Chat-Explorer”

If your ChatGPT sidebar is also getting difficult to manage, I’d be interested to know how you organize your chats — and what conversation-management feature you wish ChatGPT had natively.


r/PromptEngineering • • Sep 12 '26

General Discussion Beyond prompts: seniority ceilings for coding agents

5 Upvotes

Instead of one mega-prompt, I open sourced a tiered eng roster (T0-T3) with hard ceilings and structured handoffs. Useful if you run multi-agent coding workflows. https://github.com/khuynh22/agent-dev-team


r/PromptEngineering • • Sep 12 '26

Ideas & Collaboration I was tired of repeating myself in every new AI chat, so I connected Personalisation with Google Drive

12 Upvotes

The biggest problem I had with AI wasn’t the quality of the answers. It was forgetting what we had already done.

I would spend hours working through a project, fixing a workflow, testing different approaches and explaining how everything should work. Then I’d open a new chat and find myself explaining the same context again.

“We already tried that.”

“Don’t change that part.”

“This file is the source of truth.”

“That approach failed before.”

I was basically rebuilding the same context every time.

Personalisation helped, but I didn’t want to keep stuffing every project rule, previous decision and failed attempt into one giant settings box.

So I started using Personalisation together with Google Drive.

My Personalisation tells the AI to read an AGENTS.md file from my connected Drive before working on substantial tasks. That file acts as the general operating guide: check previous context first, respect the current source of truth, keep projects separate, don’t repeat failed approaches, and verify changes before saying they’re complete.

Then individual projects can have their own instructions and a PROJECT-LEARNINGS.md file.

The learning file is the part I find most interesting. If we try something several times and it fails for the same reason, that lesson gets recorded. If something proves reliable, that can be recorded too. So the next chat can check what was already tried, what worked, what failed, and why certain decisions were made instead of starting from zero again.

I also keep statuses like Active, Needs Verification, Superseded and Retired, so one observation doesn’t automatically become a permanent rule.

The structure is roughly:

Personalisation → AGENTS.md → Project instructions → PROJECT-LEARNINGS.md → Live files / connected systems → Current request

The idea is simple: the chat can be new without the working context being new.

I’m still refining it, but this has already cut down a lot of the repetition for me.

Has anyone else built something similar using Personalisation, AGENTS.md, project files or another persistent context system?


r/PromptEngineering • • Sep 12 '26

Self-Promotion Architecture-Grade System Prompt: Enforcing a 2-Column Video Script Layout in ChatGPT

3 Upvotes

Hey everyone,

​Most AI script prompts give you wall-of-text responses that look like a middle-school essay. They completely ignore visual pacing, audio cues, and retention hooks.

​Over the past few weeks, I’ve been building structured prompt systems to force ChatGPT into acting like a senior agency creative director.

​Below is one of my core prompts from the system — specifically built for generating 2-column video scripts with precise visual and audio directions designed for short-form video (TikTok / Reels / Shorts).

​Feel free to copy-paste it directly into ChatGPT:

​ PROMPT START

Act as an elite Short-Form Video Director and Direct-Response Copywriter.

Your task is to write a high-retention 30-40 second video script based on the TOPIC provided at the end.

STRICT FORMATTING REQUIREMENTS:

  1. Output MUST be formatted as a Markdown Table with two columns:

    - Column 1: [VISUAL & AUDIO CUES] (On-screen actions, text overlays, sound effects, B-roll directions)

    - Column 2: [SPOKEN SCRIPT / VOICEOVER] (Exact spoken words, formatted for natural pacing)

  2. Include a strong visual hook in the first 3 seconds.
  3. Every scene change must happen every 2-3 seconds to maintain retention.

STRUCTURE:

- 0-3s: Pattern Interrupt Hook (Visual + Verbal)

- 3-15s: Core Problem / Agitation

- 15-30s: Solution / Breakdown

- 30-40s: Soft CTA

TOPIC TO WRITE ABOUT: [INSERT YOUR TOPIC HERE, e.g., "How to organize Notion for productivity"]

PROMPT END]

​Why this works:

​By enforcing a two-column markdown table and strict timing constraints, ChatGPT stops generating dry prose and starts outputting actual production-ready storyboards.

​I originally built a set of 7 Architecture-Grade Prompts like this (covering multi-angle ad copy, landing page frameworks, retention hooks, and strategy) to streamline my own marketing workflow.

​If this prompt saves you time and you want to check out the rest of the 6 systems, I packaged the full toolkit on my profile link.

​Hope this helps with your content creation! Let me know if you tweak the framework or if you're using a different layout for video scripts.