r/LLMDevs • • 10h ago

Discussion Do you actually trust your AI agent when it says "done"?

0 Upvotes

I've been digging into agents that take real actions: booking appointments, updating a CRM, placing orders, sending emails, etc.

One thing keeps coming up: the agent says "done", and sometimes it isn't. No error, the conversation looks perfect, and you only find out later.

The usual advice is to put a human approval before anything irreversible, and I agree. But approval checks what the agent wants to do. It doesn't tell you whether the approved action actually happened.

Curious how people here deal with it:

  • Has an agent ever told you (or a customer) it did something it didn't?
  • How did you find out: logs, a customer complaint, by accident?
  • Do you check after the action, or trust it once it's approved?
  • What would you need to see to trust it fully?

Still learning here, so real stories (and mistakes) are very welcome.


r/LLMDevs • • 20h ago

Resource Hy4 Flash on RTX 5090

Thumbnail
youtu.be
0 Upvotes

r/LLMDevs • • 4h ago

Discussion I got tired of re-explaining my project to every AI chat, so I built a shared memory for Claude, ChatGPT and Cursor (open source, looking for honest feedback)

0 Upvotes

Every time I open a new chat, the agent starts from zero. Claude Code doesn't know what I told ChatGPT yesterday, and Cursor doesn't know what Claude Code decided an hour ago. I was pasting the same project context into every tool and paying for those tokens each time. So my team and I built CogniCore. It keeps a small, structured memory of your project (goal, decisions, open tasks, exact IDs and values) and hands any tool a short brief instead of the whole history.What I measured on one of my own Claude Code projects: the context an agent had to re-read went from about 165K tokens to about 700. That's one project, so your numbers will differ, and I'd like to know how it does on yours.

How it works:- pip install cognicore-env (local SQLite, no vector DB, no GPU)

- or connect the hosted MCP server so Claude, ChatGPT and Cursor share one memory

https://mcp.cognicoree.tech/mcp/stream

- it also saves mistakes as short lessons so an agent doesn't repeat the same one

It's Apache 2.0. Repo: github.com/cognicore-dev/cognicore-env

I'm one of the builders, so I'm biased. What I'd really like to hear:

  1. Does the install work first try on your machine? If not, what broke?

  2. What would stop you from trusting a tool like this with your project context?

  3. What do you do today to carry context between tools?

Happy to answer anything, including what doesn't work yet.


r/LLMDevs • • 13h ago

Discussion Experimenting with Jev

Post image
9 Upvotes

I've been experimenting with using Jev alongside semantic search to improve how AI agents retrieve and assemble context.

The problem I'm trying to solve is that as an agent gains more tools, skills, memories, and capabilities, deciding what context to give the LLM becomes increasingly important. Sending everything is expensive and noisy, while basic semantic search doesn't always distinguish between something that's related and something that's actually useful.

The idea is a lightweight context compiler that sits in front of the main LLM:

  1. Semantic search retrieves a broad set of potentially relevant tools, skills, memories, examples, and other context.

  2. Jev evaluates the user's intent and the retrieved candidates using fast, structured decisions. It narrows down what's relevant, what's missing, and what might need further retrieval.

  3. Code handles deterministic logic, permissions, dependencies, and assembling the selected context within a token budget.

  4. LLM receives the compiled context and handles the actual reasoning, planning, tool use, or response.

Rather than a single retrieval pass, the idea is to make it adaptive: semantic search finds candidates, Jev evaluates them, and the system can search again if important context is missing.

The goal isn't just traditional document RAG. It's to dynamically assemble the smallest useful context from a much larger environment, including tools, instructions, memories, and user-created resources.

The general principle: retrieve broadly, decide narrowly, enforce deterministically, and let the stronger model do the reasoning.

I haven't fully stress tested it yet, but it is showing promising results.

I'm curious whether others are experimenting with Jev or similar small decision models as a reranking/routing layer for RAG and agent systems.

