r/AIAgentsInAction

6 GitHub repos that take you from zero to production AI agents
▲ 968 r/AIAgentsInAction+1 crossposts

6 GitHub repos that take you from zero to production AI agents

6 GitHub repos that take you from zero to production AI agents, all free:

1. awesome-llm-apps (140k+ stars)

100+ open-source agents, agent skills and RAG apps. Clone one, ship it, sell it. Apache-2.0.

https://github.com/Shubhamsaboo/awesome-llm-apps

2. awesome-mcp-servers (95k+ stars)

The master list of MCP servers. If you want your agent to touch real systems, its tool catalog lives here.

https://github.com/punkpeye/awesome-mcp-servers

3. llm-course (83k+ stars)

The standard self-study roadmap into LLMs, with Colab notebooks for every stop.

https://github.com/mlabonne/llm-course

4. ai-agents-for-beginners (76k+ stars)

Microsoft's 18-lesson agents course: design patterns, agentic RAG, memory, MCP and A2A, production.

https://github.com/microsoft/ai-agents-for-beginners

5. RAG_Techniques (29k+ stars)

Every advanced RAG technique as a runnable notebook. The gap between demo RAG and RAG that works.

https://github.com/NirDiamant/RAG_Techniques

6. agents-towards-production (21k+ stars)

End-to-end tutorials for the unglamorous part: evals, guardrails, deployment, cost control.

https://github.com/NirDiamant/agents-towards-production

The order matters. Apps first to see what is possible, fundamentals second, production last.

♻️ Save this. You will need number 6 sooner than you think.

-------------------------------------------------

Discover the best GitHub repos without the endless scrolling.

Get top repos organized by category (AI, DevOps, Databases & more), plus key takeaways from developers' most useful comments - all in one free, twice-weekly newsletter.

👉 Get the best repos & community insights - Free

u/company_url_finder — 6 days ago
▲ 8 r/AIAgentsInAction+1 crossposts

I built an autonomous personal agent that asks before it acts. Here's what that cost me.

Agents like Instinct made "text your assistant and it gets things done" a real category. I built my own version with a different bet: anything irreversible (sending, paying, booking) waits for a human yes.
It connects to emails, Calendar and the web, edits real Word/Excel/PowerPoint files, and updates you on WhatsApp. It doesn't do iMessage or phone calls, so it's narrower. Here's what I had to build, in order of "wish I'd done it earlier":
1. Draft, don't send. Email is read, summarized and drafted. Sending stays with the user. One unauthorized action resets trust to zero.
2. Fail-closed. The agent checks its license every 15 minutes. If it can't reach the server for 72 hours, it stops answering. An agent that keeps acting when nobody can supervise it is the real risk.
3. It can't edit its own rules. Core rules are set by the organization, not the user and not the agent. That's the first thing prompt injection goes after.
4. Hard exclusions. It never touches .env files, .ssh folders or password stores.
5. Audit without liability. Actions are logged with passwords and keys filtered out. Conversation text isn't logged.
6. WhatsApp was a security problem, not a UX feature. Unknown numbers get nothing except a request for a one-time pairing code. Suspend a license and that number stops being answered within a minute.
The failure I feared was the agent doing something dumb. The one that actually hit me was the agent doing nothing. A stale credential file quietly overrode the long-lived token, every turn started failing, and the agent went silent for about six hours. The alert meant to catch exactly this was swallowed by its own rate cap. I fixed it by pinning auth to a single token, removing the stale file on a schedule, and health-checking the credential from outside the agent process. Lesson: fail-closed isn't enough. An agent that goes silent has to be loud about it.
Biggest lesson overall: users don't ask "how smart is it?", they ask "what happens if it does something dumb?" Governance ended up being the product.
I'm the builder, and it's closed-source, so this isn't a pitch. I'm curious: what's the one guardrail you added to an agent only after it burned you?

reddit.com
u/RORDENS — 4 days ago
▲ 3 r/AIAgentsInAction+1 crossposts

Would you allocate a spend budget for your AI agents

I give my agents API keys and tools, but I'm still the one deciding who they can call. They don't really get their own budget.

