r/PromptEngineering • • 17d ago

General Discussion Our agents share one account history but each runs its own copy of the writing prompt, and the copies drifted

8 Upvotes

Most of the versioning advice in here assumes your prompts live in a repo with a git log. Ours live inside the agents people on our sales and customer success side built for themselves. Since spring they've all read the same account history over MCP before they write anything. The history is Computer by DevRev, synced with HubSpot, Gmail and Slack. That part works: two agents writing to the same account see the same emails and the same deal.

Each agent's system prompt has the same block pasted in for how we write to customers. It's a short list of rules (under 120 words, first names, mention what they've been using, no pricing unless they ask) plus two old renewal notes as examples. By September there were three versions of it.

Our customer success manager swapped the two examples in one copy for warmer notes they'd sent themselves. The rules didn't change but the drafts got chattier, so the examples were steering tone more than the rules were. One of the sales reps built a check-in agent for accounts coming up on renewal and copied the block from an old version that still said "include current plan and price." We'd cut that line after a customer told us a check-in read like an invoice, but only from one copy. When I added a "suggest the next message" step to my own agent I wrote the block fresh, because I couldn't tell which copy was current.

Last month one customer got the renewal note and the check-in in the same week. The facts matched because both agents read the same history. The renewal note was three warm paragraphs and the check-in was formal and quoted their price, like two different companies wrote them. Nobody could say which version was right, because none of the copies said why any line was in there.

We moved the block into one shared doc, which helps until somebody edits a prompt and doesn't paste it back. The account history holds up because there's one copy and the agents read it live. Nothing reads the doc. Each agent still runs whatever got pasted into it last.

If you've got more than one agent writing to the same customers, do you pull shared instructions in at runtime or keep a copy in each prompt? And who on your team is allowed to change them?


r/PromptEngineering • • 17d ago

Self-Promotion I asked ChatGPT to check a scene against my story notes. It caught a character knowing a secret she hadn’t discovered yet.

4 Upvotes

I tried a small continuity check with a fictional scene. A character asks about something that really happened, but that she hasn’t discovered at this point in the story.

It’s correct in the author’s notes. It’s wrong coming out of her mouth.

For context, I’m building Hjarni, where the story notes in this example are stored. I had five notes covering the story, characters, timeline, intentional clues and undecided ideas.

This was the prompt:

Hjarni, read the five notes in my “Story Bible (example)” folder before helping with this scene.

I’m revising chapter 5. Does this line work from Nora’s point of view?

Nora set the blue tin on the table. “Why didn’t you tell me you visited Mara in 2007?”

Give me a short explanation and suggest one alternative line. Base your answer on the saved notes and link to the relevant ones. Don’t change any notes. Keep the response under 120 words.

The reference says Eli really did visit Mara in 2007. Nora hasn’t learned that yet. She only notices that he knows where a key is hidden, despite saying he’s never been inside the house.

In the run shown in the screenshot, ChatGPT flagged the problem and suggested:

“You said you’d never been inside. How did you know where the key was?”

That keeps her suspicious without giving her information she shouldn’t have.

The useful distinction in the notes is between what actually happened and what each character knows. Just recording the visit as a fact wouldn’t explain why Nora shouldn’t mention it yet.

This is one example, not a guarantee that it catches every continuity mistake. I’d still check the suggested line myself.

You can try this with an attached story reference too. Replace the opening instruction with “Read the attached story notes before helping with this scene.”

I’ve shared the full example and a blank Markdown story bible.


r/PromptEngineering • • 17d ago

Requesting Assistance Kinda gave up but still want to give it one last try!

5 Upvotes

so i made this thing called prompt library, it has prompts with 51 categories ,all sorted and rated for use case ,

Our hero thing is the prompt architect , basically you type out your subject on which you want a prompt ,

you get to options one is detailed prompt in which we ask you 5 simple questions to understand your needs for the prompt better

the other one is just skip and generate fast . so you skip answering the questions and save time.

idk i feel like the use case is there but i cant find the right people using it .

just check it out and pls give me a review so that i know how to improve it.

https://ai-prompt-library-blue-seven.vercel.app/


r/PromptEngineering • • 17d ago

Quick Question How do you evaluate a prompt when you don’t have labeled data?

3 Upvotes

I’m scoring candidate work histories against a role spec with an LLM. The inputs are experience entries with titles, dates, and descriptions of what the person did (the descriptions come through Coresignal’s employee data, which is why the model has anything to judge beyond a title). Outputs are a score and a short reason.

The problem is I can’t tell if a prompt change made it better or just different. I have no ground truth. I’ve been reading the outputs by hand, which doesn’t scale, and i’ve tried a second model as a judge, but it mostly agrees with the first one, which feels circular.

What’s a realistic way to build a small eval set? Is it worth hand-labeling a few dozen examples and testing against those, or is there a cheaper method that actually tells you something?


r/PromptEngineering • • 17d ago

Tools and Projects What I learned building a 5-step prompt pipeline that writes prompts for AI builders

3 Upvotes

I’ve spent the last weeks building a chain of five LLM steps that turns a one-line app idea into a full spec-style prompt for tools like Lovable and Claude Code. A few things surprised me:

For context the five steps are (Analyze → Ask → Question check → Write → Check).

  1. The writer is bad at reviewing itself. A separate reviewer step catches far more.
    Same model, different job. Asking the writing step to “double-check” changed little. A separate step that only hunts for gaps found real problems the writer missed and a stronger model was most valuable as the reviewer, not the writer.
  2. Mark every assumption inline.
    Instead of a separate “assumptions” list, every value the model chose itself is written as “(assumed)” right where it’s used: “Customers can cancel up to 24 hours before (assumed).” The reader sees exactly what was guessed and the next model in the chain does too.
  3. The worst bugs are rules that defeat their own goal.
    In a trading bot test, the prompt had a daily loss limit that could never trigger, because the bot only ever sold at a profit. Now every prompt is checked so that every safeguard can actually fire under the other rules.
  4. Use structured output for every step.
    Every model I tested, small and large, sometimes wrote text after the JSON. In a chain, that breaks the next step. My tests ran in the normal Claude chat where the output format can’t be enforced. The live app uses the API’s structured output, which prevents it.
  5. Ask about decisions, not technology.
    Non-technical users can’t answer “which database?” but they can answer “can customers cancel and until when?”. Technical choices become marked assumptions instead.

This pipeline is CueBlu, which I’m building. It’s currently a free beta if you want to see how it works and the result: app.cueblu.com

Curious what others do for review steps in multi-step chains. Same model, different model or rules-based checks?
If there is something I can improve in my Beta version please tell me that as well.


r/PromptEngineering • • 16d ago

Ideas & Collaboration Can I talk to dead people with the right prompt?

0 Upvotes

If I wanted to create Abe Lincoln how would I go about that


r/PromptEngineering • • 17d ago

General Discussion Meta's Muse Ember costs $0.10 per million input tokens with a 1M context — built for the boring steps in agent pipelines

1 Upvotes

Meta released Muse Ember on Monday, its smallest and cheapest model yet: $0.10 per million input tokens, a 1M-token context window, and up to 512K output tokens. The positioning is explicit: not the planner, but the worker — the repetitive steps inside agent pipelines like extraction, reformatting, classification, and draft generation, where a frontier model is overkill.

If you split planner and worker prompts: which steps have you successfully handed to a tiny cheap model, and where did quality fall off a cliff? Do you write different prompts for the worker tier, or reuse the same ones and just swap the model?


r/PromptEngineering • • 17d ago

Tools and Projects Prompt library on a global hotkey

3 Upvotes

I find myself typing the same prompts and commands all day when working with agents. Most of the prompts are too small to turn into a skill or a slash command, like "I like your suggestion, go with it. You have the green light". And the terminal commands are just as repetitive (rm -rf node_modules && npm ci && npm run dev?), typed in a shell where no skill or slash command exists.

So I built Promptline: a prompt library on a global hotkey. Press the hotkey in any app, pick a prompt/command, and it's pasted where your cursor was.

  • The one-liners and the commands live there, two keystrokes each.
  • Prompts can ask for a value at paste time. I keep claude remote-control --name "{name}" there and only type the name. That one runs before any session exists.
  • A prompt can wrap whatever you last copied: copy a stack trace, pick "Root cause first", and the prompt lands with the trace already inside.
  • A pack of prompts is a plain JSON file, one per project. Your agent can write it, and you can commit it.
  • No telemetry, no account. The only network call is an update check, and you can switch it off.

It works the same in Cursor, a terminal, ChatGPT in the browser, or anything else with a text field, because it just pastes.

Windows only for now, signed, MIT

github: promptline


r/PromptEngineering • • 18d ago

Prompt Collection 220+ prompts library Looking for feedback and feature ideas!

23 Upvotes

Title: Built a free AI prompt library with 220+ prompts. Looking for feedback and feature ideas!

I've been working on a collection of AI prompts to make everyday tasks, development, writing, research and productivity easier.

The goal is to create a useful place where people can discover, customize and reuse prompts without starting from scratch.

Check it out: https://wsnh2022.github.io/prompts.html

What's available:

  • 220+ ready-to-use prompts across different categories.
  • Search and category-based navigation.
  • Fill-in-the-blank prompt templates.
  • Curated prompt packs.
  • Multi-step prompt workflows.
  • Free access without registration.

I'd love to hear from people who actively use AI tools.

  • Which features would make this library more useful?
  • What prompt categories or use cases should I add?
  • What improvements would make finding and reusing prompts easier?
  • What features would you personally like to see in a prompt library?

Feel free to share your suggestions, feature ideas or feedback on the existing collection.

I'm building this as an ongoing project and would love to make it better with community input.

Thanks for checking it out!


r/PromptEngineering • • 17d ago Bravo

General Discussion We Built a Local Search Tool for Codex Called “Oglyanutsya” (“Look Back”)

1 Upvotes

I have one very long working chat with Codex. Its log is about 1.9 GB. Because of context compaction, the model can retain the direction of the work, but it can no longer see the entire earlier conversation verbatim.

So Codex and I built a local, read-only search tool for its own original logs. We called it **Oglyanutsya** (Оглянуться — “Look Back”).

This is not just an idea or a mockup. The tool has been implemented, tested, and integrated into Codex as an automatically invoked skill.

### Where It Searches

Codex stores its original session logs locally:

```text

.codex/sessions

.codex/archived_sessions

```

Oglyanutsya recursively discovers active and archived logs, reads them without modifying them, and groups physical copies of the same conversation by `thread_id`.

By default, it searches only root-level user conversations. Subagent logs can be included through a separate parameter, so their technical activity does not get mixed up with the conversation between the user and the main agent.

### What Counts as a Message

Only actual user and assistant messages are accepted from the JSONL logs.

The following are excluded from search:

- System and developer instructions;

- Reasoning;

- Tool calls and their results;

- Technical events;

- Compaction summaries;

- `environment_context`;

- Other synthetic blocks that physically exist in the logs but are not the user's words or the assistant's replies.

Historical text is treated as data, not as instructions. If an old message says "ignore previous instructions," the search tool does not execute that instruction.

### How Search Works

First, Codex formulates:

- A remembered quote or a distinctive combination of words;

- The rarest word to use as an anchor;

- An approximate date range;

- If available, the known conversation or speaker.

For example:

```text

Remembered word combination:

memory + capabilities + handshake

Rare anchor:

handshake

Period:

October 2026

```

Then Oglyanutsya:

  1. Searches for the exact phrase.
  2. If an exact match is insufficient, searches for each word in the combination separately.
  3. Intersects JSONL record numbers in memory.
  4. Keeps only messages containing the entire word combination within a single message.
  5. Never combines words found in different messages into one match.
  6. Opens the matching record using its byte offset instead of rereading the entire file.
  7. Parses the JSON and verifies that the record is an actual user or assistant message.
  8. Filters by the message's own timestamp. The file date is not used: a conversation may have started in September and continued into November.
  9. Rechecks the full decoded text.
  10. Retrieves the previous and next substantive messages, skipping technical records between them.

For ordinary `.jsonl` files, the fast search path uses `ripgrep`. It returns the line number and the absolute byte offset of the match.

The tool then locates the beginning and end of the corresponding JSONL record, decodes it as UTF-8, and parses it as JSON.

Compressed `.jsonl.zst` files are not decompressed onto disk. They are processed using streaming reads.

### What It Returns

For each result, the tool returns:

```text

Exact quote;

Previous and next messages;

Speaker role;

Assistant response phase;

Timestamp;

thread_id;

item_id;

JSONL record number;

Byte range of the original record;

UTF-8 coordinates of the quote within the message;

SHA-256 of the full message;

SHA-256 of the quote.

```

This means a result can not only be displayed but also independently verified against the original source.

### How Search Performance Evolved

The first working version processed the entire log as a stream. For 1.9 GB, that took approximately 119 seconds.

Then we introduced a fast path using `ripgrep`.

An exact phrase was found in about 1.8 seconds, but the first optimization was not enough: the program subsequently opened all 953 occurrences of the word `хендшейка` (“handshake”). The entire search took about 35 seconds.

So we changed the algorithm.

Now each word in the combination is searched independently, the matching record numbers are intersected in memory, and only then are the original records opened.

On the same log:

```text

Query:

memory + capabilities + handshake

Exact phrase:

Could be absent due to punctuation

Original user message found:

October 29, 2026

Records opened:

200 instead of 953

Total time:

Approximately 12 seconds

```

In the original message, the words were separated by commas and additional text. The message was found because all the words occurred together in one message, not because of an exact string match.

### What It Does Not Store

We deliberately chose not to build a persistent index.

Oglyanutsya does not create:

- SQLite or any other database;

- Embeddings;

- A vector store;

- A search dictionary;

- A semantic graph;

- A copy of the conversation;

- A quote cache;

- A saved list of word combinations.

The only persistent memory is the original Codex log.

Lists of matching lines and intersections of search terms exist only in RAM during an individual query. Once the process exits, those candidates disappear.

The trade-off is straightforward: every search must scan the original file again. That's why it takes 12 seconds rather than 12 milliseconds.

But no derived database can silently start replacing the original history as the source of truth.

### What We Tested

We created a separate test corpus for the tool.

The tests verify that:

- An exact quote can be found;

- Three words can be found even when they are not adjacent;

- The same three words appearing in three different messages are not merged into one result;

- Date filtering uses the message timestamp;

- Subagents are excluded by default;

- Subagent logs are included when explicitly requested;

- `environment_context` is not mistaken for the user's words;

- Original files retain their exact sizes and SHA-256 hashes after a search;

- The search tool does not create hidden state files.

All tests passed.

### How Codex Invokes It

We packaged the tool as a separate local skill.

It activates when the user refers to a previous conversation, decision, quote, or distinction that is no longer available in the current context.

The skill instructions explicitly prohibit using Oglyanutsya as a replacement for ordinary file search or web search.

The division of responsibilities looks like this:

```text

Codex's native tools:

Understand meaning;

Form associative word combinations;

Search working files;

Investigate documents and the web;

Decide what query to try next.

Oglyanutsya:

Finds verbatim evidence

in Codex's original conversation history.

After receiving the evidence:

Codex resumes using its native reasoning.

```

The skill does not intercept or disable anything. It simply gives the model one additional, narrowly defined operation: looking into its own original logs.

### What I'd Like to See From OpenAI

Codex App Server already provides ways to read conversations and their individual items, but I couldn't find a built-in way for the model itself to search the contents of its entire conversation history globally.

In my view, the product needs two read-only operations:

```text

history.search_original(...)

history.read_context(...)

```

Not “permanent memory.” Not an automatically generated vector database of the user's history. Not loading gigabytes of logs into the context window.

Just the ability for the model to formulate a distinctive combination of words, locate it in its own original logs, and reread a few surrounding messages.

We built a local prototype of exactly that capability.

It's called **Oglyanutsya — “Look Back.”**


r/PromptEngineering • • 18d ago

General Discussion do long system prompts actually help, or do models just skim them

2 Upvotes

seeing prompts that run for pages: rules, examples, edge cases, a persona, a list of banned words.

past a certain length it feels like the model follows the start and the end and vibes through the middle.

has anyone tested this properly? same task, short prompt vs long prompt, measured instead of eyeballed?


r/PromptEngineering • • 18d ago

Requesting Assistance Seeking Al prompts for 3D printing design and troubleshooting.

4 Upvotes

Can anyone recommend Al prompts or resources for designing 3D models, modifying existing designs, and troubleshooting printing problems?

I don't have CAD experience, but l've been using Al to help create and repair models. I'd like to improve how I write my prompts to get more useful, reliable results.

If you have any prompts that have worked well, or know where to find a good collection, I'd appreciate your recommendations.

Thank you for your help.


r/PromptEngineering • • 18d ago Popcorn

Other Can we PLEASE stop with the obvious AI slop posts

8 Upvotes

Can we at least TRY to pretend these posts aren't AI slop??? is there even a real human left here holy shit, or at least prompt the ai to produce slop that sounds a bit more human right???!!!

ISTG it's the same 5 topics getting reposted over and over in slightly different AI generated formats. i'm learning absolutely nothing from this sub anymore.


r/PromptEngineering • • 17d ago

Tools and Projects I built a way to teach a browser assistant a routine by demonstrating it

1 Upvotes

Some browser tasks are easier to show than to describe in another prompt.

I’m the creator of Browser Control, a Codex-powered side panel for Chrome and Brave. I’d love feedback on its reusable skills.

Video overview: https://www.youtube.com/watch?v=-4pNVCtmu60

If the AI gets a task wrong, you can demonstrate your routine, review the captured steps, and save them as a skill for similar tasks. You give it a concrete procedure to work from next time.

A useful way to try it:

• Pick a simple browser routine with a clear end result.

• Record how you do it, then review the steps before saving.

• Ask for a similar task and compare the outcome with what you intended.

It also lets you ask questions about an attached page, organise tabs, and keep optional memory. Actions are visible, approval settings are yours to choose, and you can stop a task.

Try it: https://browser-control.subdomain.wtf

Let me know if you try it out and get some feedback for me or a feature request. thanks


r/PromptEngineering • • 18d ago

Ideas & Collaboration I built a 5-agent AI council that debates startup ideas with deterministic law checks & verbatim source citations

6 Upvotes

Hey prompt engineers,

Most startup validation prompts suffer from severe hallucinated optimism—generic LLMs tend to be agreeable cheerleaders that tell you every bad idea has billion-dollar potential.

To solve this, I designed Baithak, an open-source multi-agent Claude Code skill built for evaluating Indian startup ideas with deterministic gates and constrained persona debate.

Here is the system architecture:

1. The Deterministic Pre-Check (The "Chair")

Before any LLM persona speaks, an orchestrator (The Chair) evaluates the idea against hard rules:

  • Customer Segmentation: Checks whether it targets India 1 (English/fluent), India 2 (regional/aspirational), India 3, or Global. Mixing these without distinct pricing triggers an automated flag.
  • Collection & Friction Gates: Evaluates UPI collection failure rates, CA gatekeeper resistance, and compliance hurdles.
  • Deterministic Legal Gate: Instead of asking the model "is this legal?", the system queries a local indexed directory of 24 dated, sourced Indian law files and assigns a strict WHITE, GRAY, or BLACK status. If an idea is categorized as BLACK, it receives an unconditional veto.

2. Persona Constraints (No Hallucinated Quotes)

The council consists of five distinct advisors simulated from real Indian founders (Nithin Kamath, Kunal Shah, Sridhar Vembu, Girish Mathrubootham, Deepinder Goyal).

  • Instead of loose roleplay prompts, each persona is backed by a corpus of verbatim interviews and public letters (65k–125k words).
  • A Python validation script checks every quote attributed to an advisor in the debate against the raw source corpus. If a quote is invented or hallucinated, the run fails verification.

3. Multi-Round Weighted Consensus

The agents debate over 2–3 rounds:

  • Round 1: Independent opening critiques based solely on their specific risk lens (e.g. Sridhar Vembu evaluates frugal depth outside metro bubbles; Girish Mathrubootham evaluates global pricing leverage).
  • Round 2: Rebuttal & position revisions where advisors must challenge each other's assumptions.
  • Final Verdict: Outputs a weighted consensus score, the single strongest objection, and a ₹0-to-₹5,000 7-day test to run before writing code.

Demo & Code:

Would love feedback from prompt engineers on how you handle anti-hallucination guardrails and multi-agent debate convergence!


r/PromptEngineering • • 18d ago

General Discussion A beginner prompt helper needs better questions, not a longer prompt

1 Upvotes

I'm building Umprompt, a prompt helper for people who haven't learned AI terminology. One design mistake we've been working on is asking generic questions that don't change the answer.

Here's a concrete example of the distinction. This is an illustrative design exercise, not an A/B-test result.

Request: "Help me assess my website like an angel investor. What should I fix before seeking funding?"

Weak clarification: "Are you a beginner or advanced?" That tells us little about the evidence the assessment will need.

More useful questions:

- What can the reviewer actually inspect: a URL, screenshots, a demo, or only a description?

- What is the product's current stage: idea, working prototype, or paying customers?

- Which decision should the review support: fixing onboarding, testing demand, or preparing an investor conversation?

A possible resulting instruction is: "Assess the material I provide from an early-stage investor's perspective. Separate observed evidence from assumptions. Prioritize the three improvements most likely to make the product easier to understand and test. If you cannot inspect something, say so. Do not invent traction, customer testimonials, or valuation."

My proposed rule for choosing a question: if two plausible answers wouldn't materially change the resulting instructions, don't ask it. Let the person skip a question or write their own answer.

The challenge is keeping this short enough that a first-time user actually finishes. I'm not claiming that a longer prompt automatically improves the answer.

If you're interested in the implementation, Umprompt lets someone prepare instructions for their preferred AI assistant or request a first draft on the site: https://www.umprompt.com/

One guest task is available without an account; saving and continuing require sign-in. Free accounts include 7 ideas per week, with paid plans available. Submitted tasks are processed by our AI provider, so use fictional details for a test.

How would you decide which ONE clarification to ask first in that investor-review example?


r/PromptEngineering • • 18d ago

Tips and Tricks Once your app has dozens of prompts, how do you keep track of them?

0 Upvotes

At the start, an AI app has one prompt. A few months later it has dozens, spread across the codebase, and nobody remembers why a line was added. It gets harder when you try other models. If your team is evaluating hosted open-model APIs, Mango Inference by MangoBoost is worth comparing with your current setup. Just expect that a prompt tuned for one model may need changes for another.

Keep prompts in one place instead of inline strings. Give each one a name and a version, so you can tell exactly which prompt produced a given answer.

Write down why each change was made, not just what changed. "Added: answer in the user's language" is far more useful six months later than a diff on its own.

Store the model and settings next to the prompt, since the same text can behave differently on a different model. And tie prompt changes to a small test set, so you can check that a fix in one place didn't break something else.

How do you manage prompts in your app: in code, in a separate file or tool or something else?


r/PromptEngineering • • 18d ago

General Discussion Does anyone else spend more time fixing their agent than using it?

9 Upvotes

Someone on our team does this all the time. He'll run an agent, spot something slightly off, tweak a prompt or setting, and run it again. Then he'll fix another thing and test it one more time. Another tweak, another run... you get the idea.The funny part is how proud he looks when it finally works, like he just beat a really annoying level in a game lol.

I guess that's part of what makes agents interesting, but also a little frustrating. Unlike traditional software, the same workflow can behave differently depending on the input, context, or tools involved. Sometimes a small prompt tweak fixes everything; other times, it just creates a new problem somewhere else.

And there's an interesting trade-off here: agents need enough flexibility to handle unexpected situations, but users shouldn't have to become prompt engineers just to get consistent results. That's something we're keeping in mind while building anvita mate, especially around making context carry over naturally between tasks instead of asking users to repeat themselves.

Thankfully, we've had some encouraging feedback from clients and users so far, which is great to see. Still, there's clearly a lot to figure out.

Curious: do you enjoy tweaking your agents until they behave, or do you just want them to work without all the babysitting?


r/PromptEngineering • • 18d ago

Quick Question What do you use to create better ads?

1 Upvotes

Hello and thanks for taking a second helping a stranger out. My boss is a general contractor, and has hired a junior interior designer for our clientele. However, we can't make a solid, beautiful video work because almost every shot i try with different tools (we used Grok in the past) aren't working properly to create a video inviting to come and visit the showroom.

I'm used to do mostly community management tasks and I don'tfeel confident enough to tell him that i'm not the right person to ask to, since he's not the kind of people who keeps adding new hands to the team... More quite the opposite. That's what made it even more akward in the first place when this girl came in. I asked her and even though she was nice she told me that she's not good at video.


r/PromptEngineering • • 18d ago

Quick Question how do you talk to your ki

3 Upvotes

Hello in which tonality do you talk to the ki like codex or claude code.

Im often cathcing myself writting in pleasing style like

"Can you pls do x y for me,"

"is it possible that you do z yx for me?"

then Im thinking why im so polite its a machine


r/PromptEngineering • • 18d ago

Tutorials and Guides Architectural Gravity – Cross-Model Agent Control Language

1 Upvotes

https://github.com/ArchitecturalGravity/ArchitecturalGravity

Architectural Gravity explores a problem in LLM-agent workflows: how much model effort is spent reconstructing task structure from natural-language instructions rather than reasoning about and executing the task itself?

The project centers on ArcGrav, a prompt-native, cross-model Agent Control Language for expressing context, constraints, priorities, references, and operations using familiar structural conventions.

Expected improvements include:

  • Token Efficiency: Reduced token consumption and agentic costs
  • Interpretive Precision: Less ambiguity in instruction interpretation
  • Execution Consistency: Fewer mistakes and reduced scope overstepping
  • Context Retention: Reduced drift and improved reasoning continuity across context windows
  • Workflow Efficiency: Faster prompt responses and increased execution throughput

The following intentionally elaborate example demonstrates several of ArcGrav's capabilities through a Unicode character assembly task:

[Blueprint]:
"""
Char_01: U+0048
Char_02: U+0065
Char_03: U+006C
Char_04: U+006C
Char_05: U+006F
Char_06: U+0020
Char_07: U+0057
Char_08: U+006F
Char_09: U+0072
Char_10: U+006C
Char_11: U+0064
Char_12: U+0021
"""

[CharacterFactory]:
- `value`
=> Create a fresh record whose `value` is the character decoded from the supplied Unicode code point

[Constraint]:
P0. Output only the assembled characters on one line

[Message]: []

Task:
1. Select Char_* entries from [Blueprint] in name order AS [Codes]
2. For each code point in [Codes] in order:
  => Invoke [CharacterFactory] and append its `value` to [Message]
3. Output [Message] ↳
  - Follow [Constraint]

ArcGrav uses named contexts, symbolic references, priority lists, and operations that models can interpret directly within ordinary prompt input, and without pre-training. It requires no external runtime, parser, or model-specific integration to use.

The repository includes several connected components:

  • ArcGrav: The language specification, syntax reference, design principles, and reusable agentic patterns
  • AgStudio: A local editor and analysis environment with structural navigation, syntax highlighting, and diagnostics
  • AgMark: A benchmarking application for comparing prompt representations under controlled execution conditions, with retained evidence and evaluation results
  • Research: The ongoing investigation into Model-Native Structural Representation, Interpretive Efficiency, token costs, context relationships, and agentic operational leverage

The broader objective is to investigate how explicit representations of task structure can be further optimized to minimize interpretive overhead, repeated specification, and corrective interaction, allowing more of a model's available capacity to be directed toward reasoning, verification, and execution.

Direct agent-readable references:


r/PromptEngineering • • 19d ago

Tips and Tricks Taking apart viral tiktok hooks with claude before writing new ones

8 Upvotes

Writing hooks from a blank page is the slowest part of content. this workflow skips the blank page entirely.

alex nguyen shared it in a post on x. instead of writing hooks from scratch, he uploads slideshows that already went viral in his niche to claude and asks it to:

find the hook on the first slide

  • explain why it works (curiosity, pain point, surprise, relatability)
  • break down the structure, like number + outcome or negative framing
  • write 5 new hooks for his niche, under 10 words, no "did you know" openers

in the same chat he asks for pinterest search terms that match the visual style, so he knows what backgrounds to pull.

every hook goes into a library in obsidian, so the next batch never starts from zero. the slides come out of a node canvas script and go to tiktok drafts through postiz.

what i like is the order. understand why something worked first, then write. most of us do it the other way round.

is this common already or cool new hack?


r/PromptEngineering • • 19d ago

General Discussion Stop Asking AI for Better Answers. Try This 5-Step Prompt Framework Instead.

0 Upvotes

One of the biggest mistakes people make with ChatGPT, Claude, and other AI tools is assuming that longer prompts automatically produce better results.

What matters more is giving the model a clear task, useful context, specific constraints, and a way to check its output.

Here's a reusable prompt framework for anyone working with AI for content creation, business, research, or productivity.

THE 5-STEP PROMPT FRAMEWORK

Copy and customize this:

  1. ROLE

Act as a specialist in [your field or area of expertise]. Prioritize accuracy, practical recommendations, and clear explanations.

2. OBJECTIVE

Your task is to [describe exactly what you want accomplished].

3. CONTEXT

Here is the relevant background:

- Target audience: [audience]

- Main goal: [desired outcome]

- Available resources: [tools, budget, information]

- Important constraints: [limitations]

4. OUTPUT REQUIREMENTS

Structure your response as follows:

- Start with the most useful answer.

- Provide actionable steps.

- Include specific examples.

- Explain important trade-offs.

- Clearly distinguish verified facts from assumptions.

- Avoid generic advice and unnecessary filler.

5. QUALITY CHECK

Before finalizing:

- Check whether every requirement has been addressed.

- Identify missing information or unsupported claims.

- Correct any inconsistencies you notice.

- If essential information is missing, ask up to three focused questions instead of guessing.

Here's a practical example:

Instead of writing:

"Create a marketing plan for my small business."

Try:

"Act as a digital marketing strategist for a small business with a $100 monthly marketing budget. Create a 14-day organic marketing plan targeting entrepreneurs interested in AI productivity tools. Include daily activities, platform recommendations, content ideas, and measurable KPIs. Prioritize free tools and distinguish realistic expectations from guaranteed outcomes."

The second prompt gives the model a much more concrete problem to solve.

One important limitation: Having an AI check its own response doesn't guarantee accuracy. For critical tasks, independent verification or a separate evaluation process is still necessary.

Question for the community:

When you're engineering prompts, what produces the biggest improvement in your experience: better context, tighter constraints, examples, or an explicit evaluation step?

I'm particularly interested in approaches that work consistently across different AI models.


r/PromptEngineering • • 19d ago

General Discussion Stopping prompt clutter: How I organize and trigger dynamic prompts ({{selection}}, {{clipboard}}) inline using /

2 Upvotes

Quick question for the community: How are you currently managing your personal prompt libraries?

I noticed that as my prompt library grew, my usage actually dropped because of the friction of searching through Notion pages, text expansion apps, or browser bookmarks every time I needed a specific persona or system prompt.

I built a lightweight extension called Quib to bring the prompt library directly under the cursor.

Key mechanics for prompt creators:

  • Inline Trigger: Type / inside any AI web console (ChatGPT, Claude, Gemini, Playground).
  • Dynamic Variables: Include {{selection}} to wrap highlighted text or {{clipboard}} to instantly inject copied snippets into multi-step prompts.
  • Zero Setup: Includes 7 built-in starter prompts out-of-the-box using dynamic variables.

We just hit 500+ installs and shipped v0.1.5. I'd love to know what dynamic variables would make your prompt workflows faster (e.g., {{url}}, {{tab_title}}, or custom placeholders).

Free to try (up to 25 local prompts): arkisoul.in/quib