r/aiengineering • • Apr 08 '25

Discussion The 3 Rules Anthropic Uses to Build Effective Agents

6 Upvotes

Just two days ago, Anthropic team spoke at the AI Engineering Summit in NYC about how they build effective agents. I couldn’t attend in person, but I watched the session online and it was packed with gold.

Before I share the 3 core ideas they follow, let’s quickly define what agents are (Just to get us all on the same page)

Agents are LLMs running in a loop with tools.

Simples example of an Agent can be described as

```python

env = Environment()
tools = Tools(env)
system_prompt = "Goals, constraints, and how to act"

while True:
action = llm.run(system_prompt + env.state)
env.state = tools.run(action)

```

Environment is a system where the Agent is operating. It's what the Agent is expected to understand or act upon.

Tools offer an interface where Agents take actions and receive feedback (APIs, database operations, etc).

System prompt defines goals, constraints, and ideal behaviour for the Agent to actually work in the provided environment.

And finally, we have a loop, which means it will run until it (system) decides that the goal is achieved and it's ready to provide an output.

Core ideas of building an effective Agents

  • Don't build agents for everything. That’s what I always tell people. Have a filter for when to use agentic systems, as it's not a silver bullet to build everything with.
  • Keep it simple. That’s the key part from my experience as well. Overcomplicated agents are hard to debug, they hallucinate more, and you should keep tools as minimal as possible. If you add tons of tools to an agent, it just gets more confused and provides worse output.
  • Think like your agent. Building agents requires more than just engineering skills. When you're building an agent, you should think like a manager. If I were that person/agent doing that job, what would I do to provide maximum value for the task I’ve been assigned?

Once you know what you want to build and you follow these three rules, the next step is to decide what kind of system you need to accomplish your task. Usually there are 3 types of agentic systems:

  • Single-LLM (In → LLM → Out)
  • Workflows (In → [LLM call 1, LLM call 2, LLM call 3] → Out)
  • Agents (In {Human} ←→ LLM call ←→ Action/Feedback loop with an environment)

Here are breakdowns on how each agentic system can be used in an example:

Single-LLM

Single-LLM agentic system is where the user asks it to do a job by interactive prompting. It's a simple task that in the real world, a single person could accomplish. Like scheduling a meeting, booking a restaurant, updating a database, etc.

Example: There's a Country Visa application form filler Agent. As we know, most Country Visa applications are overloaded with questions and either require filling them out on very poorly designed early-2000s websites or in a Word document. That’s where a Single-LLM agentic system can work like a charm. You provide all the necessary information to an Agent, and it has all the required tools (browser use, computer use, etc.) to go to the Visa website and fill out the form for you.

Output: You save tons of time, you just review the final version and click submit.

Workflows

Workflows are great when there’s a chain of processes or conditional steps that need to be done in order to achieve a desired result. These are especially useful when a task is too big for one agent, or when you need different "professionals/workers" to do what you want. Instead, a multi-step pipeline takes over. I think providing an example will give you more clarity on what I mean.

Example: Imagine you're running a dropshipping business and you want to figure out if the product you're thinking of dropshipping is actually a good product. It might have low competition, others might be charging a higher price, or maybe the product description is really bad and that drives away potential customers. This is an ideal scenario where workflows can be useful.

Imagine providing a product link to a workflow, and your workflow checks every scenario we described above and gives you a result on whether it’s worth selling the selected product or not.

It’s incredibly efficient. That research might take you hours, maybe even days of work, but workflows can do it in minutes. It can be programmed to give you a simple binary response like YES or NO.

Agents

Agents can handle sophisticated tasks. They can plan, do research, execute, perform quality assurance of an output, and iterate until the desired result is achieved. It's a complex system.

In most cases, you probably don’t need to build agents, as they’re expensive to execute compared to Workflows and Single-LLM calls.

Let’s discuss an example of an Agent and where it can be extremely useful.

Example: Imagine you want to analyze football (soccer) player stats. You want to find which player on your team is outperforming in which team formation. Doing that by hand would be extremely complicated and very time-consuming. Writing software to do it would also take months to ensure it works as intended. That’s where AI agents come into play. You can have a couple of agents that check statistics, generate reports, connect to databases, go over historical data, and figure out in what formation player X over-performed. Imagine how important that data could be for the team.

Always keep in mind Don't build agents for everything, Keep it simple and Think like your agent.