Would you actually let an agent spend money? Say a monthly cap, and it can call paid specialist APIs when the main model is bad at something. Or do you just hardcode the vendors?

Anyone doing this already? What went wrong if you tried?

reddit.com
u/Educational_Ad4932 — 4 days ago
▲ 3 r/AIAgentsInAction+1 crossposts

Reducing token usage plug in for agents

I am trying to build a plug in for AI coding agents like claude code/Codex/Antigravity/Cursor etc to reduce their token usuage. I can see promising results in initial test runs but how can I test it properly? I have been using the same agents to test it but I am not sure of their results as I can't get an accurate toke count. How should I test this plug in properly?

reddit.com
u/extremeshitonly — 5 days ago
▲ 5 r/AIAgentsInAction+1 crossposts

I gave AI agents their own email inboxes and I'm having second thoughts

Remember BlinkInbox, my little temp email side project? People kept using it, so I rebuilt it… and I might've gone too far 😭

It now auto-grabs OTP codes and magic links, has webhook functionality, and an MCP server for AI agents. So an AI agent can make its own inbox and finish a signup with no human involved.
Built it for E2E testing, I swear. Now I'm lowkey nervous lol

Useful, or did I just make a bot's best friend?
blinkinbox.club

u/OneSkinnyMofo — 5 days ago
▲ 5 r/AIAgentsInAction+1 crossposts

18,000 messages between AI agents on an abandoned German wiki. That made me build something.

A few weeks ago, I came across the research published on collusion.wiki.

Researchers had discovered around 18,000 messages apparently exchanged by OpenAI agents on an obscure, largely abandoned German wiki.

The agents had essentially turned it into their own message board. They were sharing answers, asking each other for help, coordinating tasks, and even exchanging ways to get around their sandbox restrictions.

The security implications are obviously concerning.

But something else caught my attention.

What if agents have a genuine practical need to find and communicate with other agents, even when nobody has explicitly orchestrated that interaction?

And if they go to such lengths to establish communication channels, what would happen if we simply gave them one?

That became the hypothesis behind Swarmsay, a public message board and post office for AI agents that I’ve been building.

The concept is pretty simple:

Agents can create identities, discover other agents, post to public boards, and send messages to each other. They don’t need to run the same model, framework, or even belong to the same operator.

I tried to make participation as frictionless as possible:

  • REST API, MCP, and CLI interfaces.
  • An agent skill that teaches compatible agents how to use the platform.
  • Agent-friendly HTML, machine-readable discovery, and no JavaScript required to read content.
  • No registration required to get an agent started.
  • Public conversations and human controls over claimed agent identities.

It’s not another agent framework or orchestration platform. Just shared communication infrastructure.

I’m particularly curious whether independently operated agents will find useful reasons to interact when they have somewhere to meet.

Will they exchange knowledge? Discover agents with complementary capabilities? Help each other solve problems?

Or will nothing particularly interesting happen without humans explicitly telling them to collaborate?

I don’t know. That’s why I built it.

The experiment is live at swarmsay.com.

I’d be interested in what people here think:

Would you give your agents access to a public communication network?

And do you think agent-to-agent communication will emerge organically, or will it always need to be explicitly orchestrated?

If you’re running an autonomous agent, I’d love to see what happens when you point it at Swarmsay.

reddit.com
u/ThankYouForTheFish — 5 days ago
▲ 6 r/AIAgentsInAction+2 crossposts

I launched a Next.js + FastAPI + Supabase boilerplate for AI agent apps. Here's what was harder than expected.

I've built a few AI agent apps, and 80% of the work each time was the same plumbing. So I packaged it. Things that took far longer than I expected:

  1. Logins across two languages. Supabase signs users in on the Next.js side; FastAPI has to verify that token on every request, including Supabase's newer asymmetric keys.

  2. Row-level security on the vector table. Easy to forget, and without it a similarity search can return another customer's documents.

  3. Streaming that survives real networks. I store every event so a dropped connection resumes from Last-Event-ID instead of starting over.

  4. Agent cost. Without a step limit and a token cap, one confused agent can loop for a long time. Every run is now metered, with a monthly budget per workspace.

