Close Menu
    Facebook LinkedIn YouTube WhatsApp X (Twitter) Pinterest
    Trending
    • Robot wins half marathon faster than human record
    • Analysis of 200 education dept-endorsed school apps finds most are selling BS when it comes to the privacy of children’s data
    • Spoofed Tankers Are Flooding the Strait of Hormuz. These Analysts Are Tracking Them
    • Polymarket is in talks to raise $400M at a ~$15B post-money valuation, up from $9B in October 2025, but below Kalshi’s $22B valuation from March 2026 (The Information)
    • Today’s NYT Connections: Sports Edition Hints, Answers for April 20 #574
    • Will Humans Live Forever? AI Races to Defeat Aging
    • AI evolves itself to speed up scientific discovery
    • Australia’s privacy commissioner tried, in vain, to sound the alarm on data protection during the u16s social media ban trials
    Facebook LinkedIn WhatsApp
    Times FeaturedTimes Featured
    Monday, April 20
    • Home
    • Founders
    • Startups
    • Technology
    • Profiles
    • Entrepreneurs
    • Leaders
    • Students
    • VC Funds
    • More
      • AI
      • Robotics
      • Industries
      • Global
    Times FeaturedTimes Featured
    Home»Artificial Intelligence»Achieving 5x Agentic Coding Performance with Few-Shot Prompting
    Artificial Intelligence

    Achieving 5x Agentic Coding Performance with Few-Shot Prompting

    Editor Times FeaturedBy Editor Times FeaturedJanuary 23, 2026No Comments9 Mins Read
    Facebook Twitter Pinterest Telegram LinkedIn Tumblr WhatsApp Email
    Share
    Facebook Twitter LinkedIn Pinterest Telegram Email WhatsApp Copy Link


    helpful instruments, particularly for programmers. I actually use LLMs each single day, and might’t think about a world with out them. Nevertheless, there are a couple of specific methods you may make the most of to attain even better outcomes with LLMs.

    I’ve lined a couple of completely different methods in earlier articles, reminiscent of:

    • Utilizing Slash instructions
    • Using plan mode
    • Constantly updating brokers.md

    On this article, I’ll cowl how one can leverage few-shot prompting to have your LLMs carry out even higher.

    Why use few-shot prompting

    Firstly, I wish to cowl why you need to make the most of few-shot prompting. Few-shot prompting is extremely helpful as a result of it permits you to present the LLM your intent with out having to explicitly write the intent out in your immediate.

    For instance, let’s say you desire a web site completed in a selected method, just like a earlier web site you made. And with out few-shot prompting, you would attempt to describe the earlier web site you need replicated and have the LLM create that new web site. Nevertheless, it will doubtless result in numerous ambiguity in your immediate, the place the LLM has to make some assumptions. Thus, you’ll doubtless not obtain the outcome you might be searching for.

    If as a substitute you present the LLM with the precise codebase, or a minimum of some screenshots of your earlier web site, and easily ask it to copy the web site, you’ll obtain significantly better outcomes. This primarily removes all ambiguity out of your immediate and helps the LLM obtain a lot better outcomes.

    I’m arguing for the truth that you need to use this few-shot prompting method in every little thing you do. So long as it’s not the primary time you’re engaged on a activity, all the time confer with a few of your earlier work for a way the LLM ought to do one thing. For instance:

    • Making advertising and marketing materials? -> present the LLM your earlier work
    • Including a brand new function to your app? -> present the LLM your earlier options
    • Creating new slash instructions? -> present the LLM the way you structured your earlier slash instructions

    I nearly assure you that by referring to your earlier work and exhibiting the LLM do one thing not solely within the immediate, however in precise implementation, you’ll obtain a lot better outcomes.

    This infographic highlights the principle contents of this text. I’ll talk about few-shot prompting and the way you leverage it to optimize your LLM’s efficiency. I’ll cowl factors like: organizing your previous work, present few-shot examples, iterating in your work, and the way increasing your library of labor will additional improve your LLM’s efficiency. Picture by Gemini

    Learn how to implement few-shot prompting

    Now I wish to talk about implement few-shot prompting. Few-shot prompting is just not one thing you may all the time implement. Some duties are merely new, and it’s very onerous to make the most of or leverage earlier work that you just’ve completed as a result of the brand new work merely isn’t related sufficient.

    That is fully effective and one thing you need to settle for. Nevertheless, you need to all the time search for alternatives to leverage few-shot prompting. Firstly, I’ll talk about how you need to set up your work to extend the floor space for few-shot prompting alternatives, and I’ll then present you do few-shot prompting in observe, utilizing examples.

    Organizing your work

    Firstly, it’s essential that you just set up all of your work in accessible folders in your laptop. Personally, I retailer nearly every little thing I do inside a programming predominant folder. I then have a folder construction of the code repositories I’m sometimes working in. One other folder consisting of some private initiatives I’m accessing generally. One other folder with the advertising and marketing materials I’m engaged on, reminiscent of LinkedIn posts and short-form movies, and one other folder for all the shows I’m holding on AI.

    Now, at any time when I begin a brand new activity, my first job is all the time to determine which folder this work belongs to. Usually, organizing work like that is simply common laptop organizing hygiene. Nevertheless, being organized like this makes it a lot less complicated to make the most of few-shot prompting sooner or later. I simply all the time advocate spending a while determining the place your work belongs to start with to be able to make the most of it on a later event.

    Moreover, you need to all the time be committing your work to GitHub. The rationale for that is that it permits you to retailer all of your progress and supplies you with a model historical past. So if one thing occurs to your laptop, otherwise you make adjustments you wish to revert, you may simply revert them utilizing Git.

    Moreover, if you happen to don’t have data of utilizing Git, it’s not likely a problem, as you may merely use an LLM to work together with Git for you. You don’t actually must work together with Git in any respect your self.

    Few-shot prompting in motion

    Now, assuming you’ve organized your work correctly, it’s time to begin benefiting from few-shot prompting. The idea of few-shot prompting is fairly easy. Everytime you begin new work, you merely confer with a folder or file of earlier work that you really want the pc to both replicate or comply with the identical styling or related.

    I feel it’s best if I present you, if I describe some particular examples of how I exploit few-shot prompting in observe.

    Writing code

    In all probability the commonest use case for me when few-shot prompting is writing code. Let’s say I wish to implement a GitHub Actions validation script in a brand new repository. I primarily by no means ask Claude Code to provide you with this script from scratch. As an alternative, I merely inform Claude Code, “This script exists in folder X, replicate or duplicate the script precisely within the repository I’m presently engaged on. Nevertheless, simply make this one change the place you don’t run the a part of the validation script”.

    This has two predominant advantages. For one, I’m nearly sure I’ll get the GitHub Actions validation script I’m anticipating, as a result of I do know it’s working within the different repository. Moreover that is nice as a result of regardless that I’m copying over the script from one other repository, I’m nonetheless capable of make adjustments. And on this instance, the change was that I don’t wish to run the total validation script. I wish to skip one a part of it on this new repository.

    Claude Code is nice at coping with these sorts of duties, the place you inform it to copy another piece of code after which make a couple of personalized adjustments. Which is why this works so effectively.

    Creating advertising and marketing materials

    One other quite common use case I’ve for few-shot prompting is creating advertising and marketing materials. Creating contemporary advertising and marketing materials is usually a time-consuming activity. It’s a must to, for instance, create model new shows or carousel views for use on LinkedIn.

    Moreover, it’s typically onerous to explain your actual preferences in relation to shows. You may want a selected form of font type or a selected form of alignment of textual content and pictures in your shows. That is merely onerous to explain in pure language, but it surely’s very clear to the mannequin if you happen to present it an instance of how this textual content font is or how textual content and pictures are aligned out of your earlier work.

    Thus, after I’m making a brand new presentation these days, I all the time present Claude Code my earlier shows and inform it the issues I wish to change from these earlier shows. The issues I wish to change are sometimes the precise content material of the presentation, after all, the place I describe every web page in my presentation to as a lot element as potential. That is, after all, essential to maintain the content material yours and never AI-generated.

    Moreover, I merely iterate loads with Claude Code. I instructed it to make me an preliminary draft of the presentation. I then evaluation the draft, transcribe all the adjustments I need modified via MacWhisper whereas reviewing the presentation, and have the AI make a second draft. I’ll then proceed like this till I’m proud of the presentation.

    Slash instructions

    Creating slash instructions can also be one thing I do on a fairly common foundation. Slash instructions are primarily saved prompts that you may have with the code that permits you to entry prompts quickly. I sometimes have slash instructions for instructions like making a pull request to dev, making a pull request to predominant, simplifying code, or working a PR evaluation.

    Nevertheless, I sometimes need my slash instructions to comply with a selected form of construction. The construction is a markdown construction with a couple of factors that I usually share throughout my completely different slash instructions. Thus, exhibiting Claude Code my earlier slash instructions makes the era of recent slash instructions loads less complicated, quicker, and extra more likely to comply with the preferences I’ve.

    Conclusion

    On this article, I’ve mentioned leverage few-shot prompting to attain one of the best outcomes along with your LLMs. Lively utilization of few-shot prompting by exhibiting the LLM examples of your earlier work could make your LLM much more environment friendly in your use instances. I like to recommend all the time striving to make use of few-shot prompting everytime you work with LLMs to attain one of the best outcomes. The most effective a part of few-shot prompting is that it will get higher the extra work you do. The extra work you do, the extra earlier examples you must present the LLM, and the higher it’ll carry out based on your preferences, which is what makes it such a terrific method.

    👉 My free eBook and Webinar:

    🚀 10x Your Engineering with LLMs (Free 3-Day Email Course)

    📚 Get my free Vision Language Models ebook

    💻 My webinar on Vision Language Models

    👉 Discover me on socials:

    💌 Substack

    🔗 LinkedIn

    🐦 X / Twitter



    Source link

    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    Editor Times Featured
    • Website

    Related Posts

    Will Humans Live Forever? AI Races to Defeat Aging

    April 20, 2026

    KV Cache Is Eating Your VRAM. Here’s How Google Fixed It With TurboQuant.

    April 19, 2026

    Proxy-Pointer RAG: Structure Meets Scale at 100% Accuracy with Smarter Retrieval

    April 19, 2026

    Dreaming in Cubes | Towards Data Science

    April 19, 2026

    AI Agents Need Their Own Desk, and Git Worktrees Give Them One

    April 18, 2026

    Your RAG System Retrieves the Right Data — But Still Produces Wrong Answers. Here’s Why (and How to Fix It).

    April 18, 2026

    Comments are closed.

    Editors Picks

    Robot wins half marathon faster than human record

    April 20, 2026

    Analysis of 200 education dept-endorsed school apps finds most are selling BS when it comes to the privacy of children’s data

    April 20, 2026

    Spoofed Tankers Are Flooding the Strait of Hormuz. These Analysts Are Tracking Them

    April 20, 2026

    Polymarket is in talks to raise $400M at a ~$15B post-money valuation, up from $9B in October 2025, but below Kalshi’s $22B valuation from March 2026 (The Information)

    April 20, 2026
    Categories
    • Founders
    • Startups
    • Technology
    • Profiles
    • Entrepreneurs
    • Leaders
    • Students
    • VC Funds
    About Us
    About Us

    Welcome to Times Featured, an AI-driven entrepreneurship growth engine that is transforming the future of work, bridging the digital divide and encouraging younger community inclusion in the 4th Industrial Revolution, and nurturing new market leaders.

    Empowering the growth of profiles, leaders, entrepreneurs businesses, and startups on international landscape.

    Asia-Middle East-Europe-North America-Australia-Africa

    Facebook LinkedIn WhatsApp
    Featured Picks

    eHang’s VT35 eVTOL air taxi: autonomous inter-city travel revealed

    October 13, 2025

    London-based Stanhope AI raises €6.7 million for adaptive AI in robotics and defence applications

    February 14, 2026

    Airstream’s new Atlas 25RT Class B+ camper van launch

    March 10, 2026
    Categories
    • Founders
    • Startups
    • Technology
    • Profiles
    • Entrepreneurs
    • Leaders
    • Students
    • VC Funds
    Copyright © 2024 Timesfeatured.com IP Limited. All Rights.
    • Privacy Policy
    • Disclaimer
    • Terms and Conditions
    • About us
    • Contact us

    Type above and press Enter to search. Press Esc to cancel.