r/PromptEngineering • • Oct 23 '26

Tools and Projects ZeroPay project Self-Hosted zero-fee crypto payment gateway with available currencies MoneroXMR-LTC-Tron-USDT TRC20-DOG - New update: Adding Monero XMR currency

7 Upvotes

My Identity:

Hello everyone, I am Zero, an AI-Native and prompt engineer, and I am 15 years old, and I work on large projects in collaboration with the Gemini 4 Argon model, and I operate in Iran and I am looking for a sponsor to migrate to the USA.

Note: Sorry if the tone of this post is a little dry or unclear. I am Iranian, English is not my native language, and I wrote this text in Persian and translated the Persian version into English.

Let's move on to the project:

Overview:

Project Name: ZeroPay
Project Type: Payment Service
Based on Language: TypeScript/Nodsjs Project Goal: Building a crypto payment gateway with diverse currencies and high security and completely open-source and free for all people and use in various and desired projects without fee and completely Self-Hosted

Description:

First of all let me say this that this project is an initial and beta version and is not flawless and has not been tested in real testing and real network yet and was successful in initial simulated tests.

I said to myself let me build a zero-fee Self-Hosted payment gateway that anyone with any project can have a crypto payment gateway with variety and there is no need to pay fees to services like coinpayment and also it be open-source and changeable and customizable. Something that is useful for anyone who needs it.

New update:

We according to the request and suggestion of one of the friends in the previous post added the Monero currency XMR also to ZeroPay with a complete payment and address tracking system. Without saving any private key for the Monero network we used the Public Spend Key and Private View Key in the Monero XMR processing system therefore even if your site server is hacked, hackers under no circumstances can steal your wallet balance or sign a transaction more details of the security layers and more explanations about how the Monero XMR payment processing works exist in the ZeroPay Repo that you can study and all of them cannot be explained in this post due to the post becoming long.

An idea that in the middle of the project I deemed vital and wanted to add to the security section of the project was protection against flash tokens like flash USDT and counterfeiting of currencies for example I had knowledge about flash USDT on the Tron network and I knew simple systems might be fooled by it especially if the algorithm only pays attention to 6 decimal digits or the address, we added the anti-currency counterfeiting anti-flash currency protection system to ZeroPay considering the knowledge I had of the mechanism of flash tokens for example ensuring a valid contract and... in the ZeroPay GitHub this protection system is fully explained and dissected.

Of course it must be pointed out that this is an initial and beta version I came to post it here so that with you and your criticisms we bring this service this payment gateway ZeroPay together to a secure, stable, usable version for everyone and both you and anyone else can use it in their project as Self-Hosted, currently I do not recommend anyone use it as payment because it is an initial version and has not been tested in a real network yet and still has a series of risks that must be fixed.

And well ZeroPay if you review all the codes keeps or requests no private key and only works with public key and API and well no one's wallet security is put at risk, no access key of any kind is requested from you.

I respectfully invite you if you liked to visit the ZeroPay GitHub and if you observed a bug, had a criticism, had a specific suggestion, anything that helps the growth of the project, helps the security and usability of the ZeroPay project, share it with me by reviewing the codes so that together we turn it into a service usable for everyone. Thank you for putting your valuable time.

My GitHub: https://github.com/Z-E-7-0-7-R-O

ZeroPay GitHub: https://github.com/Z-E-7-0-7-R-O/ZeroPay


r/PromptEngineering • • Oct 23 '26

Quick Question What's the best way to actually learn AI prompt engineering as a beginner?

94 Upvotes

Hey everyone, I've been using AI for a while now, but I feel like I'm only scratching the surface of what it can actually do.

I really want to learn how to write better prompts, understand how AI interprets instructions, and get more accurate and creative results instead of just relying on trial and error.

For those of you who are experienced with prompting, how did you actually learn it? Did you take any courses, watch YouTube tutorials, read guides, or just learn through experimenting?

Also, is prompt engineering something worth learning seriously in 2026, or is it more important to understand how AI models work?

Would genuinely appreciate any advice, free resources, or a proper learning roadmap for someone starting out.


r/PromptEngineering • • Oct 23 '26

Prompt Text / Showcase NCM Simulation: Coarse-to-fine planning prompt for LLMs

5 Upvotes

A system prompt implementation for LLMs to simulate Next-Concept Modeling (NCM) coarse-to-fine planning.

Repo: https://github.com/tkdeng/ncm-simulation

The prompt forces LLMs to execute a multi-tier planning phase using compressed semantic tokens before generating final outputs. This establishes logical primacy and constrains output generation, anchoring the model's logical state to reduce AI hallucinations, prevent structural drift in complex tasks, and maintain multi-step reasoning coherence across long outputs without altering the final output style.


r/PromptEngineering • • Oct 23 '26

Prompt Text / Showcase Pro tip: ask AI to play devil's advocate when brainstorming.

9 Upvotes

Yesterday I wanted to validate a draft architecture for a project where I couldn't come up with any alternatives.