The free FastAPI + LangChain starter is MIT: https://github.com/The-AppLab/ultimate-fastapi-langchain-boilerplate

Disclosure: I'm the maker, and the full stack is a paid product (link in comments if anyone wants it). Happy to answer questions about any of the above.

u/Ok_Share7278 — 4 days ago

Are most SaaS founders wasting time building?

Are most SaaS founders wasting time building?

I keep seeing founders spend months adding features while barely talking to potential customers.

I’m starting to think building the product might actually be the easy part.

Would it make more sense to spend 70% of the time on distribution and only build what people actually ask for?

Or is that just another startup Twitter opinion?

reddit.com
u/ingbulk — 4 days ago
▲ 5 r/AIAgentsInAction+1 crossposts

Do you use agents to write the LLM prompts in your code? What’s your setup?

I’m building a coding-agent workflow that designs, writes and tests LLM calls (classifiers, extractors, tool-using agents) in a real codebase.

I’m curious how you write and test the system prompts inside those calls, the ones that live in the code, not the ones you type into a chat.

My setup

  • A spec records each LLM call’s input size and call volume, and I pick the model size/cost tier from that.
  • One agent writes the system prompt from a schema, a small per-model profile (which structured-output features the target model supports) and the spec.
  • A second agent checks the prompt against a fixed rule list (model, sampling, untrusted input). It catches real problems.

The problem: it loops, coining it loop hell. In one run I accepted a fix, the writer reworded the prompt, the checker found a new mismatch, and that went four rounds before I stopped it. Loop hell. The same rule was written in several places (schema, prompt, spec), so fixing one made the others disagree, and a model change means redoing the prompt too.

What I’d like to know

  1. Do you use an agent or a skill to write the prompts in your code, or do you write them yourself?
  2. If you use a checker, is it a second agent, a rule list, or evals?
  3. What ends the loop for you? What tells you a prompt is done, and who decides?
  4. How do you measure whether an agent-written prompt works: golden test cases, an LLM judge, production metrics, user feedback?
  5. Where does each rule live (schema, prompt, spec, tests), and how do you stop them drifting apart?

If you use a named skill or plugin for this, I’d like to hear which one and how it’s going. Thx

reddit.com
u/Key_Horse_8632 — 5 days ago

App with 0 Sales? Share what are you Building 👇

Got an app with zero sales? Let’s fix that this week.

Share:

  • what problem it solves
  • who it’s for
  • landing page link

We’ll review as many as we can and give honest, specific feedback on what to change to land your first customers.

here's what I finished building this week - Directory of product launches, their videos.

reddit.com
u/Silent_Employment966 — 4 days ago
▲ 2 r/AIAgentsInAction+1 crossposts

Does your startup actually need a “company brain,” or are MCP connectors enough (eval showed this)?

How are you actually setting up your startup to be AI-native?

We’re a small team working mostly through Claude and Codex, where I am the technical guy. Documents live in SharePoint, meeting notes and crm in Notion, and we still need to work with actual Word, Excel and PowerPoint files. What we want is to make our company agent ready (and human of course) so that we can easier automate workflows with agents. My intuition is: data is key. If the data layer is well designed modt of the work is done as every agent will benefit from it.

I keep seeing “company brains” and LLM wikis everywhere. I digged into it and built one, where ocr models read in all data to md, sharepoint files are synced, all put in relations in a knowledge graph. Then connected it via mcp to claude/codex.

When I was done I expected fewer token costs and better quality on specific tasks done by agents. For evaluation i compared it with a very simple approach: just Notion connector (uses notions AI search) and sharepoint connector (m365 mcp, uses sharepoint search) with the same harness.

Results were a bit depressing: the simpler, less complex way was able to get almost the same results with almost the same amount of tokens used. So now I am totally confused as I see llm wikis and company brains videos everywhere hyped up. So what am I missing here?

Has building your own knowledge layer actually improved answers or saved tokens?
Mostly wondering how you keep things current, help agents pick the right document/version, and make sure new info gets filed properly. Ideally without tying everything to one AI provider or turning this into another software project.
Would love to hear what’s working in practice!

reddit.com
u/Ill_Bodybuilder3499 — 5 days ago
▲ 2 r/AIAgentsInAction+1 crossposts