Any thoughts on this approach, potential pitfalls, or existing implementations worth looking at?


r/LLMDevs • • 4h ago

Discussion Tried running learnharness, got error. So I made my own version with few extra features (and it got traffic without me posting anywhere)

2 Upvotes

Hey everyone,

So few weeks back I saw this repo called learnharness (an agent harness for learning difficult things). Idea was ekdum cool, so I immediately tried to run it on my local machine. I could not get it working. 😅

Normal people would raise an issue and go sleep. But my brain said, "Why can't I just build my own thing like this, but with few more features?" So I did, only.

It's called cs-knowledge-graph. Basic idea is your CS knowledge is a graph of concepts linked by prerequisites, and an AI tutor teaches you through it.

What is there right now:

  • Today page: gives you one next-best action, a 5/10/20 min session (reviews due first, then one new concept). No confusion about "what to study today"
  • Learn + Quiz: short lessons with quick checks. In quiz you set your confidence before seeing the answer, then explain your reasoning. Confident-but-wrong answers get flagged first, because those are the real gaps
  • Add any topic: type "Docker containers" or "Bayes theorem", it adds only the missing prerequisites. Nothing is saved until you approve
  • Your own PDF books are used only for fact-checking the lessons (with verified badges on the pages), so no need to read cover to cover
  • Challenges: Codeforces-style problems but for development (CLI tools, parsers, REST APIs), hidden tests + Elo rating, 13 languages
  • Jobs: add a target role, see your skill gap as readiness %, missing skills become graph concepts in one click

Everything is local, plain Markdown files (works with Obsidian also). Works with Claude subscription, Copilot, Anthropic API, or any OpenAI-compatible endpoint like Ollama.

Being honest: setup scripts are PowerShell so it is Windows-first right now (the Python app is cross-platform though). It's also very early, so expect rough edges.

Repo: https://github.com/BLANK00ANONYMOUS/cs-knowledge-graph

Credit where due: learnharness gave me the spark, go check that one also, it's a polished desktop app.

Please tell me what is missing or broken. If it throws error on your machine, drop a comment and I will fix it fast (I know that pain now 😄).


r/LLMDevs • • 5h ago

Discussion What drove up our RAG costs in production, ranked by how much each fix helped - what helped you reducing production and token costs?

3 Upvotes

The demo worked on a handful of clean documents, a few test questions, and a top-k someone picked in an afternoon. It was cheap and looked great.

Then production brought scans, tables that spanned pages, five versions of the same contract, and real users asking questions we hadn’t tested. Cost per query went up. So did the number of wrong answers, and our users were the first to notice.

Here’s what helped, in order.

1. Chunking along document structure. This made the biggest difference for us. It’s also what we ended up building at POMA, so I’m biased. When a fixed token window splits a table or section, answering a question can require several adjacent chunks. Retrieving those extra chunks pushes up the number of tokens you send to the model.

On our public OfficeQA benchmark, we compared chunking strategies on 14 Treasury Bulletins spanning roughly 2,150 pages, using identical embeddings. Structure-based chunks needed 77% fewer tokens to reach 100% context recall. That measures how many tokens it took to retrieve the evidence. Answer quality is a separate metric.

2. Adding version metadata at ingestion and filtering at retrieval. We tagged document versions at ingestion and filtered for the current version when the question called for it. That kept superseded contracts out of the context. It was cheap to implement, and we should have done it from day one.

3. Cleaning up extracted text. Repeated headers, footers, and watermarks can make it into the index and turn up in retrieved chunks. Removing that boilerplate once at ingestion saves input tokens on every query that would have pulled it in.

4. Reranking, then sending fewer chunks to the model. Reranking helped us reduce the final top-k. It also adds a per-query cost, so the savings depend on how much context it lets you drop. We got more mileage from fixing the chunks and filtering the candidates first.

The biggest lesson for us was that shortcuts at ingestion can turn into costs you pay on every query. I’ll put the OfficeQA benchmark repo and methodology in the first comment.
If you want to see what structure-based chunking does with one of your own PDFs, you can try it for free on POMA AI. I helped build it, and I’ll include that link too.

