Close Menu
    Facebook LinkedIn YouTube WhatsApp X (Twitter) Pinterest
    Trending
    • Bees support diverse hidden ecosystems
    • Google’s AI Search overhaul could crush startup SEO
    • SpaceX Is Spending $2.8 Billion to Buy Gas Turbines for Its AI Data Centers
    • Google publishes exploit code threatening millions of Chromium users
    • Google’s In-Car Gemini Dimmed the Sunroof, Ordered Dinner and Became My Tour Guide
    • Optimizing AI Agent Planning with Operations Research and Data Science
    • Mercedes-AMG electric GT 4-Door performance EV revealed
    • AI coworker startup Viktor raises €64.7 million Series A after hitting €12.9 million revenue run rate within 10 weeks of launch
    Facebook LinkedIn WhatsApp
    Times FeaturedTimes Featured
    Thursday, May 21
    • Home
    • Founders
    • Startups
    • Technology
    • Profiles
    • Entrepreneurs
    • Leaders
    • Students
    • VC Funds
    • More
      • AI
      • Robotics
      • Industries
      • Global
    Times FeaturedTimes Featured
    Home»Artificial Intelligence»How to Safely Run Coding Agents
    Artificial Intelligence

    How to Safely Run Coding Agents

    Editor Times FeaturedBy Editor Times FeaturedMay 20, 2026No Comments10 Mins Read
    Facebook Twitter Pinterest Telegram LinkedIn Tumblr WhatsApp Email
    Share
    Facebook Twitter LinkedIn Pinterest Telegram Email WhatsApp Copy Link


    as Claude Code and Codex have offered me the largest effectivity enhance I’ve ever skilled whereas programming, far more of a lift in comparison with getting extra highly effective computer systems or studying new subjects and methods.

    Nevertheless, a standard case when operating coding brokers in your laptop is:

    1. What number of permissions do you have to give your coding brokers?
    2. How do you run them safely when you give them a whole lot of permissions?

    On this article, I’ll cowl how I run my coding brokers safely on my laptop, why operating with YOLO mode is totally high-quality for most individuals, and why manually approving all permissions can really be fairly harmful in itself due to false confidence.

    This infographic highlights the principle contents of this text. I’ll talk about the best way to run coding brokers in a secure method, why you don’t have to carry out human overview on all code, the best way to keep away from operating unsafe actions, what number of permissions to provide your coding brokers, and the best way to run them safely. Picture by ChatGPT.

    Why run coding brokers

    To start with, I have to cowl why it is best to run coding brokers in your laptop. In case you’re working with programming, it must be fairly self-explanatory. Utilizing coding brokers to program as a substitute of manually programming is simply far more environment friendly. It could actually’t even evaluate to writing the code your self and even to tab completions. Having brokers write all of the code for you is now very a lot attainable, given how highly effective the most recent LLMs have grow to be, and it’s merely much more environment friendly at implementing code than people can ever be.

    Nevertheless, usually, some risks of operating coding brokers are identified, often mentioning the 2 factors under:

    1. It’s scary to not look and confirm the code your self or carry out a human overview.
    2. The brokers can carry out unsafe actions, and you should be sure that they don’t do something they shouldn’t do.

    On this article, I’ll cowl why I strongly disagree with these two factors and how one can make sure you run coding brokers safely in your laptop in your surroundings.

    Operating coding brokers safely

    On this part, I’ll be answering the 2 factors raised above, masking what number of permissions to provide your brokers, and the best way to run them safely when you present them with the permissions they want. I’ll cowl every half in a separate part.

    Why you don’t have to manually overview all code

    To start with, I wish to reply the primary query about how many individuals suppose that every one code must be manually reviewed. I strongly disagree with this argument as a result of coding brokers have grow to be so highly effective now that they write higher code, or at the least equally good code, than a whole lot of people. Sure, the code may not be excellent, adhering to each formatting rule or greatest practices. Nevertheless, the code that coding brokers produce is often very purposeful, and the brokers are extraordinarily good at discovering bugs.

    I’d argue that coding brokers in lots of instances can produce higher code than people as a result of they’re in a position to absorb far more of the context across the repository and thus keep away from a whole lot of bugs.

    If in case you have a decently organized code repository with a whole lot of particulars in your brokers.md information and different markdown information, and also you let different coding brokers carry out code critiques on the code you produce, I don’t suppose you should manually overview your code.

    After all, there are instances the place you’re touching very delicate code that can result in bugs. In these instances, it is best to naturally carry out a human overview, however for a lot of the code you produce, I don’t suppose a human overview is critical anymore.

    Guaranteeing brokers don’t carry out unsafe actions

    The second level talked about above was that brokers can carry out unsafe actions, and you should be sure that they don’t do one thing they shouldn’t do. It’s true that when you give your coding agent a whole lot of permissions, they’ll clearly carry out unsafe actions. For instance, when you give them huge AWS permissions, they’ll, after all, replace your infrastructure.

    Nevertheless, in my expertise, I’ve two counterarguments:

    1. The coding brokers very, very hardly ever really make these errors. I discover that Claude Code and Codex nearly at all times inform me earlier than performing an irreversible determination, or at the least a non-easily reversible determination. They don’t merely make severe errors which are very laborious to reverse.
    2. If a coding agent is ready to carry out a harmful motion, equivalent to deleting a manufacturing database or equal, I’d argue the issue isn’t within the coding agent, however in the best way you construction your code. An AI or a human shouldn’t be in a position to totally delete a manufacturing desk, clearly. In that case, you’ve to begin with given them method too huge permissions. Technically, a human may make that mistake as effectively. And secondly, you’ve not structured your code effectively sufficient. For instance, if a desk is deleted, it is best to be sure you have a backup.

    I don’t suppose the argument that brokers carry out unsafe actions is de facto true. The coding brokers mainly don’t make these irreversible errors, and if such a harmful irreversible mistake is feasible, equivalent to deleting a manufacturing database, then you should replace your code infrastructure to guarantee that it’s not attainable.

    What number of permissions to provide your brokers

    Now, let’s cowl what number of permissions you have to be offering your coding brokers. Every time I run my brokers, I run Claude with --dangerously-skip-permissions and Codex in YOLO mode. This implies I ask it to mainly by no means ask me for permission when performing an motion. The one exception I’ve to that is when operating the rm command, for instance, deleting recursively like under:

    rm -rf

    When operating this command, the brokers need to ask me for permission as a result of I do know it’s a harmful motion on my laptop that’s not reversible (i.e., I can’t recuperate information which are deleted with this command).

    In any other case, I’m very liberal with the permissions I give my brokers. Nevertheless, I attempt to restrict it to solely related permissions. For instance, a coding agent doesn’t want admin entry to AWS, however viewer and even energy entry might be useful for the agent to finish its work.

    Usually, I feel your rule must be:

    Be liberal along with your permissions. Be sure that the coding agent has all of the instruments it must successfully carry out its work. Nevertheless, additionally attempt to restrict the permissions to what the agent really wants, and watch out with admin-level permissions that may carry out harmful actions.

    I additionally wish to spotlight on this part that, after all, the quantity of permissions you give your brokers ought to rely upon the area you’re working in. In case you’re working in an excellent high-security area, equivalent to healthcare or army functions, it is best to undoubtedly be vastly extra cautious with the code you produce and the actions that your brokers carry out. Nevertheless, most programmers don’t work in these domains, which is true for my factors all through this text. I urge you to consider your use case and the way damaging or non-damaging errors might be from coding brokers.

    Methods to run coding brokers safely

    On this final part, I additionally wish to cowl the best way to run the coding brokers safely, given that you simply gave them a whole lot of permissions, as I lined within the final part. There are various methods you should use to run the coding brokers safely.

    One is, after all, to not give them admin-level permissions, equivalent to I lined within the final part, as a result of admin-level permissions usually contain having the ability to run irreversible instructions, which, usually, is one thing you wish to keep away from. Merely put, a coding agent ought to be capable of carry out any motion that’s reversible, since this provides them the freedom to successfully carry out duties. With irreversible selections, you have to be actually cautious.

    To make sure the code my coding brokers produce is efficient and to lower the chance of the code containing bugs, I usually use one other coding agent to carry out a code overview. I then have the brokers iteratively work collectively:

    • Create code
    • Carry out code critiques
    • Iterate on the code, given the code overview
    • Carry out one other code overview

    and so forth till each the reviewer and the implementer coding brokers are blissful.


    One other method value mentioning is which you can implement blocks on particular instructions are irreversible. That is, for instance, the rm command I discussed earlier, which might delete information on a pc. This deletion doesn’t find yourself in a trash bin as if a human deleted it. It merely is irrecoverable, and it’s a command you have to be cautious with. You may put a block on such instructions in order that the coding agent explicitly has to ask you for permission earlier than operating such a command.

    Conclusion

    On this article, I cowl why it is best to run coding brokers, highlighting how far more efficient a programmer you’ll be able to grow to be. Persevering with on that, I answered just a few widespread objections to utilizing coding brokers, equivalent to why you don’t have to manually overview all code and the best way to keep away from the brokers performing unsafe actions. Moreover, I gave some insights into what number of permissions it is best to give your coding brokers and the best way to run them safely when you give them liberal permissions, as I like to recommend for many programmers not working in super-sensitive domains. I urge you to constantly experiment with coding brokers, as I consider they’re the largest productiveness acquire you may get as a programmer proper now. You need to proceed working with them and work out for your self how one can make them each the simplest in your functions and the best way to run them safely. All through this text, I’ve given some suggestions and tips on my use instances, which you’ll be able to try to switch to your utility areas.

    👋 Get in Touch

    👉 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

    Optimizing AI Agent Planning with Operations Research and Data Science

    May 20, 2026

    Can LLMs Replace Survey Respondents?

    May 20, 2026

    From Possible to Probable AI Models

    May 20, 2026

    Introduction to Lean for Programmers

    May 19, 2026

    Deploying a Multistage Multimodal Recommender System on Amazon Elastic Kubernetes Service

    May 19, 2026

    Grounding LLMs with Fresh Web Data to Reduce Hallucinations

    May 19, 2026
    Leave A Reply Cancel Reply

    Editors Picks

    Bees support diverse hidden ecosystems

    May 21, 2026

    Google’s AI Search overhaul could crush startup SEO

    May 21, 2026

    SpaceX Is Spending $2.8 Billion to Buy Gas Turbines for Its AI Data Centers

    May 21, 2026

    Google publishes exploit code threatening millions of Chromium users

    May 21, 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

    Thursday Night Football: How to Watch, Stream Patriots vs. Jets Tonight on Prime Video

    September 20, 2024

    Nvidia announces DGX desktop “personal AI supercomputers”

    March 21, 2025

    ADHD medication reduces risks of accidents and crime

    August 15, 2025
    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.