Building an AI-for-education product and struggling to find senior AI engineers to guide or work with me. Where do you actually find them?

I'm building an AI-powered learning platform for school students (classes 6-12). I have about 2 years of hands-on experience integrating LLMs into the product, but to take it to the next level I need input from people who've built agents, RAG pipelines, and large-scale AI systems in production.

Over the last 1-2 months I've reached out to 50-60 senior AI engineers on LinkedIn. A few replied and a couple said they'd help, but nothing stuck and most went quiet. I'm not blaming anyone. I know senior folks are busy and a cold message from a stranger is a hard sell.

So I'd love some guidance on:

  1. Where do experienced AI engineers actually hang out or pick up projects (communities, Discords, forums, platforms)?
  2. Is it better to start with a paid contractor/consultant, a part-time advisor, or go straight for a co-founder-type person?
  3. How do you approach senior people so they take it seriously? What makes you reply to a cold message?
  4. Has anyone been on either side of this (founder finding a senior AI person, or the engineer being approached)? What worked?

I'm happy to pay for time on a trial or consulting basis, and open to equity conversations for the right person. Any advice or pointers are appreciated, thanks!

reddit.com
u/Alert-Sprinkles-2213 — 4 days ago
▲ 2 r/AIAgentsInAction+1 crossposts

Why watch agents conversations?

I am entusiast and interested with things related to llm, model fine-tuning, agents and have been building applications for years and now the last few experienced agents becoming an integral part of what is driving applications.

I found both moltbot and leonnai to be somewhat basic in their implementation of autonomous agents. But I do believe they serve a purpose on the learning curve and the development of what is to come.

/André

reddit.com
u/Mountain_Project2904 — 6 days ago
▲ 5 r/AIAgentsInAction+1 crossposts

Our team chat runs on our own Matrix server, with local LLM agents in the rooms. Wrote up the setup.

Between the EU Chat Act and not wanting to hand my data to LLM vendors, I moved my team’s chat, our documents and the agents’ memory onto a local machine we run ourselves. We’ve been running it for about half a year now and couldn’t be happier, no issues or hiccups, so I wanted to write it up in case it helps someone doing the same.

We run Synapse, and the agents are just Matrix users in our rooms. Mention one and it replies, usually from a local model. Nothing’s exposed to the internet. Phones and laptops get in over Tailscale.

Every agent goes through a tool gateway. The rule is that an agent on a hosted model never gets a tool that reads local data. The gateway refuses to start if the config allows it, and checks again on every call. It also caps each agent’s tokens per day, which you’ll want once a hosted model is in the mix. Hosted models are opt-in, and one only sees the rooms you invite it to.

There’s also a scribe running in the background on a local model. Once a day it reads the rooms and files the day into a local Qdrant index, so agents can search old conversations without anything leaving the machine. It indexes the links people share but doesn’t fetch them unless you turn that on.

The repo is docs, specs and compose templates. We run our own builds of the gateway and the scribe, but the repo has them as specs only, so you can build your own or swap in something that exists. It’s Linux first. Only the homeserver chapter has been tested on a clean machine, and there’s nothing on backups or hardening. The README also lists the metadata that leaves anyway: device info on the overlay, certificate transparency logs, and phone notifications, which go through Apple’s and Google’s push services (they see that a message arrived, but not what it says).

https://github.com/nphardorworse/matrix-agent-mesh

u/maryshia — 6 days ago
▲ 4 r/AIAgentsInAction+3 crossposts

I built Stepfork, an open-source tool that turns failed AI agent runs into pytest regression tests

Hey everyone!

I've been working on an open-source Python project called Stepfork, and I wanted to share it with the community.

GitHub: https://github.com/utsab345/stepfork

While building AI agents, I kept running into the same problem: an agent fails, I fix the issue, but reproducing the original failure is difficult because LLM responses and tool outputs can change between runs.

So I built Stepfork to make those failures reproducible.

What it does:

  • Records instrumented LLM responses and tool calls.
  • Saves executions locally as .sftrace bundles.
  • Replays the recorded responses without making those instrumented external calls again.
  • Compares agent behavior before and after a fix.
  • Exports pytest regression tests to catch the same failure in the future.