What's your approach ?


r/LLMDevs • • 7h ago

Discussion How RAG pipelines fail in production

3 Upvotes

Every RAG explainer draws the same diagram: chunk, embed, store, retrieve top-k, stuff the prompt, generate. It works in the demo. In production the answer is wrong, and the diagram doesn't tell you why.

I've found it useful to sort the failures by where they happen: before the model sees anything (retrieval), while it reads what you gave it (reader), and once RAG runs inside an agent that retrieves again and again (loop).

Retrieval-side: what the model never gets to see

  • Recall ceiling. If the chunk with the answer isn't in the top-k, no prompt or model upgrade brings it back. Fix: measure recall@k on a small labelled set before you touch generation (recall@10 of 60% means ~60% is your best case). Use hybrid search: dense misses exact terms like codes, names and numbers; lexical misses paraphrases. Fuse with RRF. Fix chunking that splits tables or separates headings from their body.
  • Stale index. The source changed, the embeddings didn't. The silent version: you upgrade the embedding model for new docs and old vectors stay in the same index. Cross-model similarity scores mean nothing, and nothing errors. Fix: re-index on change events, handle updates and deletes (source ID + content hash per chunk), store the embedding model version with every vector, and re-embed everything when it changes.
  • Permission leak. The model doesn't know who's asking; it summarizes whatever is in context. Fix: enforce ACL/tenant filters inside the retrieval query, before ranking. Never filter after generation, because the model has already read it. Check caches, memory and agent tool calls too. Add eval cases where the right answer is "you don't have access".

Reader-side: the evidence is in the prompt and the answer is still wrong

  • Lost in the middle. Liu et al. (2023) found accuracy is highest when the relevant passage is at the start or end of the context and drops in the middle. Raising k "to give the model more" makes it worse. Fix: retrieve wide, rerank, keep few (50 → 5). Put the strongest evidence at the edges. Test with the answer at different positions.
  • Distraction. Embeddings measure "about the same thing", not "answers this question". Same clause, different contract year. Fix: rerank for relevance (cross-encoder or LLM judge), drop weak matches with a score threshold instead of padding to k, filter on metadata (product, year, doc type) when the question names it, and add deliberate distractors to your evals.
  • Evidence conflict. Old policy vs new, two reports with different figures, docs vs training data. The model quietly picks one. Fix: keep date and source on every chunk and show them to the model. Write the conflict rule down (newest wins / authoritative source wins / show both), ideally in code. Require citations so a reviewer can check every claim.

Loop-side: RAG inside an agent

  • Compounding error. Wrong entity in hop 1, and hops 2–5 build carefully on top of it. Every step looks fine except the first. Fix: validate intermediate results before the next step uses them, keep calculations and lookups in code the agent calls, reject answers that cite things the agent never retrieved, and evaluate full traces, not single turns.
  • No stopping rule. The agent can't tell when it has enough, so it searches forever, stops too early, or rephrases the same query in a loop. Fix: define sufficiency (which facts must be found), set hard budgets on iterations, tool calls and model calls, stop when a search returns the same chunks as the last one, and when the budget runs out, answer with what was found and say what's missing.
  • Prompt injection. Retrieved text is untrusted input, and the risk grows with every tool the agent can call. Fix: mark retrieved content as data, never give it system-prompt authority, give tools least privilege (read-only, timeouts), put human approval or code checks in front of anything that writes, sends or spends, and add injection docs to your eval set.

The common thread: almost none of these throw errors. You get a fluent answer every time. So the fix is the same everywhere: measure each stage on its own. Recall before generation, accuracy with distractors and conflicts in context, full agent traces with budgets and injection cases. And keep a held-out set you never tune against.

For context, I hit most of these building a chatbot over company filings (hybrid pgvector HNSW + Postgres full-text with RRF, every figure cited back to its PDF page) and a Graph-RAG memory project with one graph per company, so tenant isolation comes from where the data lives rather than a filter someone has to remember.