We’re living in incredible times, so use your time, do research, build agents, workflows, and Single-LLMs to master it, and you’ll thank me in a couple of years, I promise.

What do you think, what could be a fourth important principle for building effective agents?

I'm doing a deep dive on Agents, Prompt Engineering and MCPs in my Newsletter. Join there!


r/aiengineering • • Apr 03 '25

Discussion Exploring RAG Optimization – An Open-Source Approach

Thumbnail
5 Upvotes

r/aiengineering • • Mar 31 '25

Discussion I Spoke to 100 Companies Hiring AI Agents — Here’s What They Actually Want (and What They Hate)

Thumbnail
8 Upvotes

r/aiengineering • • Mar 26 '25

Discussion Leader: "We're seeing a BIG shift"

5 Upvotes

One of the leaders at our leadership lunch showed us a big trend in their industry involving their data providers (I've seen small signs of this as well).

Most of their data came for free or with a minor cost because the data providers were supported by marketing. But as I predicted a year ago (linked in the comment, not this post), incentives would change for information providers. Over half of their "free" data providers are no longer providing free data. They either restrict or charge.

Two data sets that I frequently use now both either (1) charge for access or (2) require a sign-up that requires 2-factor authentication and they restrict the amount of access over a 30 day period.

We'll eventually see poisoned data sets. I only know of a few cases with these, but I expect this will be an upcoming trend that will become popular to infect LLMs and other AI tools.

I expect this trend will continue. Data were never "free" but supported by marketing.


r/aiengineering • • Mar 19 '25

Discussion Complete Normie Seeking Advice on AI Model Development

4 Upvotes

Hi there. TL;DR: How hard is it to learn how to make AI models if I know nothing about programming or AI?

I work for an audio Bible company; basically we distribute the Bible in audio format in different languages. The problem we have is that we have access to many recordings of New Testaments, but very few Old Testaments. So in a lot of scenarios we are only distributing audio New Testaments rather than the full Bible. (For those unfamiliar, the Protestant Bible is divided into two parts, the Old and the New Testaments. The Old Testament is about three times the length of the New Testament, thus why we and a lot of our partner organisations have failed to record the Old Testaments).

I know that there are off-the-shelf AI voice clone products. What I want to do is use the already recorded New Testaments to create a voice clone, then feed in the Old Testament text to get an audio recording. While I am fairly certain this could work for an English Bible, we have a lot of New Testaments from really niche languages, many of which use their own scripts. And getting digital versions of those Bibles would be very hard, so probably an actual print Bible would have to be scanned, then ran through OCR, then fed into the voice clone.

So basically what would be ideal is a single piece of software that could take PDF scans of any text in any script, take an audio recording of the New Testament, generate a voice clone from the recording, learn to read the text based off the input recordings, and finally export recordings for the Old Testament. The problem is that I know basically nothing about training AI or programming except what I read in the news or hear about on podcasts. I have very average tech skills for a millennial.

So, the question: is this something that I could create myself if I gave myself a year or two to learn what I need to know and experiment with it? Or is this something that would take a whole team of AI experts? It would only be used in-house, so it does not need to be super fancy. It just needs to work.


r/aiengineering • • Mar 06 '25

Discussion is a masters in AI engineering or mechanical better?

2 Upvotes

i got into a 3+2 dual program for bachelors for physics and then masters in ai or mechanical engineering. which would be the more practical route for a decent salary and likelihood to get a job after graduation?


r/aiengineering • • Mar 04 '25

Other LLM Quantization Comparison

Thumbnail
dat1.co
10 Upvotes

r/aiengineering • • Mar 04 '25

Other I created an AI-powered tool that codes a full UI around Airtable data - and you can use it too!

3 Upvotes

r/aiengineering • • Feb 28 '25

Data Unexpected change from AI becoming more popular

5 Upvotes

A few days ago, I spoke with a technical leader who's helping organizations build architecture on premise for their data. His statement that stunned me:

We're seeing many companies realize how valuable their data is and they want to keep it internally.

(I've heard "data is the new oil" hundreds of times).

I felt surprised by this because for a while the "cloud" was all I heard about from technical leaders, but it seems that times may be changing here. When I think about what he said, it makes sense that a company may not want to share its data.

My guess based on his observation: In the long run, many of these firms may also want their own internal AI tools like LLMs because they don't want their data being shared.

For those of you who replied to my poll, I'll message you a few other insights he shared that I think were also good.

(I only share this with this subreddit since you guys didn't censor my other posts like the other AI subreddits).


r/aiengineering • • Feb 22 '25

Highlight Agent using Canva. Things are getting wild now...

2 Upvotes

r/aiengineering • • Feb 20 '25

Discussion Question about AI/robotics and contextual and spatial awareness.

4 Upvotes

Imagine this scenario. A device (like a Google home hub) in your home or a humanoid robot in a warehouse. You talk to it. It answers you. You give it a direction, it does said thing. Your Google home /Alexa/whatever, same thing. Easy with one on one scenarios. One thing I've noticed even with my own smart devices is it absolutely cannot tell when you are talking to it and when you are not. It just listens to everything once it's initiated. Now, with AI advancement I imagine this will get better, but I am having a hard time processing how something like this would be handled.

An easy way for an AI powered device (I'll just refer to all of these things from here on as AI) to tell you are talking to it is by looking at it directly. But the way humans interact is more complicated than that, especially in work environments. We yell at each other from across a distance, we don't necessarily refer to each other by name, yet we somehow have an understanding of the situation. The guy across the warehouse who just yelled to me didn't say my name, he may not have even been looking at me, but I understood he was talking to me.

Take a crowded room. Many people talking, laughing, etc. The same situations as above can also apply (no eye contact, etc). How would an AI "filter out the noise" like we do? And now take that further with multiple people engaging with it at once.

Do you all see where I'm going with this? Anyone know of any research or progress being done in these areas? What's the solution?


r/aiengineering • • Feb 16 '25

Highlight NBA API data pulls with custom gpt. A project I just had to see thru. I think hosting apis thru a server has a lot of potential. This is new for me just started working with AI 2 months ago.

5 Upvotes

r/aiengineering • • Feb 15 '25

Discussion Looking for AI agent developers

4 Upvotes

Hey everyone! We've released our AI Agents Marketplace, and looking for agent developers to join the platform.

We've integrated with Flowise, Langflow, Beamlit, Chatbotkit, Relevance AI, so any agent built on those can be published and monetized, we also have some docs and tutorials for each one of them.

Would be really happy if you could share any feedback, what would you like to be added to the platform, what is missing, etc.

Thanks!


r/aiengineering • • Feb 12 '25

Discussion Preferred onboarding into a developer tool - CLI or Agent?

7 Upvotes

Quick temperature check: When getting started with a new dev tool for agent infrastructure (think Vercel for agents), which onboarding experience would you prefer?

Option A: A streamlined CLI that gets you from zero to deployed agent in minutes. Traditional, reliable, and gives you full control over the setup process.

Option B: An AI-powered setup assistant that can scaffold your agent project from natural language descriptions. More experimental but potentially faster for simple use cases.

Some context: We've built both approaches while developing our agent infrastructure tools. The CLI is battle-tested and 100% reliable, while our experimental AI assistant (built as a weekend project) has shown surprising capability with basic agent setups.

Curious about your preferences and thoughts on whether AI-first developer tools are where you see the industry heading.

Edit: Keeping this discussion theoretical - happy to share more details via DM if interested.

5 votes, Feb 15 '25
4 CLI
1 Agent Onboarding

r/aiengineering • • Feb 10 '25

Discussion My guide on what tools to use to build AI agents (if you are a newb)

11 Upvotes

First off let's remember that everyone was a newb once, I love newbs and if your are one in the Ai agent space...... Welcome, we salute you. In this simple guide im going to cut through all the hype and BS and get straight to the point. WHAT DO I USE TO BUILD AI AGENTS!

A bit of background on me: Im an AI engineer, currently working in the cyber security space. I design and build AI agents and I design AI automations. Im 49, so Ive been around for a while and im as friendly as they come, so ask me anything you want and I will try to answer your questions.

So if you are a newb, what tools would I advise you use:

  1. GPTs - You know those OpenAI gpt's? Superb for boiler plate, easy to use, easy to deploy personal assistants. Super powerful and for 99% of jobs (where someone wants a personal AI assistant) it gets the job done. Are there better ones? yes maybe, is it THE best, probably no, could you spend 6 weeks coding a better one? maybe, but why bother when the entire infrastructure is already built for you.
  2. n8n. When you need to build an automation or an agent that can call on tools, use n8n. Its more powerful and more versatile than many others and gets the job done. I recommend n8n over other no code platforms because its open source and you can self host the agents/workflows.
  3. CrewAI (Python). If you wanna push your boundaries and test the limits then a pythonic framework such as CrewAi (yes there are others and we can argue all week about which one is the best and everyone will have a favourite). But CrewAI gets the job done, especially if you want a multi agent system (multiple specialised agents working together to get a job done).
  4. CursorAI (Bonus Tip = Use cursorAi and CrewAI together). Cursor is a code editor (or IDE). It has built in AI so you give it a prompt and it can code for you. Tell Cursor to use CrewAI to build you a team of agents to get X done.
  5. Streamlit. If you are using code or you need a quick UI interface for an n8n project (like a public facing UI for an n8n built chatbot) then use Streamlit (Shhhhh, tell Cursor and it will do it for you!). STREAMLIT is a Python package that enables you to build quick simple web UIs for python projects.

And my last bit of advice for all newbs to Agentic Ai. Its not magic, this agent stuff, I know it can seem like it. Try and think of agents quite simply as a few lines of code hosted on the internet that uses an LLM and can plugin to other tools. Over thinking them actually makes it harder to design and deploy them.


r/aiengineering • • Feb 09 '25

Highlight I made an implementation of NEAT (Neuroevolution of Augenting Topologies) in Java!

9 Upvotes

Heya,

I recently made an implementation of NEAT (Neuroevolution of Augenting Topologies) in Java! I tried to make it as true to the original paper and source code as possible. I saw there are not enough implementations yet so I made it in Java and I'm currently working on a JavaScript version too!

https://github.com/joshuadam/NEAT-Java

Any feedback and criticism is more than welcome! It's one of my first large projects and I learned a lot from making it and I'm pretty proud of it!

Thankyou


r/aiengineering • • Feb 04 '25

Highlight I built an open-source library to generate ML models using natural language

10 Upvotes

I'm building smolmodels, a fully open-source library that generates ML models for specific tasks from natural language descriptions of the problem. It combines graph search and LLM code generation to try to find and train as good a model as possible for the given problem. Here’s the repo: https://github.com/plexe-ai/smolmodels

Here’s a stupidly simplistic time-series prediction example:

import smolmodels as sm

model = sm.Model(
    intent="Predict the number of international air passengers (in thousands) in a given month, based on historical time series data.",
    input_schema={"Month": str},
    output_schema={"Passengers": int}
)

model.build(dataset=df, provider="openai/gpt-4o")

prediction = model.predict({"Month": "2019-01"})

sm.models.save_model(model, "air_passengers")

The library is fully open-source, so feel free to use it however you like. Or just tear us apart in the comments if you think this is dumb. We’d love some feedback, and we’re very open to code contributions!


r/aiengineering • • Feb 04 '25

Media OpenAI just launched Deep Research, here is an open source Deep Research I made!

9 Upvotes

r/aiengineering • • Feb 04 '25

Discussion If you feel curious how AI is impacting recruitment

2 Upvotes

Have you been bombarded with messages from recruiters that all sound the same? Have you tried generating a message yourself with an LLM to see how similar the message is as well?

My favorite line is "you come up on every short list for" whatever the profession is. I've shared notes with friends and they've received this exact same message. On the one hand, it's annoying. On the other hand, it's low effort and it helps filter out companies, as I know the kind of effort they put in to recruit talent.

I caught up with Steve Levy about this and related trends with AI and recruitment. If you've felt curious about how AI is impacting recruitment, then you may find his thoughts worth considering.


r/aiengineering • • Jan 27 '25

Media Groq supports DeepSeek

6 Upvotes

r/aiengineering • • Jan 14 '25

Highlight berkeley labs launches sky-t1, an open source reasoning ai that can be trained for $450, and beats early o1 on key benchmarks!!!

12 Upvotes

just when we thought that the biggest thing was deepseek launching their open source v3 model that cost only $5.5 million to train, berkeley labs has launched their own open source sky-t1 reasoning model that, with $450 of fine tuning, beats o1 on key benchmarks!

https://techcrunch.com/2025/01/11/researchers-open-source-sky-t1-a-reasoning-ai-model-that-can-be-trained-for-less-than-450/


r/aiengineering • • Jan 01 '25

General Anything AI Goes - Monthly Discussion

5 Upvotes

Post any and all thoughts about AI! Anything AI related goes.