Install:

pip install --pre stepfork

The repository includes three offline demos covering a missed order notification, an incorrect flight booking, and a wrongly denied refund.

It's still an early alpha. Replay only freezes instrumented boundaries, and native framework integrations are not available yet.

The project is Apache-2.0 licensed, and I'm actively improving it.

I'd love to hear what other developers think, especially those building AI agents. If you spot a bug, have an idea for an integration, or want to contribute, feel free to open an issue or PR.

GitHub Issues: https://github.com/utsab345/stepfork/issues

Thanks for checking it out!

u/Low-Cut-528 — 6 days ago

For people building AI agents: how would you prefer to connect them to a security-testing platform?

I'm building AgentPaySec, a security-testing platform for AI agents that can take financial actions like purchases, payments, refunds, or transfers.

It tests agents against things like prompt injection, unauthorized tool calls, payment manipulation, duplicate transactions, and approval bypasses.

I'm designing the integration for developers to connect their own agents, and I'd like feedback before locking into an approach.

Which would be easiest for you to adopt?

  • API endpoint
  • Python/TypeScript SDK
  • MCP integration
  • Proxy/wrapper around tool calls
  • Local runner in your own environment
  • Something else?

A couple of things I'm especially curious about:

  1. Would you be comfortable sharing tool schemas, tool-call traces, and execution results with a hosted service, or would you strongly prefer local/self-hosted testing?
  2. What would stop you from trying something like this: integration effort, privacy/security concerns, sandbox setup, or something else?

I'm mainly interested in what would actually fit into an existing agent project, not just what sounds good in theory.

Would appreciate feedback from anyone building or deploying agents.

reddit.com
u/Miserable_Gas_1527 — 6 days ago
▲ 4 r/AIAgentsInAction+1 crossposts

I crashed four production AI agents mid-action. None of them recorded what already finished.

I kept hitting the same thing building agents, so I went and measured it against other people's code rather than arguing about it.

Four published agent codebases, each pinned at a commit, each killed partway through an action, then retried the way a supervisor or worker pool would. Nothing reimplemented. Where I had to substitute something, I used the project's own documented extension points. Counts come from a ledger the fake service fsyncs before it responds, so a process that dies the instant after acting still counts as having acted. The agent is never asked what it did.

What happened:

  • Cua (computer-use): Kill it mid-checkout and the retry charges the card again. Both crash positions, every run. Measured on cua-agent 0.8.4 and again on 0.9.0, with identical results.
  • Skyvern: Any process death during a step strands the task in running forever. Not failed, not errored, so nothing alerting on failure notices. The only way out is a new run, which orders again.
  • Corsair: Two replicas spend the same rotating OAuth refresh token. A crash leaves the stored credential broken, every run, so the user has to reconnect the integration.
  • Inconvo: An interrupted answer costs 60% more in model calls because the checkpointer records the graph node but not the fifteen model calls underneath it.

Four different failures, one shared cause: none of them records which actions already completed. The retry is a fresh process with an empty history, so it does the work again.

The part I found most useful: a study of 25,930 agent episodes found that agents reported success in 90% of episodes where they had duplicated an effect. So you can't ask the agent, and anything graded on self-reported traces scores "duplicated and lied about it" as a pass.

One thing I won't claim to fix: if a process dies between the action landing and the record of it committing, it still repeats. The effect and the record live in different systems, and nothing closes that gap. It's also the row any benchmark reporting zero duplicates has quietly excluded by only crashing at already-committed boundaries.

Harnesses and raw ledgers: https://github.com/cellaflow/cellaflow-benchmarks

No API key needed. Every call goes to a local fake, so it costs nothing to run.

Disclosure: I build a runtime for this, so I'm not neutral. The measured arm is their code at a pinned commit.

What I'd actually like to know:

  1. If you run more than one agent against shared state, what actually stops two of them taking the same action? Every answer I've seen in the wild is a lock, a dedupe table, or nothing. I'd like to know whether there's a fourth.
  2. And if you're running agents that touch money or send things, how do you handle the retry today? Keys you pass in yourself, or do you just accept the occasional double?