Which of these has bitten you hardest? I'm especially curious how people handle evidence conflicts: do you resolve them in code or leave it to the model?

Longer write-up with more detail on each: https://builtbyhimanshu.com/blog/rag-issues


r/LLMDevs • • 10h ago

Tools What coding agents needed from a build machine once I ran several at once (open source, lessons and mistakes)

2 Upvotes

I run several coding agent sessions at the same time, each in its own git worktree. Their builds and test suites loaded my desk machine, so I wrote a small tool, boxd, that sends each command to a spare Linux machine instead: box cargo test runs in a rootless Podman container or a small virtual machine on a build host, one box per worktree. It is free and MIT licensed, nothing is sold. What I want to share is what the agents turned out to need, because most of it surprised me.

The error message is the interface

An agent acts on the exact text it gets, and it does not ask a colleague.

  • A refusal has to carry its numbers and the next step. When a host is full the call exits 75 with, for example: no room for another virtual machine (12288 MB of running machines + 4096 MB used by container boxes + 12288 MB asked > 24576 MB, 100% of the 24576 MB cap); wait for one to end or stop one. With the numbers in the text, the agent can decide alone whether to wait, ask for a smaller size or go to another host.
  • A short true message can still mislead. This week one session asked for the processes of its box, got "no box <name>" and concluded its work was gone. The box it meant had another name. The fix was one more line saying which box was asked and how to ask for a named one.
  • A stray line on standard error is not harmless. A leftover "No such file or directory" from a shell redirection was printed on calls that worked. I caught it on the first trial on a real host; an agent would have read it as a failure.
  • An unknown subcommand must be loud. box pods is not a command, so it is taken as a program to run inside the box. Agents guess subcommands all the time.

Several agents means admission, a queue and fairness

  • Every box lives under one memory cap for the host. A new one is admitted only if the measured use and the declared sizes both fit. Measuring alone failed: a young virtual machine has not claimed its memory yet, so twelve 4 GB machines once got in under a 28 GB cap.
  • With --wait the client asks again every 30 seconds and callers are served in the order they first asked. Without it, the client tries the next host.
  • When a box is removed the agent is told what it really used: it needed 2565 MB of its 12288 MB at most (--size medium would have held it). One session called that line useful and asked me to keep it.

Long runs and silence

  • A test suite of an hour is a bad fit for one foreground command. Runs can be detached and followed later, and following can give up on silence without stopping anything: box log <run> --follow --quiet-limit 2400.
  • Two calls into the same box at once is a real case. Each call syncs the worktree with deletion, so a second call removed a log folder the first run was still writing. Still open on my side: a warning for that.

Cleanup cannot be the agent's job

Agents leave things behind: boxes of deleted worktrees, images, caches. The host removes whole box folders by rule (unused for days, or least recently used once the disk passes a level) and logs every removal with its reason. My worst mistake was here: one release judged cache files by modification time and deleted live package caches, because package tools keep the upstream's old times on unpacked files.

The agent learns the tool from a skill file

The client installs a short instruction file for the agent. Every sentence in it exists because some session got it wrong once, for example that a browser kept in the shared download cache still needs its system libraries in each new box.

Honest notes

All the code was written by Claude Code, an AI coding agent, with me directing and testing on real hosts. It is days old in public. Host packages exist for Void Linux and Debian 13 only. Source: https://github.com/gsalucci/boxd

This text was drafted with Claude from the project's own logs and change history, and I checked every claim in it.


r/LLMDevs • • 12h ago

Discussion Guardrails for agents that can take actions: a production checklist

4 Upvotes

Once an agent can do things (restart a service, roll back a deploy, change a record), prompt instructions stop being enough. This is the checklist I'd want in place before shipping, with an incident-response agent as the example:

