IDEAS home Printed from https://ideas.repec.org/a/alk/fcsai0/v5y2026i8id12802.html

Cost-Aware Prompt Engineering: A Governance Architecture for Optimizing Enterprise AI Agents

Author

Listed:
  • Prasad Maderamitla

    (Independent Researcher, California, USA)

Abstract

As enterprises deploy large language model (LLM)-based and agentic AI systems across critical business functions, prompt engineering has emerged as a significant operational bottleneck. Prompts that are poorly structured, excessively verbose, or manually tuned without systematic comparison introduce hidden costs: elevated token consumption, increased inference latency, inconsistent output quality, and deployment risk. Despite its importance, prompt engineering in most enterprise environments remains an informal, trial-and-error discipline without governance, reproducibility, or measurable quality criteria. This paper proposes a Cost-Aware Prompt Engineering Governance Architecture (CAPEGA) designed for enterprise production environments. The architecture integrates four core components: iterative prompt optimization using SELF-REFINE techniques, structured prompt compression with instruction-preservation controls, metric-driven prompt comparison with cost and latency artifact generation, and CI/CD-ready governance workflows for prompt promotion and rollback. CAPEGA's contribution is architectural integration rather than novel algorithmic techniques: it combines established optimization methods into a unified, production-ready governance pipeline. Together, these components transform prompt engineering from an ad hoc craft into a reproducible, auditable engineering discipline. The framework is model-agnostic in design, model-specific in execution, and intended for integration into existing enterprise AI release pipelines. By establishing measurable quality gates for prompts, CAPEGA enables organizations to reduce token overhead, improve output consistency, control inference cost, and generate audit-ready evidence for production deployment decisions. An implementation architecture with component-level design is presented alongside the conceptual framework.

Suggested Citation

  • Prasad Maderamitla, 2026. "Cost-Aware Prompt Engineering: A Governance Architecture for Optimizing Enterprise AI Agents," Frontiers in Computer Science and Artificial Intelligence, Al-Kindi Center for Research and Development, vol. 5(8), pages 17-24, May.
  • Handle: RePEc:alk:fcsai0:v:5:y:2026:i:8:id:12802
    DOI: 10.32996/jcsts.2026.5.8.2
    as

    Download full text from publisher

    File URL: https://al-kindipublisher.com/index.php/fcsai/article/view/12802
    File Function: Abstract page
    Download Restriction: no

    File URL: https://al-kindipublisher.com/index.php/fcsai/article/download/12802/11510
    File Function: Full text
    Download Restriction: no

    File URL: https://libkey.io/10.32996/jcsts.2026.5.8.2?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;
    ;
    ;
    ;
    ;
    ;

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:alk:fcsai0:v:5:y:2026:i:8:id:12802. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Al-Kindi Center for Research and Development (email available below). General contact details of provider: https://al-kindipublisher.com/index.php/fcsai .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.