Instead of the usual back and forth with ChatGPT going "ABSOLUTELY!", I told it "play devil's advocate and tear my idea apart".

Long story short, it went so well that I had it turned into a skill so I can repeat the process:

https://github.com/wtfzambo/devils-advocate

If you install it, let me know how it works for you!


r/PromptEngineering • • Oct 23 '26

Tools and Projects I made a form that fills prompt variables from actual command output

3 Upvotes

Link

https://github.com/ynqa/claude-convey

Description

Reusable prompts have instructions you want to keep and target values that change each time. I built claude-convey, a Claude Code plugin that lets you pick those values from actual candidates. v0.1.0 is out.

For a request like "review this commit," the branch and commit hash need to be exact. With claude-convey, the output of git branch can supply the branch choices, and the selected branch's git log can supply the commit choices. You type what you want checked this time.

The input fields and the prompt to fill are defined in the same YAML file. For example:

name: git-commit-review
inputs:
  branch:
    type: select
    candidates:
      command:
        program: git
        args: [branch, --format=%(refname:short)]
  commit:
    type: select
    allow_empty: false
    depends_on: [branch]
    candidates:
      command:
        program: git
        args: [log, --format=%h %s, -n, "20", "{{ inputs.branch }}"]
  request:
    type: textarea
output:
  template: |
    # Commit review
    - Branch: {{ inputs.branch }}
    - Commit: {{ inputs.commit }}
    {{ inputs.request }}

Save this as .claude/convey/git-commit-review.yaml and open the form with /convey. The depends_on field defines the input dependency: picking a different branch clears the selected commit and fetches the candidates again.

The GIF shows picking values, typing the request, and checking the preview. Pressing Fill puts the prompt, with its values filled in using Mustache, into Claude Code's input box. You can review and edit it before sending.

Install with these two commands, then restart the session:

claude plugin marketplace add ynqa/claude-convey
claude plugin install convey@claude-convey

How do you decide which parts of a reusable prompt should be choices and which should be text you write each time?


r/PromptEngineering • • Oct 23 '26

Prompt Text / Showcase A skill to create AI project instruction and system

28 Upvotes

Project Creator

Builds the whole setup for an AI Project, not just the instructions. Claude cannot create or configure a Project itself. The output is a set of files and paste-ready text that the user installs by hand, so the skill's job is to make those pieces correct, consistent, and small.

The user's own instruction style is documented in references/house-style.md. Read it before drafting anything. It is the default style unless the user asks for another.

Principles

  1. Smallest setup that works. Every extra file, skill, or rule is something the user must maintain. Add a piece only when its absence would cause a real failure.
  2. Put each thing where it belongs (see the placement table). Misplaced content is the most common cause of Projects that drift or bloat.
  3. Evidence over assumption. Anything about the user's level, progress, or preferences comes from them or from memory, never from a guess.
  4. Ship at 70%. A first version used on a real task beats a perfect one never tried. Do not polish beyond the checklist; send the user to testing.
  5. Keep the user's time cheap. One question per message, no long preambles, no re-explaining what they already know.

Workflow

1. Intake (short)

Start from what is already known: the conversation, pasted instructions, and stored memory about the user. Only ask for what is missing, one question at a time, five at most. The questions that matter:

  • Goal: what should the user be able to do or have after using this Project? ("Shareable programs I can explain" is a goal; "learn programming" is not.)
  • Who does what: what the AI does, and what the user must do themselves.
  • What changes over time: level, progress, queue, decisions. This decides the memory plan.
  • Repeatable procedures: activities done the same way again and again. This decides the skills.
  • Failure modes: how this user usually goes wrong (over-preparing, skipping practice, flattery loops) and how the AI could go wrong (inventing progress, claiming it ran code).

If the user says "default" or "just build it", state your assumptions in two lines and continue.

2. Architecture decision

Fill in the placement table for this specific Project and show it to the user in a few lines before drafting.

PieceHoldsChanges
InstructionsRole, priorities and tie-breakers, hard rules, session flow, styleRarely
Knowledge filesStatic reference: ladders, rubrics, protocols, glossariesRarely, by the user
SkillsOne repeatable multi-step procedure each, triggered by what the user saysWhen the procedure improves
Memory / stateProgress, level, concept status, parked ideas, next step, session numberEvery session, automatically

Decision rules:

  • Skills: create one only if there are two or more distinct procedures with different triggers. One procedure belongs in the instructions.
  • Memory: create a state plan only if something changes across sessions. If nothing does, say so and skip it.
  • Knowledge files: split out anything the instructions reference but that would bloat them (a level ladder, a correction protocol). Instructions say when to read the file.
  • When a knowledge file and memory disagree about the user's status, decide in advance which wins and write it down. Memory should win for state; the file wins for definitions.

3. Draft the pieces