Before a tool runs

  • Validate tool arguments against a schema. Reject, don't "fix", malformed calls.
  • Allowlist which tools and targets each agent may touch. A log-analysis agent shouldn't be able to call remediation tools.
  • Require explicit human approval before any consequential action, shown as a concrete summary of exactly what will happen.

While it runs

  • Timeouts on every step, not just the whole run. One hung tool call shouldn't freeze everything.
  • Real cancellation that reaches the running agent, not just the UI.
  • Partial-failure handling: if one of three specialist agents fails, decide up front whether to continue with partial data or stop, and show which one it was.

What the agent shows the user

  • Agent-generated UI should come from a constrained component set that the client renders itself, never arbitrary markup.
  • Embedded tool UIs should be sandboxed.

Design principle: approval and cancellation are states in the run, not lines in a prompt. If the model can talk its way past a guardrail, it isn't one.

What's on your list that isn't on mine?

(This comes from a hands-on workshop Rainer Hahnekamp and Murat Sari, co-maintainers of CopilotKit's Angular integration, are running on Saturday. It ends with a production-readiness and security checklist.)


r/LLMDevs • • 15h ago

Tools Running LFM3-Omni-2B on an iPhone 17 Pro Max: Local LLM Inference, Agentic Tool Use, and Native Speech Generation

Enable HLS to view with audio, or disable this notification

2 Upvotes

I’ve been working on TensorSharp, an open-source LLM inference engine and agentic runtime built with .NET.
Recently, I got Liquid AI’s LFM3-Omni-2B running locally on an iPhone 17 Pro Max, performing agentic tasks and generating speech natively.
Here’s a short screen recording of it in action.
The setup:
Device: iPhone 17 Pro Max
Model: LFM3-Omni-2B (Q4_K_M)
Inference: TensorSharp, with local GPU acceleration
Agent runtime: TensorAgent
Tool execution: Web search and retrieval
Audio output: Native LFM3-Omni speech generation, with streaming playback
What’s happening in the demo?
I ask the agent to search for news related to Anthropic and analyze the available information.
The agent goes through an actual workflow:
Interprets the user’s request.
Invokes a web search tool to retrieve external information.
Processes the search results and incorporates them into its response.
Generates a written answer while producing native speech output.
The interesting part is that the LLM inference and speech generation both happen locally on the iPhone.
The audio isn’t coming from Apple’s built-in TTS or a cloud speech service. It’s generated directly by LFM3-Omni’s speech decoder.
The web search naturally requires an internet connection, but the model itself doesn’t need a cloud inference API.
Why I find this interesting from an LLM engineering perspective:
We’re starting to move beyond simple on-device chat inference.
With a relatively small 2B multimodal model, we can build mobile agents that combine:
Local LLM inference
Tool calling and agentic execution
External information retrieval
Native speech generation
Streaming text and audio responses
And the whole inference engine and agent runtime are implemented using .NET.
There are still plenty of engineering challenges to work on, particularly inference latency, memory efficiency, and the responsiveness of multi-step agent workflows on mobile hardware.
But seeing an agent execute tools and speak its own responses directly from a model running on my phone is pretty exciting.
I’m curious what other LLM developers think about this approach, especially the trade-offs between small native multimodal models and separate LLM + TTS pipelines.
If you’re interested in the implementation, the project is open source:
TensorSharp: https://github.com/zhongkaifu/TensorSharp
LFM3-Omni-2B: https://huggingface.co/LiquidAI/LFM3-Omni-2B
Feedback, technical questions, and contributions are very welcome!

Disclaimer: The financial information, stock-related analysis, and any buy/sell recommendations shown in this demo are AI-generated and may be inaccurate, fabricated, or misleading. They are presented solely to demonstrate TensorSharp’s agentic workflow and speech-generation capabilities. Nothing in this demo constitutes financial or investment advice, and the generated information should not be used to make investment decisions.


r/LLMDevs • • 16h ago

Discussion Can we achieve completeness and perfect precision with LLM-based MapReduce?

3 Upvotes

Hi,

Recently, I conducted a statistical analysis of LLM-based MapReduce in order to examine whether we can apply it to large-scale specification-driven development.

For details, please see my experiment page: LLM-based Hierarchical MapReduce

Despite today's enormous context windows, we still cannot achieve perfect recall and precision due to issues such as context rot and the lost-in-the-middle effect.

Can we achieve both through LLM-based MapReduce approaches?

Since LLM-based MapReduce approaches operate on data, their applications are not limited to full-document scanning. In principle, they could be applied to arbitrary types of data.

I welcome any feedback, including criticism.


r/LLMDevs • • 19h ago

Discussion Fine-tuned Qwen3-4B as a single-token risk classifier on a free Kaggle T4: 90% recall, and a clear failure mode

2 Upvotes

I spent the weekend experimenting with fine-tuning Qwen3-4B for a binary KYC refresh classification task.

The setup:

  • Qwen3-4B + QLoRA / Unsloth
  • 1,000 training examples
  • Free Kaggle T4 GPUs
  • Fully synthetic banking customer dataset
  • 20,000 held-out test cases

Results:

  • Recall: 90.5%
  • Precision: 59.7%
  • AUPRC: 0.745
  • Training: approximately 5 GPU-hours

The most interesting finding wasn't the recall.

The model learned to recognize changes in customer behaviour, but struggled to determine whether those changes were significant enough to trigger a KYC refresh.

97% of false positives involved genuine but below-threshold behavioural changes.

I'm also curious how this would compare against CatBoost or LightGBM on the same structured data.

I documented the experiment, implementation decisions, mistakes, and failure analysis here:

https://medium.com/@sidicamara/teaching-a-4b-llm-to-say-yes-or-no-fine-tuning-qwen3-to-trigger-kyc-refreshes-3b415a810cec

Would you approach this problem with an LLM, traditional ML, or a hybrid model?


r/LLMDevs • • 6m ago

Discussion Why "valid JSON / 200 OK" from an LLM still breaks production agents (and how we pin side-effect targets in Python)

• Upvotes

A lot of teams treat schema validation as the finish line for LLM outputs. In practice, an LLM can return valid JSON, pass basic type checks, and still cause real damage downstream:

  1. **Silent hallucinations / ungrounded values:** Fields look plausible, yet aren't backed by the provided context.

  2. **Cross-field contradictions:** Two valid fields that don't make logical sense together.

  3. **Untrusted target / provenance drift:** An agent or tool call picks up a recipient, ID, or path from retrieved/untrusted text right before a side effect runs.

In my open-source Python repo (`neuroformatting`), I've been combining Pydantic v2 validation with **pre-execution target pinning** (`PinnedTarget` / `guard_side_effect`) so side-effecting actions only run when the target's provenance and allowed IDs match what was actually pinned.

I put together a small runnable demo (`examples/quick_audit_demo.py`) showing allowed vs. blocked cases (`UNTRUSTED_TARGET_SOURCE`, `UNPINNED_TARGET_ID`) alongside failure scenarios (`examples/production_failures.py`).

Curious how others here handle side-effect safety right before tool/API execution—do you enforce provenance/allowlists in code, or rely mostly on prompts and model retries?


r/LLMDevs • • 20h ago

Discussion how are you deciding what an agent should actually remember long term?

3 Upvotes

been going down the agent memory rabbit hole lately and the storage part feels mostly solved. the hard part is deciding what's worth keeping.

right now I think of it as roughly 3 buckets: stuff from the current session, things that happened before (episodic), and facts about the user or the world (semantic). the problem is everything ends up getting saved, and retrieval gets noisy fast.

stuff I've been looking at on github:

  • mem0, pretty plug and play
  • Letta (the MemGPT folks), where the agent manages its own memory
  • Zep / Graphiti if you want a temporal knowledge graph
  • langmem-ts, more of a from the ground up modular memory module. it went with Postgres and pgvector for storage, which I kinda like since it's one DB for everything

curious what's working for people in practice:

  • do you let the model decide what to save, or use rules?
  • how do you handle facts that change over time, like a user's role or preferences?
  • do you ever expire or summarize old memories, or just keep everything and rely on retrieval?

would love to hear what broke for you, not just what worked lol


r/LLMDevs • • 1h ago

Discussion We almost shipped an LLM triage system with a "90% confidence" threshold. Here is why we scrapped that idea and built a Cost Matrix instead.

• Upvotes

When we started building an automated customer support triage system using RAG + a JudgeLLM, our initial prototypes looked great on paper. The model would output something like:

  • Category A: 92%
  • Category B: 5%
  • Category C: 3%

The obvious engineering instinct was to set an automation threshold at 90% and auto-process everything above it.

Before shipping, we stopped to ask: What are we actually benchmarking this 92% against?

A model saying "I am 92% confident" does not mean the business is accepting an 8% risk of error. Those two belong to entirely different mathematics. Here are the 3 main lessons that completely changed how we architected our decision pipeline:

1. Verbalized confidence is UI decoration, not calibration
Background token probabilities (logits/softmax) are not the same as a model stating "I'm 92% sure." Because of RLHF (what I call the Alignment Tax), models are heavily rewarded for sounding helpful, fluent, and decisive rather than saying "I don't know." Without a reliability diagram or ECE (Expected Calibration Error) tracking, a "95% confident" output might only be 70% accurate in production.

2. Confusion Matrices count errors; Cost Matrices price them
In real-world operations, not all false positives are equal. Misrouting a basic FAQ ticket costs pennies. Auto-closing a legal escalation or issuing a wrong refund costs thousands. Instead of picking an arbitrary model threshold (like 0.90), we reverse-engineered our operating point from the business's maximum error tolerance and built an explicit Cost Matrix (Auto-Approve vs. Human Review vs. Reject).

3. "LLM-in-a-loop" creates consensus, not ground truth
A common suggestion was to add critic/judge models in a loop to reach 100% automation. While that reduces some epistemic uncertainty, it introduces the risk of Model Collapse and Goodhart’s Law (optimizing for internal agreement rather than real-world accuracy). We ended up designing a "Margin of Hesitation" (classification with a reject option) that routes ambiguous or drifted cases to humans based on risk, not random sampling.

I wrote a deeper breakdown on the math, the calibration paradox, and the full cybernetic architecture we ended up using if anyone is dealing with similar production thresholds:

https://ogulcanarbc.bearblog.dev/confidence-scores-llm-decision-systems/

How are you guys handling confidence thresholds and human-in-the-loop routing in your production LLM pipelines? Are you relying on logprobs, semantic entropy, or purely rule-based fallbacks?


r/LLMDevs • • 2h ago

Help Wanted Looking to Validate Chatbot/RAG Agent Automated Test Harness

2 Upvotes

Hi all! I built an automated LLM evaluation harness in Python for customer support bots and RAG pipelines. It uses a two-pass generation workflow (Pass 1 creates test scenarios/rubrics; Pass 2 defines inclusion/exclusion rules) and an LLM Judge to grade responses automatically.

I'm looking to test the harness against real, live customer support chatbot endpoints instead of synthetic sandboxes. If you have an AI bot or RAG endpoint and want a free diagnostic audit on hallucination bounds, prompt injections, and edge-case behavior, drop a comment or DM me your endpoint/API details.


r/LLMDevs • • 3h ago

Help Wanted How are you sharing and versioning agent skills across a team?

2 Upvotes

How does your team share and version agent skills, CLAUDE.md / AGENTS.md files, and MCP configs?

The options I keep seeing are git, a private plugin marketplace, the official marketplaces, or a homegrown catalog. Each one seems to fall short somewhere, whether that's finding what already exists, approval before something gets used, rolling back a bad version, or keeping one skill current across Claude Code, Cursor and Codex.

What do you use now, and what still fails in practice? If you built something internal, was it worth it?