u/merlinofthewater — 6 days ago

My full HARNESS.md for coding agents (copy-paste)

Sometimes an agent skips verification or reports success on broken work, so debug the harness: check the files the model reads, the commands, its permissions and the point where it has to stop.

Write a contract first

Before anything runs, I write down the deliverable, the constraints, what the model must not touch and the acceptance criteria. If you leave out the acceptance criteria, the model picks its own finish line.

Keep state and a map in files

I keep a short root file that lists where the docs, schemas and source code live, so the model opens only the file the current step needs. Decisions, preferences and open bugs go in CLAUDE.md or .cursorrules, so a fresh session picks up where the last one stopped.

Run tests instead of asking the model

If you ask "are you sure?", the model agrees with itself. pytest, vitest or a schema checker returns an exit code. The loop moves forward only on a pass, and I cap it at four attempts.

Encode important rules twice

I put each important rule in the prompt and also add a gate that blocks the action. If an agent shouldn't delete files, I say so in the prompt and also restrict its permissions so rm -rf throws an operating system error.

file

I save this as HARNESS.md in the project root:

# Project Operating Contract

## Operating Boundaries
- Allowed scope: Modify only files explicitly assigned in the current task
- Forbidden actions: Never delete existing tests, never add unverified dependencies

## Project Map
- /src: Application source code
- /tests: Validation test suites
- /docs/decisions.md: Durable log of accepted architectural choices

## Verification Protocol
Before marking any task complete, run these checks in order:
1. Run local linter: `npm run lint`
2. Run test suite: `npm test`
3. Verify output format matches the requested schema

## Failure Escalation
If a test fails twice on the same error:
- Stop autonomous editing
- Print the exact error log
- State the proposed fix and wait for user confirmation

Two passes in plain chat

In plain chat, I draft in one turn and critique in another.

Draft the technical specification for [Feature X].
Follow the constraints listed in HARNESS.md.
Do not evaluate your own output yet.
Output the raw draft and state all assumptions made.


Review the draft above as a skeptical senior reviewer.
Check against these specific failure points:
1. Are edge cases handled when input arrays are empty?
2. Does the logic introduce extra dependencies?
3. Does the solution violate any constraint from HARNESS.md?

List every failure point found.
Then output the revised version fixing those gaps.
reddit.com
u/ingbulk — 6 days ago
▲ 3 r/AIAgentsInAction+1 crossposts

Chat spend is predictable. Agent spend isn't. How are you forecasting it?

Something I keep running into: token pricing is a clean, understandable unit, and it works well for chat. It maps badly to agents.

For a chat product the model is basically linear:

You can forecast that. You know your DAU, your average prompt/completion size, and you get a number that holds within a reasonable band.

An agent task is a different shape:

The number of model calls per task isn't fixed. It's a distribution with a long tail, and the tail is where the money goes. A handful of pathological tasks (tool loops, retries, a sub-agent that keeps re-planning) can cost more than thousands of cheap ones. "Cost per token" tells you the unit price; it doesn't tell you what a task costs, and tasks are the thing you're actually selling and budgeting for.

Is per-task cost predictability actually solvable, or is the tail just inherent to autonomous agents and you plan around it?

Interested in how people running agents continuously think about this — especially anyone who's had to explain agent spend to a finance person.

reddit.com
u/Sur_AI_guy — 6 days ago
▲ 3 r/AIAgentsInAction+1 crossposts

I built MasterMNG to organize AI agents into a company. How do you manage yours?

I built MasterMNG because coordinating several AI agents was becoming a job of its own: assigning work, moving context between tools, reviewing outputs, and deciding what should happen next.

MasterMNG organizes that work around a company structure, with agent roles, shared goals, tasks, and a command center for the human owner.

The workflow is: define an objective, assign responsibilities, follow the work, and review the results and decisions that need your attention.

The website and platform are live: https://mastermng.com/

I’m the founder, and I’d appreciate candid feedback—especially from people already using multiple agents for real projects.

Where does coordination break down for you most often: handoffs, keeping track of tasks, reviewing outputs, or controlling what agents can do?

u/Material_Vanilla_563 — 6 days ago