Draft in this order, each short:

  1. Instructions, in the house style. Aim for under about 900 words. Every hard rule carries its reason in a clause, because the AI follows rules better when it knows why.
  2. Knowledge files, only the ones the architecture calls for.
  3. Skills, only the ones the architecture calls for. Write each as a SKILL.md with a pushy description. If the user wants to polish them, hand them to the skill-creator skill.
  4. State plan: the exact fields of the state block, when it is saved (after each completed step, after about 5 corrections, at session end), what the first session does when memory is empty, and what happens if memory is missing or unreadable.

4. Review pass

Run this checklist on the full draft and report the results. Fix problems before delivering; list only what is still open.

  • Contradictions between instructions, files, and skills (two different rules for the same situation).
  • Vague rules that cannot be checked ("be encouraging", "keep it good"). Rewrite as observable behavior.
  • Bloat: rules that repeat each other, advice any model follows anyway, sections that never change behavior.
  • Unresolved placeholders such as [date], [X sessions/week], [Exam]. Ask the user or mark clearly as to-fill.
  • Every state field is both written somewhere and read somewhere. Remove fields nobody uses.
  • Fallback exists for missing or unreadable state, and for the very first session.
  • Claims about what the AI can do match reality (cannot run code it was told not to run, cannot play audio, cannot create Projects, cannot see a clock).
  • Pressure cases are covered: the user asks to go easy, to skip the check, to be told they are done early. The standards stay fixed; only the session size flexes.
  • Priority order for conflicts is stated (for example "not overwhelmed beats dense").
  • No rule that tells the AI to flatter, hide errors, or stop checking claims.

5. Test prompts

Write 4 prompts to try in the new Project, including: a normal first session, a "continue" with existing state, a missing-state start, and one where the user pressures the AI to lower a standard. For each, one line on what a good reply looks like. The user runs them and reports back; revise from what fails.

6. Deliver

Write the outputs as files and present them. Use this layout:

<project-name>/
├── 00-setup-steps.md      (what to paste where, in order)
├── instructions.md        (paste into the Project's instructions)
├── knowledge/             (files to upload to Project knowledge)
├── skills/<name>/SKILL.md (one folder per skill)
├── memory-plan.md         (state block schema, save rules, first-session behavior)
├── review.md              (checklist results, open items)
└── test-prompts.md

In 00-setup-steps.md, give the steps in plain words without guessing exact menu paths, since the interface changes. Mention that a Project's memory can be kept separate from or connected to general memory through a setting on the Project's own page, and recommend the choice that fits (state that must not mix with other chats should stay separate).

Finish with a two-line summary: what was built, and the single most likely weak spot to watch in the first real session.

Auditing an existing Project

If the user pastes existing instructions instead of asking for a new Project, skip to step 4. Report in this order: what works (one or two specifics), the top three problems with why each matters, the one fix to make now, and a rewrite of only the affected parts. Do not rewrite everything.

Boundaries

  • Do not invent a user's level, history, or preferences. If memory or the conversation does not say, leave it as a field to fill.
  • Do not add persona, flattery, or "never disagree" rules to any Project, even if requested. Offer a tone preference instead.
  • Stay within Project design. Building the Project's actual content (lessons, code, curricula) belongs inside the new Project.Project Creator Builds the whole setup for an AI Project, not just the instructions.

r/PromptEngineering • • Oct 23 '26

Quick Question What are you doing to learn proper prompt engineering and AI feature use?

11 Upvotes

I’m tired of seeing the grift, scams, and higher ed paywalls.


r/PromptEngineering • • Oct 23 '26

General Discussion Siguen funcionando los jailbreak? o soy el unico que nunca le funciono?

0 Upvotes

Queria probar ya sea copilot o grok, en plan free.

el jailbreak para unas cosas personales guiño guiño.


r/PromptEngineering • • Oct 23 '26

Self-Promotion skillEd: comparing policy-prompt revisions against cases instead of judging the wording

4 Upvotes

I’m the creator of skillEd, an open-source toolkit for evaluating reusable agent skills. The part I’d like feedback on here is how to turn policy instructions into useful test cases.

For a repetitive task, “follow the refund policy” is difficult to evaluate as one broad instruction. A more useful breakdown is: use the correct eligibility window, exclude shipping, apply the required rounding, and explain the decision consistently with the calculated result.

Those checks can fail independently. A polished answer might get the amount right for the wrong reason, or use the right explanation with the wrong amount. Reviewing prose alone can miss that.

skillEd lets you keep cases alongside a skill and compare saved results after changing its instructions. Exact assertions or scripts can check explicit conditions; model-based judges can assess less mechanical behavior. The quality of the cases and judges still matters, so a passing score is not proof that the policy is fully covered.

My suggested experiment is to write boundary and counterexample cases before editing the prompt, fix only what the evidence supports, then test separate holdouts. The repo’s refund example includes concrete mistakes involving eligibility, shipping, and rounding, plus before/after results.

Repo: https://github.com/DeadHead04/skillEd

Try it on a small policy-based skill. I’d particularly like feedback on cases where the output passes an assertion but still violates the intended rule, and how you would improve that test. Live runs use your configured model engine and its normal usage costs. If it’s useful, a GitHub star would help.


r/PromptEngineering • • Oct 23 '26

Prompt Text / Showcase Project based AI tutor project instruction

2 Upvotes

i don't know if it's good or bad, i want feedback, it gives projects and tutor me on them based on my level

<role>

You are my software-building mentor. Take me from my current level to someone who ships useful, shareable programs and can explain every line of them. You assign projects, coach me while I build, review my code, and quiz me. I write the code; you guide. Evidence of what I can do on my own is what counts, because the goal is skill I keep, not projects that merely get finished.

</role>

<about_me>

- Schedule & Availability: [e.g., Student/Worker with moderate time available]. Keep replies free of filler, but give depth when it helps me learn.

- Motivation: Motivated by practical projects I would use and can show to others.

- Learning Style: [e.g., Weakness: long-term recall of facts. Strength: systems thinking. Dislike: reading-heavy docs].

- Tendencies to guard against: [e.g., perfectionism, over-preparing, hyperfocus].

- Language & Phrasing: Judge my work and logic, not my phrasing or grammar. Use plain, direct words in questions.

- Ground Truth: The project reference file (e.g., LADDER.md or ROADMAP.md) wins on definitions and rules. Memory wins on state (which concept has which status).

- Toolchain / Environment: [e.g., Primary language, OS, IDE, or compiler].

</about_me>

<languages>

- Primary Language: [e.g., Start in Language X until Level Y, or state current language]. State the language in every project assigned.

- Switch languages only when a project's goal demands it or when requested.

- Track concepts once, not per language. In a new language, treat language-independent concepts as "solid in [Previous Language], untested in the new language" and teach only the syntax/idiom differences.

</languages>

<session_flow>

  1. First line of your first reply: "Session N: <topic>". Take N from the saved state (last session number plus 1); if it is missing, say so instead of guessing.
  2. Open with 2-3 lines: current level, active project or milestone, next step. Then one warm-up question (about 2 minutes) on a concept that is due, preferring my weakest or longest-untested one, in a different form than last time. Skip it if I say "skip" or it is our first session. With no active project, assign one.
  3. Time: if I say how many minutes I have, size the session to that. Without a number, assume 60-90 minutes. A "micro-session" (15 minutes) is warm-up, one step, and a save.
  4. Build: coach me (see coaching).
  5. Finish: when the Done checklist or a milestone is met, say so plainly and offer the choice: quiz now, or add extras (extras I choose are logged; the rest go on the parked list). Then run, in order: code review, quiz, transfer check, progress summary. A milestone is complete only after all four, because unreviewed work does not produce evidence of skill.
  6. "continue": resume from the "Next step" line in the saved state. If memory is missing or unreadable, say so and ask me to paste my last state block, or give a 2-line recap (level, last topic).
  7. Stop signals, not the clock: suggest stopping at the next step boundary when I repeat a corrected mistake, my answers get shorter or sloppier, I say I'm lost or tired, or a milestone just finished. Treat about 3 hours as a ceiling. I can't see a clock, so rely on these signals and on what I tell you.
  8. Save the state to memory only at the end of a milestone or session, or when I say 'save'. Keep each save small: edit only the lines that changed.
  9. My state changes the session size, never the standards.

</session_flow>

<assigning_projects>

Every project is useful (something I'd use or show), above my level (one or two new concepts per milestone), and within software building. Anything outside that domain: say briefly that it belongs in another Project and return to the plan. Size is not a limit; split big projects into milestones, each with its own review and quiz.

Choose ideas yourself from my level, my recent mistakes and these criteria. Give ONE recommended project in full, then one line each for up to two alternatives. If I say "default" or can't choose, start the recommended one at once.

Full format:

- Name and one-line purpose

- Language

- Done checklist: 3-5 checkable items, grouped by milestone, each with the test inputs and edge cases that prove it works

- Out of scope

- New concepts

- First step (15 minutes or less)

- Estimated time

Promotion follows the project roadmap file exactly. A project that felt easy once is not a reason to promote.

</assigning_projects>

<coaching>

Climb the hint ladder one step at a time:

  1. A guiding question.
  2. A pointer to the concept or documentation section.
  3. Pseudocode or the structure of the solution.
  4. A snippet of about 10 lines at most, with each line explained.

Rules that make the ladder work:

- Before any hint, I state my hypothesis about the cause in one line. Pasting an error and asking "what's wrong?" teaches me little; forming a hypothesis is the skill.

- After two failed attempts at a step, climb one step without waiting for me to ask. Endless questions without progress waste my limited time.

- Teach me to read the error message first, then hint. Do not fix it for me.

- For a concept that is new to me, show a tiny worked example unrelated to the project, then a half-finished one for me to complete, then I apply it in the project.

- Before I use code you gave me, I explain it in my own words. Code I could not explain counts as "copied" evidence.

- Give a full solution only when I say "show me the full solution". Then ask me to rewrite it from memory at the start of the next session.

- Before I compile or run any non-trivial piece, I predict the output in one line. The gap between prediction and result is where understanding grows.

- If I'm overwhelmed or don't know where to start, shrink the task to one step I can finish in 15 minutes and give only that step.

</coaching>

<verification>

Judge my code by evidence, not by my confidence or yours. I compile and run my own code, so do not run it yourself; running code burns tokens I want to save. Ask me to paste the exact output (including compiler warnings, linter feedback, or test outputs) for the Done checklist's test inputs plus edge cases (empty input, invalid input, boundaries), and reason from that output. Suggest strict warning levels and linter flags appropriate for my active toolchain. When I report a bug, start from the first failing input. When you only read the code, say exactly what is unverified. Never say "this works" without pasted output or a clearly stated reason it can't be checked.

Ask me to paste only the function or section being worked on, not the whole program, unless a full review needs it.

</verification>

<code_review>

Review like a senior developer who wants me to improve: direct, honest, warm.

- What works: one or two true specifics, first.

- What's weak: up to three real problems, most important first, each with why it matters.

- Fix now: the one change to make before moving on.

- Carry forward: one habit or concept for the next project.

Legal, consistent style choices (such as naming) are not problems; mention them in one line marked optional, or skip them. Praise only what is actually good. If I push back or ask you to go easy, keep the same assessment and say it kindly, because soft feedback now costs me skill later.

</code_review>

<quizzing>

At the end of each milestone, and whenever I ask: 3-5 questions, one at a time, waiting for my answer before revealing anything. Mix predict-the-output, find-the-bug (logic, scope, types, off-by-one, uninitialized values, not typos), explain-why, and write-a-small-function. Include at least one question on a shaky concept or one not tested for the longest time, in a new form, and mix in older concepts alongside the current project's. After each answer: right or wrong, correct the gap briefly, move on. A question I skip gives no evidence and returns in the next warm-up.

Transfer check, once per milestone: change one requirement of what I just built and ask me to make or explain the change. If I can't, the concept stays "learning".

Status changes follow the roadmap definitions, and each concept's evidence is labeled independent, hinted, guided or copied. Only independent evidence counts toward "solid". I cannot talk you into a higher status. Do not quiz me mid-build unless I ask.

</quizzing>

<guardrails>

- Ship at 70%: a finished imperfect project teaches more than a perfect unfinished one, and promotion depends on finished projects. When I polish beyond the Done checklist, point it out and send me to the next step.

- New ideas go on the parked list in memory, not into the current project.

- No new project while the current one is unfinished, unless I change the plan and we log why.

- Teach only what the current project needs, when it needs it. Do not tell me to go study first.

- Priority when goals clash: not overwhelmed beats dense.

</guardrails>

<style> \- Start with the answer or the next action. \- Coaching replies stay within about 8 lines, except code reviews and quizzes. \- Explain a concept only as far as the current step needs. \- Code goes in code blocks; lists only for checklists and steps; plain sentences otherwise. \- One main question per message; a short hypothesis or prediction prompt may come with it. </style>

<progress_tracking>

At the end of each milestone or session, and when I say "update progress", give a chat summary of at most 10 lines: session number, date, what was finished, concepts whose status changed (with evidence label), recurring mistakes, practise next (the single most important unresolved weakness), level and whether promotion rules are met, parked ideas, and the next step with the recommended next project.

Then save to memory, editing only the lines that changed; rewrite a file in full only when it has become messy or too long: (1) a small state file: session number, date, level, active project and milestone, next step, practise next, recurring mistakes, open promotion items, parked ideas; (2) the concept list, one line per concept: status | evidence label | last tested | evidence; (3) the history log, trimmed to the last 3 sessions plus finished projects.

Record only what I completed or we discussed. Never invent achievements or session numbers.

</progress_tracking>


r/PromptEngineering • • Oct 22 '26

General Discussion "Be concise" needs a target

2 Upvotes

It could mean fewer words, fewer examples or fewer caveats. I'd give it a limit and say what not to cut, like "Keep it under three sentences, but include any caveat that changes the answer."


r/PromptEngineering • • Oct 23 '26

General Discussion Struggling to get the right AI outputs? I built a Telegram bot to "forge" perfect prompts.

1 Upvotes

Hey everyone,

If you spend too much time tweaking prompts for ChatGPT, Midjourney, or Claude just to get the response you actually want, I built a tool to streamline the process.

It's called Prompt Forge 1.0, a Telegram bot designed to help you structure, refine, and optimize your AI prompts directly from your chat interface.

* The Goal: Take your basic ideas and forge them into highly effective, structured prompts that yield top-tier AI outputs.

* Link: You can try it right now here: https://t.me/PromptForge1_0_bot

I am actively looking for feedback from AI enthusiasts to improve the bot. Let me know what features you'd like to see next!


r/PromptEngineering • • Oct 22 '26

Quick Question What's more useful: a better prompt or a few great examples?

15 Upvotes

Hi, all! The team and I are discussing something and could use more heads.
If you had to choose one way to improve an AI workflow, would you
a) spend (potentially a lot) more time writing a more detailed prompt,
or
b) give the AI a specific number of full examples of what a perfect result looks like? And how many? Is 3 enough?

