# effective prompting

Published articles for effective prompting.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Improving the Energy-Efficiency of the Code Generated by LLMs through Effective Prompting

DevFeed: [Improving the Energy-Efficiency of the Code Generated by LLMs through Effective Prompting](<https://devfeed.tech/articles/improving-the-energy-efficiency-of-the-code-generated-by-llms-through-effective-prompting-99841.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2610.02571>)

Author: Ritika Rekhi, Bing Zhang, Md Arman Islam, Jaya Krishna Pasham, Yeswanth Chitturi, Akshay Paramesha, Isha Valiveti, Asif Imran, Bekir Turkkan, Tevfik Kosar

Published: 2026-10-26T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>), [arXiv: Software Engineering](<https://devfeed.tech/sources/arxiv-software-engineering.md>)

Topics: [Green Software](<https://devfeed.tech/topics/green-software.md>), [Sustainable Computing](<https://devfeed.tech/topics/sustainable-computing.md>), [Prompt Engineering](<https://devfeed.tech/topics/prompt-engineering.md>), [Code quality](<https://devfeed.tech/topics/code-quality.md>), [Claude](<https://devfeed.tech/topics/claude.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [ai-assisted-programming](<https://devfeed.tech/tags/ai-assisted-programming.md>), [c-plus-plus](<https://devfeed.tech/tags/c-plus-plus.md>), [code](<https://devfeed.tech/tags/code.md>), [code-generation](<https://devfeed.tech/tags/code-generation.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-se](<https://devfeed.tech/tags/cs-se.md>), [effective-prompting](<https://devfeed.tech/tags/effective-prompting.md>), [efficiency](<https://devfeed.tech/tags/efficiency.md>), [energy](<https://devfeed.tech/tags/energy.md>), [energy-efficiency](<https://devfeed.tech/tags/energy-efficiency.md>), [evaluation](<https://devfeed.tech/tags/evaluation.md>), [llms](<https://devfeed.tech/tags/llms.md>), [optimization](<https://devfeed.tech/tags/optimization.md>), [prompting](<https://devfeed.tech/tags/prompting.md>), [python](<https://devfeed.tech/tags/python.md>), [software](<https://devfeed.tech/tags/software.md>), [strategies](<https://devfeed.tech/tags/strategies.md>)

### AI overview

The study reports that prompting can reduce the energy use of LLM-generated code, though results vary by model and language. It evaluated eight selected strategies against a baseline across 10 open-weight and proprietary models, generating Python and C++ code. Across models, reductions reached 25% for Python and 17% for C++; reported model-specific peaks included 50% for Granite-4.0-H-Small in Python and 57% for the same model in C++. The abstract gives no details about individual prompting strategies or measurement methods.

### Source excerpt

arXiv:2610.02571v2 Announce Type: replace-cross Abstract: As AI-assisted programming becomes increasingly mainstream, the environmental impact of AI-generated software has emerged as an important consideration. This motivates evaluating LLM-generated code beyond functional correctness by considering execution efficiency and energy consumption. However, despite substantial advances in code generation, frontier LLMs are rarely evaluated based on the energy efficiency of the code they produce. In this work, we conduct a comprehensive evaluation of 21 prompting strategies for energy-efficient code generation and identify 8 strategies for evaluation across 10 widely used open-weight and proprietary LLMs. We evaluate their effectiveness for both Python and C++ code generation relative to a baseline prompt. Across the evaluated models, the selected prompting strategies achieved energy reductions of up to 25% for Python and 17% for C++ code generation. At the model level, Python energy reductions reached up to 50% for Granite-4.0-H-Small, 39% for Claude 4.5 Haiku, and 28% for MiniMax M3, while C++ reductions reached up to 57% for Granite-4.0-H-Small and 6.4% for Qwen3-Coder-480B-A35B-Instruct. These results demonstrate that prompting strategies can substantially influence the energy consumption of LLM-generated code, although their effectiveness varies across models and programming languages. Our findings highlight the importance of incorporating energy efficiency into the evaluation and optimization of LLM-based code generation and provide practical insights into designing prompts for more sustainable AI-assisted programming.

## The 3 Roles of Context for AI Agents

DevFeed: [The 3 Roles of Context for AI Agents](<https://devfeed.tech/articles/the-3-roles-of-context-for-ai-agents-55005.md>)

Original publisher: [Read original article](<https://www.nngroup.com/articles/3-agent-context-roles/>)

Author: Tanner Kohler

Published: 2026-09-18T17:00:00Z

Content type: article

Language: en

Sources: [NN/g latest articles and announcements](<https://devfeed.tech/sources/nn-g-latest-articles-and-announcements.md>)

Topics: [context](<https://devfeed.tech/topics/context.md>), [AI Agent](<https://devfeed.tech/topics/ai-agent.md>), [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>), [Claude](<https://devfeed.tech/topics/claude.md>)

Tags: [3-roles-of-context](<https://devfeed.tech/tags/3-roles-of-context.md>), [agent-skills](<https://devfeed.tech/tags/agent-skills.md>), [agentic-ai](<https://devfeed.tech/tags/agentic-ai.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-agent-context](<https://devfeed.tech/tags/ai-agent-context.md>), [ai-agents](<https://devfeed.tech/tags/ai-agents.md>), [ai-context-types](<https://devfeed.tech/tags/ai-context-types.md>), [ai-memory](<https://devfeed.tech/tags/ai-memory.md>), [ai-power-users](<https://devfeed.tech/tags/ai-power-users.md>), [ai-workflows](<https://devfeed.tech/tags/ai-workflows.md>), [ambient-context](<https://devfeed.tech/tags/ambient-context.md>), [api-keys](<https://devfeed.tech/tags/api-keys.md>), [article](<https://devfeed.tech/tags/article.md>), [better-prompts](<https://devfeed.tech/tags/better-prompts.md>), [claude](<https://devfeed.tech/tags/claude.md>), [claude-power-users](<https://devfeed.tech/tags/claude-power-users.md>), [context-curation](<https://devfeed.tech/tags/context-curation.md>), [context-engineering](<https://devfeed.tech/tags/context-engineering.md>), [context-for-ai-agents](<https://devfeed.tech/tags/context-for-ai-agents.md>), [context-library](<https://devfeed.tech/tags/context-library.md>), [effective-prompting](<https://devfeed.tech/tags/effective-prompting.md>), [email](<https://devfeed.tech/tags/email.md>), [global-context](<https://devfeed.tech/tags/global-context.md>), [local-context](<https://devfeed.tech/tags/local-context.md>), [markdown-files](<https://devfeed.tech/tags/markdown-files.md>), [mcp](<https://devfeed.tech/tags/mcp.md>), [mcp-connections](<https://devfeed.tech/tags/mcp-connections.md>), [model-context-protocol](<https://devfeed.tech/tags/model-context-protocol.md>), [persistent-memory](<https://devfeed.tech/tags/persistent-memory.md>), [prompt-engineering](<https://devfeed.tech/tags/prompt-engineering.md>), [prompting](<https://devfeed.tech/tags/prompting.md>), [slack](<https://devfeed.tech/tags/slack.md>), [streams](<https://devfeed.tech/tags/streams.md>), [types-of-ai-context](<https://devfeed.tech/tags/types-of-ai-context.md>), [user-profile-memory](<https://devfeed.tech/tags/user-profile-memory.md>)

### AI overview

The article explains three roles that context plays for AI agents: global information that shapes behavior across interactions, local information scoped to a task or project, and ambient raw streams such as email and meeting transcripts. It argues that curating context is central to obtaining useful, user- and business-relevant agent outputs.

### Source excerpt

AI-agent power users curate 3 kinds of context: global (across tasks), local (task-specific), and ambient (raw streams like email).

## GPT Shortcuts That Actually Work

DevFeed: [GPT Shortcuts That Actually Work](<https://devfeed.tech/articles/gpt-shortcuts-that-actually-work-87911.md>)

Original publisher: [Read original article](<https://jsdev.space/gpt-shortcuts-that-work/>)

Author: Anton Liberant

Published: 2026-05-18T00:00:00Z

Content type: article

Language: en

Sources: [JavaScript Development](<https://devfeed.tech/sources/javascript-development.md>)

Topics: [Prompt Engineering](<https://devfeed.tech/topics/prompt-engineering.md>), [AI Chat](<https://devfeed.tech/topics/ai-chat.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [analysis](<https://devfeed.tech/tags/analysis.md>), [chatgpt](<https://devfeed.tech/tags/chatgpt.md>), [code](<https://devfeed.tech/tags/code.md>), [effective-prompting](<https://devfeed.tech/tags/effective-prompting.md>), [llm](<https://devfeed.tech/tags/llm.md>)

### AI overview

The article sorts popular GPT shortcuts into useful, inconsistent, and mythical categories. It explains that clear instructions about tone, format, or task can help guide responses, while purported commands for hidden reasoning or bypassing safety do not unlock secret model capabilities. Examples include shortcuts for simpler explanations, step-by-step responses, critique, formatting, and code-focused output.

### Source excerpt

Learn which GPT shortcuts genuinely improve responses, which are unreliable, and which "secret commands" are complete myths.

## GitHub for Beginners: How to get LLMs to do what you want

DevFeed: [GitHub for Beginners: How to get LLMs to do what you want](<https://devfeed.tech/articles/github-for-beginners-how-to-get-llms-to-do-what-you-want-67561.md>)

Original publisher: [Read original article](<https://github.blog/ai-and-ml/github-copilot/github-for-beginners-how-to-get-llms-to-do-what-you-want/>)

Author: Kedasha Kerr

Published: 2025-03-31T13:00:32Z

Content type: tutorial

Language: en

Sources: [GitHub Blog](<https://devfeed.tech/sources/github-engineering.md>)

Topics: [AI interaction best practices](<https://devfeed.tech/topics/ai-interaction-best-practices.md>), [AI Context Management](<https://devfeed.tech/topics/ai-context-management.md>), [GitHub Copilot](<https://devfeed.tech/topics/github-copilot.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>)

Tags: [ai-ml](<https://devfeed.tech/tags/ai-ml.md>), [autocomplete](<https://devfeed.tech/tags/autocomplete.md>), [beginners](<https://devfeed.tech/tags/beginners.md>), [better](<https://devfeed.tech/tags/better.md>), [code](<https://devfeed.tech/tags/code.md>), [effective-prompting](<https://devfeed.tech/tags/effective-prompting.md>), [github](<https://devfeed.tech/tags/github.md>), [github-copilot](<https://devfeed.tech/tags/github-copilot.md>), [github-education](<https://devfeed.tech/tags/github-education.md>), [github-for-beginners](<https://devfeed.tech/tags/github-for-beginners.md>), [llms](<https://devfeed.tech/tags/llms.md>)

### AI overview

This GitHub for Beginners tutorial explains how large language models process prompts and how developers can improve results with clear, concise instructions, relevant context, and iterative refinement. Examples show refining a Copilot coding prompt and splitting complex requests into smaller steps.

### Source excerpt

Learn how to write effective prompts and troubleshoot results in this installment of our GitHub for Beginners series.