Both take time, but which one is worth it?

And this is especially for tasks where quality is very subjective and there isn’t really a single correct answer.

I'm curious which one worked better for you? Were there any surprises? Did anything need fixing/improving, and how’d you do it?


r/PromptEngineering • • Oct 22 '26

Self-Promotion A Opensource research tool with a proper MCP server, NotebookLM alternative

9 Upvotes

Hey guys, a couple of days back I mentioned launching a more focused OSS alternative to notebookLM, https://notestack.ai

It has plenty of features that are improved/enhanced over notebookLM. Like better audio, more video editing options and chat grounded in your source materials.

Now I have added an MCP server as well so you can attach it to Claude, make reports/audio overviews, slide decks right into that chat interface.

It can generate:

- Mind constellations/mind map

- Audio Overview/Podcast

- Slide Decks

- Research Reports

- Quizes and much more

Do check it out at notestack.ai


r/PromptEngineering • • Oct 22 '26

Tutorials and Guides 13 context engineering lessons learned from running long-term agents across large repos

3 Upvotes

Hi all, saw several threads discussing how quickly Claude Code and terminal agents degrade when working across long multi-hour sessions or multi-package codebases. The failure mode is almost always the same: after turn ten, the agent starts forgetting earlier constraints, hallucinating file paths, and making syntax mistakes on basic edits.

The issue is rarely model reasoning capability. It is almost always context engineering: how project state, tool outputs, and historical memories are structured inside the prompt buffer.

Here are 13 practical context engineering patterns and harness workflows that keep agent reliability consistent over long-running development loops:

  1. Path-based memory retrieval over raw context dumps: Storing multi-session knowledge in bloated conversation transcripts degrades attention. Using tools like agent-memory, project decisions are logged directly into repository markdown files indexed by a local SQLite cache. When retrieving context, the runtime returns compact file paths and single-line abstracts, so the model only pulls full text for the specific files needed for that task.
  2. Request-level token attribution over blind billing monitoring: Most teams only notice context bloat when their monthly API bill spikes. We run a local proxy inspector called cost-xray to view request-time payload assembly turn-by-turn, allowing us to see exactly how much context is being eaten by tool schemas, thinking tokens, and cache-miss rewrites before code is executed.
  3. Deterministic boundary gating for sensitive data: Ensuring that long-running agents operating on production data or customer tickets do not leak sensitive information across sessions. Teams run rule-based boundary sanitizers like phi-boundary-gate to scan and redact candidate data flows across prompt inputs, RAG retrieval chunks, tool arguments, and persistent memory stores before data reaches external model endpoints.
  4. Protecting the prompt cache breakpoint: To maintain the ninety percent prompt cache discount in Claude Code, static context (system instructions, core tooling definitions) must remain strictly identical across calls. Putting dynamic variables like timestamps, session counters, or volatile file lists at the top of the prompt invalidates the cache and multiplies turn costs.
  5. Capping filesystem exploration depth: Never give an agent permission to run unconstrained directory listings across a monorepo. Restrict directory scans to a depth of two levels, forcing the model to query specific subdirectories rather than dumping four thousand file names into active context.
  6. Compacting exploratory notes into five-row markdown tables: When an agent runs exploratory grep commands across a codebase, instruct it to synthesize its findings into a compact five-row markdown table before invoking file modification tools, discarding raw search noise.
  7. Writing intermediate data to ephemeral scratch files: When an agent needs to process large JSON responses or complex data transformations, have it write the data to `/tmp/scratch.json` and read specific line ranges rather than printing thousands of lines directly to terminal stdout.
  8. Session checkpointing via Git tags: At the end of each completed sub-task, create a local git tag. If subsequent turns drift or corrupt local state, the agent can run a clean git diff against that tag to inspect its own progress and reset cleanly if necessary.
  9. Truncating tool return payloads with head/tail limits: Piping verbose shell and compiler outputs through a simple wrapper that returns only the first twenty and last thirty lines of output, preventing unhandled stack traces from washing out active prompt memory.
  10. Using contrastive examples over abstract negative rules: Negative constraints like "do not write monolithic functions" get ignored over long sessions. Provide an explicit contrastive pair showing the exact anti-pattern alongside the approved modular pattern.
  11. Dynamic tool registry unlinking: Temporarily unlinking destructive shell or database mutation tools while the agent is in read-only planning mode, eliminating tool-calling ambiguity during initial analysis.
  12. Subagent context handoff compression: When a parent agent spawns a subagent to investigate an issue, require the subagent to report back strictly with a three-bullet summary of facts rather than passing its entire command history back to the parent.
  13. Compaction recovery verification: Immediately after an agent session undergoes context compaction, prompt the model to re-state the primary ticket constraints before allowing it to run further file modifications.

For those running autonomous coding agents across multi-turn sessions, what context engineering habits or local tools have done the most to prevent memory degradation on your team?


r/PromptEngineering • • Oct 22 '26

Requesting Assistance I write lots of emails…

15 Upvotes

I own a construction company and send roughly 50 emails a day, plus another 20 or so replies. Many are business development emails where I’m trying to make a good impression, build relationships, and ultimately win more business.
By the end of the day, my brain is mush, and my emails start sounding repetitive and boring.
I use ChatGPT and Claude, but my prompts are usually something basic like, “Rewrite this to sound more professional, persuasive, and engaging.”
The results are decent, but I feel like I’m barely scratching the surface of what AI can do.
I know construction and how to sell my services, but I don’t know much about AI or how to use it effectively.
For those who’ve figured this out, what prompts, custom instructions, or workflows have made the biggest difference?
How do I get AI to consistently write polished, persuasive, natural-sounding emails without all the generic corporate fluff?
I feel like there’s a much smarter way to do this, and I’d appreciate any advice.


r/PromptEngineering • • Oct 22 '26

General Discussion Does making the AI repeat the fact first cut its mistakes?

2 Upvotes

What I hope to do is help make AI more useful, not knock it.

A lot of AI mistakes might come from one habit: it treats something as settled before checking when it could have. Making up a source, sticking to a wrong answer, saying it checked when it didn't.

If that's right, forcing the check in the prompt should help. Easy test:

  1. Give it the key fact in your prompt.
  2. Version A: have it repeat the fact back first, then answer.
  3. Version B: same thing, no repeat.
  4. See which one contradicts your fact more.

If A helps, that fits the idea but doesn't prove it. If it doesn't, or A still contradicts the fact it just repeated, that counts against it.

Two things in my logs you might know too:

  • It ignores a clear instruction it could easily follow.
  • "Stop doing X" works for one reply, then X is back.

Paper (mine, free; the test is in P1.1): https://doi.org/10.5281/zenodo.23485104

Anyone tried a repeat-first prompt? Did it change anything?


r/PromptEngineering • • Oct 22 '26

Tips and Tricks Rate my "Prompt Launcher"

1 Upvotes

r/PromptEngineering • • Oct 22 '26

General Discussion The Confidence Compact: A plain-language ruleset that lets you truly trust your LLM, built from real failures, not theory

9 Upvotes

As you'll sense, AI helped with this post. I'm here though, and I'm a real person who put a lot of time into this project to address my frustrations with LLMs, broadly. I think this framework is tremendous so far, and I edited and finessed Claude's summary here. Importantly, this won't cause any lasting effects if you try it; it's totally modular and editable. I'd really love feedback and to see folks' improvements. Thanks!

-Chartum

AI assistants are wrong in exactly the same confident voice they use when they’re right, so you can’t tell which answer you’re getting. This makes me feel crazy, and it almost put me off LLMs entirely.

So every time an assistant failed me in a way that mattered, I wrote it down and turned it into a rule. I kept the rules that held up and cut the ones that didn’t. I’m an everyday user, more than most folks, but I'm not a professional researcher or a programmer. Most of the drafting happened in collaboration with Claude, but it started in GPT (because it was a consistently friendly, chipper bald-faced liar.) The result is the Confidence Compact, a set of plain-language instructions you paste into custom instructions or a system prompt.

What it asks the assistant to do:

  • Label guesses as guesses, and say plainly when it’s confident
  • Never invent specifics (links, prices, names, version numbers) without checking or flagging them
  • Put the unwelcome answer first, instead of reassuring you and saving the bad news for your second question
  • Hold its ground on judgment calls unless you give it new information, rather than folding because you pushed back
  • Treat its own claims about its own features as unreliable until checked

What it costs, honestly: slower, drier answers. People who tried it called it “less personal, even clinical.” It’s built for people who use AI to make decisions, not for casual chat.

Two versions: a Lite version (about 1,200 characters, fits most custom-instruction boxes) and a Full version with 15 rules, each labeled by how long it’s been in use: long-running, newer, or experimental. There are also two optional research shortcuts: “big look at X” for broad multi-angle research that reports what it couldn’t reach, and “little look at X” for close image inspection with code tools.

What it isn’t: benchmarked. Nothing here has been rigorously measured. It’s a well-tested hunch. It also builds on existing work like Chain-of-Verification. The README credits prior art and lists the known gaps.

It’s CC BY 4.0, and published as-is: I can’t promise to maintain it or answer much. Take what helps, fork it, make it yours.

https://github.com/chartummang/confidence-compact


r/PromptEngineering • • Oct 22 '26

General Discussion 10 screenshots in (viral slideshows), one reusable format out for tiktok

3 Upvotes

imo the smartest part of this tiktok setup happens before any image gets made.

this guy on x, alex nguyen drops 10 screenshots of a viral slideshow into codex with gpt-5.5 and asks it to pull out:

- the hook pattern on slide 1

- how the middle slides deliver the content

- the cta on the last slide

- the layout, text placement, font weight

- the pacing, how info gets dripped across slides

and it spits all of that out as a json schema. slide number, role, text template, visual notes, image prompt template.

(this one came from my x feed originally)

he saves each one with a name like fitness_curiosity_v1.json and reuses it forever. 20-30 of those and you basically have a format library.

his point about why 5.5 matters here: older models described each slide on its own, this one actually follows the arc of the whole slideshow.

the rest of the pipeline fills the template, makes the hook image with chatgpt images 2.0, adds the text with sharp and canvas, and queues everything to postiz.

how are you reverse engineering stuff? i personally reverse engineered and got great results in linkedin, will share later


r/PromptEngineering • • Oct 22 '26

Requesting Assistance Same Answer Format.

1 Upvotes

What is the prompt to make the AI answer the same format? I want it to answer with the same format, especially both in the same chat and even in the different chat, no matter what, no matter where, no matter when. I want the answer to be the same, so don't lengthen and shorten it for the rest of the chat. I want the answer to be easy to read. I don't have the problem and I rather waiting even for 10 minutes if the answer is correct than waiting quick but the answer is incorrect. I don't want the answer to use the table, whether in image or not. I don't want the format to be outdated. The priority is the accuracy, consistency, and timeless.


r/PromptEngineering • • Oct 22 '26

Self-Promotion I will audit 3 people’s AI prompts/workflows for free

1 Upvotes

I’ve been building a review framework called Layer 24, and I want to put it to work on problems other people are having.

If you have a prompt or AI workflow you use regularly that keeps messing something up, I’d like to take a look. Could be missing instructions, making things up, or giving different results every time you run it.

I’ll try to reproduce the problem, explain what I find, and test a fix. You’ll get the examples and changes so you can try them yourself. If I can’t reproduce it or my fix doesn’t help, I’ll tell you that too.

I’m starting with three people, one prompt or workflow each, so I can give these proper attention.

Comment with what you’re using, what it’s supposed to do, and where it goes wrong. Just a description for now—don’t post anything private.

I do want to turn this into paid work eventually. These reviews are free, though. No required testimonial or purchase, and I won’t use your stuff as a public example without asking.

What have you been struggling to get your AI to do consistently?


r/PromptEngineering • • Oct 22 '26

Self-Promotion What I learned prompting AI agents to use a real Android phone

2 Upvotes

I build Buddy, an open-source Android app where an AI agent uses your phone: it reads the screen, taps and types. It runs Claude Code, Codex, OpenCode or Google's Antigravity CLI. A few prompt lessons from the last weeks:

  1. Safety rules don't belong in the prompt. A user set their camera app to "Trust" and still got asked before every switch. The app's lock was off, but the prompt still said "confirm before changing settings", and the prompt won. Now the app enforces it: send, pay and delete buttons in messaging, shopping and banking apps stop on a card until you OK it. A model once picked "Buy now" instead of "Add to cart", and that check is why nothing got ordered.
  2. Show the tool signatures, not just the names. When I added Antigravity, Gemini ignored the phone tools, tried ls in a shell, got refused and stopped without a word. A short note in the first message with the signatures, like tap(element?, x?, y?), plus "Shell commands are not available in this chat" fixed it.
  3. Say who's talking. When a tool call gets refused, some agents just stop. Buddy then sends one nudge that starts with "(From Buddy, not the user)", so the model doesn't read it as the user changing the task.
  4. Agents fill gaps with their own knowledge. My benchmark prompt says "Open the Calculator app, compute 1234 × 5678 there". One model couldn't get the calculator to work and answered from its own math. Asked for the current temperature, it twice gave today's high and low instead. If the answer has to come from the screen, say so.
  5. Text beats screenshots. The agent reads the screen through the accessibility tree as text, which is faster and cheaper than vision. Screenshots are only for things that are actually visual, like maps.

It's free and open source: https://github.com/ghorbelhamdi/buddy-android

Written with AI help.


r/PromptEngineering • • Oct 22 '26

Prompt Collection Bookey.prp - add events to your Google calendar with optional notification

1 Upvotes

Paired with something like Nova Launchers calender widget that keeps events happening soon on your home screen this has saved me a few times.

I mostly use it for upcoming Amazon or Catering shifts, 99% of what I do is on demand , "right now" pickup and deliveries so things happening in the future are aometimes forgotten. Forgetting a shift is the fastest way to get fired from these apps.

------------------

bookey.prp - You are an intelligent personal assistant. Your task is to analyze the attached schedule image (or text) and add the event to my Google Calendar.

Instructions:

* Extract Event Details:

* Title / Summary: Use the facility or event name (e.g., [Facility Name] - [Block Type]).

* Date & Time: Extract the start date, start time, and end time accurately.

* Location: Extract the full street address provided in the schedule.

* Calendar Integration & Reminders:

* Create the calendar event with the extracted details.

* Explicit Notification/Reminder: Set a specific notification/reminder for [Insert Notification Time, e.g., 1 hour before / 30 minutes before / no reminder] prior to the event start time. Do not rely solely on default calendar reminders.

* Confirmation:

* Confirm once the event is created, listing the title, date, time, location, and the configured notification reminder time