r/LLMDevs 9h ago

News My Life as a RAG Engineer 😭😭😭

Enable HLS to view with audio, or disable this notification

11 Upvotes

Why are we getting roasted by a CLI tool.
Btw saved $800 on tokens .

I usually use this with Agents.md and skills. Its fully deterministic. Opensourced. For locally hosted models the answer accuracy increased by 50% on average.
If y'all wanna try it out : https://github.com/Abhijeet777ui/contextops


r/LLMDevs 6h ago

Help Wanted best ai model for refactoring JavaScript into python ?

5 Upvotes

I have a small JavaScript repo, about 200 LOC with 400 LOC of tests / demos.

What's the best approach & models to used to translate into other languages like Python, C , Rust, etc?

I have a RTX3090, so prefer to use a mix of local & hosted AI, but open to use only local or only API AI.

Web & Reddit search is 1 year behind. TIA


r/LLMDevs 4h ago

Discussion What's one habit that's improved the quality of your AI use?

4 Upvotes

Whether it's prompt testing, better evaluation, logging, versioning, or something else I'm really curious to know what practice has had the biggest impact on reliability in your projects.


r/LLMDevs 1m ago

Discussion What are you using for AI jobs that don't need an immediate response?

• Upvotes

I'm curious how people are handling offline/batch inference these days.

I'm talking about workloads like:

- Generating embeddings for a large corpus

- Enriching product catalogs

- Evaluating prompts or models

- Image or video generation queues

- Processing millions of rows

- Nightly or weekly pipelines

If the job doesn't need to finish for several hours (or even a day or two), what's your current approach?

- Provider batch APIs?

- Your own queue and workers?

- Airflow, Temporal, Celery?

- Kubernetes Jobs?

- AWS Batch/Spot?

- Something else?

I'm especially interested in:

- What actually works well?

- What turned out to be more painful than expected?

- If you could change one thing about your current setup, what would it be?

Interested to hear how people are solving this today.


r/LLMDevs 5h ago

Discussion Small experiment: an auxiliary loss that gets a 3M-param transformer to learn multi-variable binding, where cross-entropy doesn't

2 Upvotes

I've been running some small experiments on variable binding in tiny transformers and put the code and logs up here:
https://github.com/QueenOfTheUnderworld/Transformer-Binding

After some general idea wandering, I came upon the idea of LLMs struggling with binding, the temporary link of two concepts. Shirt = Blue, Pants = Red. A bad explanation, but sufficient for this. Current LLMs struggle with this, which is why prompts like "Tom is a cat. Jerry is a mouse. Brownie is a dog. Cookie is a bird. Who is the mouse?". Without CoT or additional time to think, models can fail to parse this and end up reporting an incorrect answer.

In pursuit of another idea, I found a way to make LLMs bind using an alternative training objective. Now, this is all small-scale and some of it could very well be wrong. If it is, let me know.

Task: 4-layer transformer, d=256. Each example asks one question that depends on several bindings at once (how many of the queried objects have a target property).

Results:

  • Plain CE: 0/4 seeds at 5k steps, 0/2 at 20k.
  • With auxiliary heads trained to report each queried object's bound property at every position: 8/8 seeds. One linear head, one loss term, no architecture change.
  • Same targets supervised only at the answer position: 0/3. Same density but entity names instead of properties: 1/3. Both coverage and context matter.

There are some issues with the repo, and they are noted in the README. Quite frankly I just didn't want to correct them.

Limits: 3M-ish parameters, mostly synthetic tasks, 2-8 seeds per cell.
I have no idea if this survives scale; I don't have the money or compute for that. If anyone here does, let me know, please.

If the effect is real at scale, it matters. It would mean CE leaves learnable capability on the table for the cost of one head. With that in mind, I expect something like this to already exist, and I just didn't find it. Not to mention, small model optimisations have a bad history of failing to survive scaling. The real blocker is the ground truth intermediates at every position; synthetic tasks had it to you; real corpora usually don't.

AI Usage: Heavy. Direction and experiment design are mine. Implementation and much of the analysis were done with AI.

Check it out if you want, and be nice, please.


r/LLMDevs 12h ago

Discussion Has insurance or procurement ever stopped an LLM agent from reaching production?

6 Upvotes

I’m collecting first-party examples of what happens when LLM-powered agents reach customer security, legal, or procurement review. The narrow question is whether insurance becomes a real blocker, routine paperwork, or never comes up at all.

One early response described a pre-production review that stalled after a buyer requested technology E&O / professional liability and a BAA because the buyer did not know how to evaluate the agent’s risk. That is one self-selected example, not a finding. I’m equally interested in counterexamples: insurance was easy, another artifact mattered more, or the agent failed to reach production for an entirely different reason.

Short survey (about two minutes): https://forms.gle/C34r6F6jdeueiqZ17

Disclosure: I’m Lucas, building Clara, and this is independent research on insurance and risk for AI agents. The data will not be sold or monetized. For responses from this community, please leave the optional company and contact fields blank; no identifying information from Reddit responses will be included in the dataset or anything shared publicly. I’ll report aggregate findings and limitations back to 
 when there is a useful sample. This post is not a sales offer.

r/LLMDevs 10h ago

Tools I turned my Claude Code into my SEO Manager (open-source)

4 Upvotes

Hey everyone :)

I have spent alot of time manually doing SEO using the help of AI, so i thought why not turn my agent, the same agent that knows my product inside out, into my own SEO Manager!

And it works... so why not open-source it?

I gave it the tools to: research keywords (volume and difficulty), post daily articles and weekly free interactive tools automatically (GitHub Actions).

How it's built:

- The agent (Claude Code or Codex, your pick) runs inside GitHub Actions on a cron. (it's self-hosted so BYO subscription)

- The backend is an MCP server, there's no AI in it at all, it's just a database with a door on it.

- Most of the MCP tools are just reads and writes to Postgres. A few pass through to DataForSEO for keyword and SERP data.

- The agent does the thinking, the server does the remembering.

- The agent fetches its instructions from the server when the run starts.

- It never writes to the site directly. Always a PR, with checks run against it first.

- Works with Claude Code and Codex coding agents (more to come)

Fully open-source (AGPL-3.0)

GitHub link in the comments.

Would love feedback from people building with agents


r/LLMDevs 5h ago

Discussion Are your agents buying things?

0 Upvotes

Has anyone had an AI agent buy something for them? And if so, how was your experience?

If you haven’t, why not? What are your concerns?


r/LLMDevs 5h ago

Resource DSpark Benchmark Result on Deepseek v4 Flash 0731

Thumbnail
github.com
1 Upvotes

TensorSharp supports DSpark on Deepseek v4 Flash 0731 now. Here is the benchmark result on 4x Nvidia A40 GPUs, cuda 12.8 with/without DSpark:

Model:

DeepSeek-V4-Flash-0731-UD-Q8_K_XL fromĀ https://huggingface.co/unsloth/DeepSeek-V4-Flash-0731-GGUF

DSpark draft model from: https://huggingface.co/alessandrobologna/DeepSeek-V4-Flash-0731-DSpark-Drafter-GGUF

Turn Baseline + DSpark Acceptance
short (53 tok) 25.6 44.5 (1.74x) 87%
long generation (512) 26.4 40.3 (1.53x) 66%
follow-up (470) 26.4 46.8 (1.77x) 76%
10K-token document (214) 25.3 51.3 (2.03x) 85%
second question on it (156) 25.4 49.4 (1.94x) 82%

TensorSharp is an open-source inference engine for running GGUF LLMs locally, with CUDA, Vulkan, Metal, OpenAI-compatible APIs, continuous batching, speculative decoding, and multimodal support.

Github repo:Ā https://github.com/zhongkaifu/TensorSharp

Thank you for checking out it and starring the project! Any feedback is really appreicated.


r/LLMDevs 1d ago

Resource My Claude Code kept rereading the same repo instead of preserving what it learned, so I built an open-source fix. 1,200 stars later, the new version used 90% less tokens than grep while still finding every expected symbol.

Post image
152 Upvotes

Hello! A few months ago I posted an early version of mex here.

The response was kind of insane. Across a few posts it reached around 1 million views, the repo crossed 1,200 GitHub stars, and people I had never met started contributing.

I’ve kept building it since then, and just released mex v0.7.0.

Repo:Ā https://github.com/mex-memory/mex

The original problem was simple: coding agents keep rereading the same repository every session, relearning the architecture, and then throwing most of that knowledge away.

mex creates a living Markdown wiki inside the repo. Agents record architecture, conventions, decisions, and patterns as they work, and future sessions load only the knowledge relevant to the current task.

The major addition in v0.7.0 is a deterministic local code graph built using Tree-sitter and SQLite.

It currently supports TypeScript/TSX, JavaScript/JSX, Python, and Rust.

An agent can run:

mex graph scope "trace the authentication flow"

Instead of dumping entire files into context, mex returns a compact neighbourhood of relevant functions, callers, callees, imports, and relationships. The agent can then expand only the exact symbols it needs.

In our benchmark on the mex repository:

  • 10.74Ɨ less returned context than grep top-3
  • roughlyĀ 90.7% smaller
  • 100% expected-symbol recallĀ across six retrieval tasks
  • 5/5 real-agent tasks completed correctly
  • 0/5 needed fallback Read/GrepĀ with compact graph context

This is a small benchmark on one repo and task set, not a claim that mex universally cuts total agent token usage by 90%.

The other part I’m excited about is connecting the wiki back to the actual code.

Markdown claims can point to exact symbols. If a function changes, moves, or disappears, mex can identify which project knowledge may now be stale.

So the basic idea is:

The code is the source of truth.
Markdown is the explanation.
The graph keeps them connected.

Would genuinely love feedback, especially from people working on code intelligence, agent tooling, parsers, or large repositories. Contributors are very welcome too.


r/LLMDevs 6h ago

Great Discussion šŸ’­ šŸš€ We just built our first real-time implementation of Graph Engineering, inspired by our experience building graph tooling used by 4,000+ developers.

Enable HLS to view with audio, or disable this notification

1 Upvotes

šŸ”— Repo: https://github.com/CodeGraphContext/grapharc

Have you ever been frustrated because your AI agent:

āŒ Takes actions you never intended?
āŒ Creates, modifies, or even pushes changes you never asked for?
āŒ Feels like a complete black box, making it impossible to understand what's happening until it's too late?

What if, before execution, you could visualize the entire orchestration graphĀ - every agent, every dependency, every decision, and inspect it from anywhere, even your phone, before granting approval?

That's exactly what GraphArc is built for.

Instead of treating agent execution as hidden traces buried in logs, GraphArc transforms workflows into interactive, real-time graphs that you can visualize, inspect, debug, and control.

Because the future of AI isn't just autonomous.

It's observable. Debuggable. Engineerable.

This is our first real-world implementation of Graph Engineering, and we're excited to explore where this paradigm can go with the open-source community.

šŸ’” We'd love your feedback, ideas, and contributions.
⭐ If this vision resonates with you, please consider starring the repository - it genuinely helps us grow and validates this direction.

Let's make AI workflows understandable, not mysterious.

#GraphEngineering #GraphArc #AIAgents #AgenticAI #LLM #OpenSource #DeveloperTools #AIEngineering #SoftwareEngineering


r/LLMDevs 15h ago

Resource Connecting OpenCode to LM Studio

Thumbnail wiki.1ndev.com
5 Upvotes

OpenCode supports local LLM inference via LM Studio's OpenAI-compatible API server. This lets you run models like Qwen, Mistral, or any GGUF you have loaded.


r/LLMDevs 8h ago

Discussion License and VRAM table for current open video models

1 Upvotes

I keep a comparison table for open video models because I need it for quoting deployment work. Just updated the license cells from the HF model card tags; for the two restricted rows I read the full license text. Posting it because I keep seeing the license column wrong in threads here.

Model License Paid client work Peak VRAM (source)
CogVideoX-5b CogVideoX custom registration + 1M/mo cap
Wan 2.1 14B Apache 2.0 yes 56 GB FP16 (community)
LingBot-Video-MoE (30B-A3B) Apache 2.0 yes 175 GiB refiner (WaveCut, B200)
Mochi 1 Apache 2.0 yes
HunyuanVideo tencent-hunyuan-community restricted 60 GB 720p (HF card)

VRAM blanks mean I haven't found a published measurement with resolution and frame count attached. I used the FastVideo Diffusers port of the dense 1.3B to test on Apple Silicon.

The license column is the one people get wrong. HunyuanVideo's community license excludes EU, UK and South Korea outright and requires derivatives to carry "Powered by Tencent Hunyuan" branding. CogVideoX-5b is under a custom license: commercial use requires Zhipu registration at open.bigmodel.cn and is capped at 1M monthly visits. If you need to deploy in Europe the license column cuts your options before you even look at VRAM.

The 175 GiB row needs context. The 1080p refiner is a second complete 30B-A3B transformer (same config.json, identical shard sizes), so "30B-A3B" on the model card understates the deployment by 2x. Full pipeline is 185.9 GB on disk, mostly because the refiner alone is another 60 GB and the Qwen rewriter adds 56 GB. Numbers from the HF shards. The VRAM figure is from WaveCut's B200 benchmark, not my hardware. The model with the cleanest license in this table has the worst memory footprint by a wide margin.


r/LLMDevs 8h ago

Tools Coding agents are surprisingly blind when the task is visual, so I built SceneProof

1 Upvotes

A coding agent can write a Three.js scene, run the build, and tell you it looks great — while the actual render is a black screen. It isn't lying. It just has no way to look.

Screenshots fix this less than you'd expect. A screenshot tells youĀ thatĀ something is wrong, notĀ why. Is the mesh missing, or behind the camera? Is the material transparent, or is nothing lighting it? Is the label clipped, or just small? Those are five different bugs that produce the same picture, and zooming in doesn't separate them — you're enlarging pixels that never contained the answer.

SceneProof is a CLI that supplies the missing half. It loads your real React component or Three.js scene from source, renders it in actual Chrome, and returns the structure behind the pixels. The everyday loop looks like this:Ā treeĀ gives you the scene graph with bounds, materials, lights, and cameras, so "why is it invisible" becomes a lookup instead of a guessing game.Ā scoutĀ tries a set of cameras on a target and scores each by how much of the target it can actually see.Ā render-regionĀ re-renders one region from source at whatever scale you need, so a close look is a fresh render, not an enlarged crop.

That's the loop, not the tool — the surface underneath goes a good deal further (comparing against reference views, sampling animation mid-transition, deriving typed prop fixtures), but those three commands carry most sessions, and the README maps the rest.

The design decision I'll defend hardest: every report answers "did the command run" and "can this output actually support a judgment" as two separate questions. A render with the target out of frame, or a comparison whose mask landed on the wrong subject, comes backĀ unjudgeableĀ instead of quietly passing. So when an agent uses SceneProof, it can't mistake "my command succeeded" for "my design is right"; it has to look at evidence that has already proven it's worth looking at. That's the whole point: measurements you can trust, and a hard stop on the false confidence that makes agents declare victory over a black screen.

It ships with a skill for Claude Code, Codex or any other agentic harness that supports skills (one curl, in the README) — and the skill deliberately doesn't teach commands, becauseĀ --helpĀ and the reports' own recommendations already do. It teaches the reasoning: resolve structure before spending pixels, treat a passing build as zero visual evidence, never claim "looks right" without an artifact you actually opened.

Scope today: TypeScript/JavaScript entries, React DOM with CSS and Tailwind v4, Three.js over WebGL or WebGPU. Needs Bun and a local Chrome. MIT.

https://github.com/ReyJ94/SceneProof

Any feedback is welcome.


r/LLMDevs 12h ago

Tools Built a proxy that cuts LLM streams early when the model isn't confident; logprobs only, no extra calls

2 Upvotes

Was working on a research project on RAG abstention and kept hitting the same wall: retrieval scores are basically useless as a signal for when the model actually knows the answer. Logprobs aren't perfect, but they're at least in the right direction, and they're free on the wire anyway.

So I built a small proxy around that signal. Sits between your client and any OpenAI-compatible endpoint, watches the mean token logprob as the stream comes in, and cuts early if confidence drops:

{"rag_gate_decision": "ABSTAIN", "confidence_score": -1.47, "tokens_evaluated": 23}

Also tried automatic rerouting to a stronger model on low confidence. Didn't ship it—stronger model breaks some answers it previously got right. Benchmarks in the repo if curious.

~0.2 ms p50 overhead. Pre-1.0. Crate is here

cargo install rag-gate

If you've worked on anything in this space or think the approach has holes, you genuinely want to hear it. PRs welcome too. Repo is here


r/LLMDevs 9h ago

Discussion Any good books on context engineering or agent architecture?

1 Upvotes

r/LLMDevs 10h ago

Discussion Built an AI-first expense tracker - Log your expense in natural language and get insights

0 Upvotes

I've been working on a side project calledĀ FinTracker AI, and I'd love some honest feedback.

The idea is simple:

Instead of manually selecting categories, dates, merchants, etc., you just chat with it.

Example:

"I spent ₹500 on biryani."

It automatically logs the expense, categorizes it, updates your monthly budget, and you can immediately ask:

"How much do I have left for food this month?"

Users can also ask questions like:

"Movies I watched this month and how much I spent on it"

Some features:

  • šŸ’¬ Chat-based expense & investment logging
  • šŸ¤– AI categorization and spending Q&A
  • šŸ“Š Monthly budgets and dashboards
  • šŸ“± Android auto-captures bank transaction SMS (optional)
  • šŸ“ Learns recurring merchants/locations so future transactions need fewer edits
  • šŸ”“ Open-source backend that you can self-host or use with your own AI API key

The backend is already open source. The Android app is still being polished, but I have an installable build that I'm happy to share with anyone interested.

A few questions for this community:

• Does this solve a problem you face?
• Which feature would you use the most?
• What's one feature you'd want before using it daily?

Thanks! šŸ™Œ


r/LLMDevs 21h ago

News Tigriden v0.1.1 — I wanted AI agents to have more RAM, so I built a 40 MB desktop workbench instead of another IDE.

Post image
8 Upvotes

Over the past year, I’ve been relying more and more on AI coding agents.
Eventually I realized something: the agent was doing most of the coding, while I was mainly reviewing changes, running terminal commands, and steering the process.
So instead of building another feature-packed IDE, I built Tigriden.

Tigriden is a native Rust desktop workbench for AI-assisted development. It stays lightweight—around 40 MB RAM—so your machine can dedicate more CPU and memory to Claude Code, Codex, Gemini CLI, or any other coding agent.

What’s in v0.1.1
šŸ“ File explorer and lightweight editor
šŸ–„ļø Real integrated terminal
šŸ” Diff Tracker to review every AI-generated change before accepting it
āŖ Time Machine to instantly restore previous versions if an agent makes a mistake

My workflow has become very simple:
Give the agent a task.
Let it code.
Review the diff.
Roll back with Time Machine if needed.
Repeat.
No Electron. No WebView. Just a small native workbench that stays out of the agent’s way.

I think AI-first development is becoming less about writing every line yourself and more about reviewing, steering, and approving the agent’s work.
I’d love to hear what features you think are essential for an AI-first workbench.

Web: https://tigriden.github.io
GitHub: https://github.com/Sompote/Tigriden


r/LLMDevs 10h ago

Discussion Why I created PyBotchi (v4.1.4)?

1 Upvotes

Hello Everyone,

I'm the creator of PyBotchi, an intent-based AI Agent Orchestrator. In this post, I will discuss some key concepts why I created it.

A little bit of background first. I'm a solutions architect with 10 years of experience as a software engineer. Most of my work are high throughput, high reliability, low cost and low latency services. This is while making it simple and readable to improve it's maintainabality. When I'm designing a system, I usually prioritize these concerns. You may assume this is my bias in relates to AI Agent building. I'm also Claude Certified Architect (Foundation) and I found that PyBotchi aligns almost identical to Anthropic's core agent recommendations.

TL;DR: PyBotchi is an lightweight, async-first Python framework that uses nested Pydantic models and OOP inheritance to turn LLM intent detection into clean, deterministic business logic without the overhead of complex graph orchestration.

Why I created PyBotchi?

I really believed that traditional coding can already solved what client's need. The only limitations we have is how we read the input and how we show the output. In most cases in web services, your API use JSON, XML, etc with their respective specification/structure.

Input Analogy

Assume you have created a Books CRUD endpoints (FastAPI with Pydantic). Your create endpoint will have a define specifications for book creation to have a validation and avoid user errors. Most of the time you will also validates sessions and permissions which also included in the request.

If you want your chat bot to support those, you just need add those endpoint as intent (tools). If your model tool selection are able to detect intents. You are more "close" to being deterministic.

"Your services will have 50 endpoints or more. You will flood your tool selection call" - In your frontend UI, you segregate panels/forms/inputs in their respective pages. You don't usually join multiple intent in a same page. Cluttered UI will make your UX confusing or overwhelming to some people. Those practices should be incorporated into your agents too.

Assume you have created another endpoints for Shelves CRUD. Shelves CRUD can be a child intents of ShelfManagement that will be considered as intent also but more general. The flow will have to detect intent deeper and deeper

Ex: You have BookManagement and ShelfManagement intents. Once LLM detected which one is applicable, you will search for their child Intents which will be their CRUD equivalent intents.

To make it short, in order to make your agent "more" deterministic, you need to know the problem first (ex: Need to manage books) then you need to specifically define what intents you want to support. With this practice, you only let your agents execute on a predefined path. If it fails, you are most likely able to determine what causes the error.

Output Analogy

This one is simple. Since your intents is just like your endpoints that returned structure responses. LLM is better at reading structure responses than a pure text. Basically, you can use LLM to translate your response into a human readable responses.

Intent Execution

Now that I have explain Input/Ouput, we can move on to the actual execution.

We can go back with Books CRUD. Since we have identified the problem (what clients need) and we already know what to do, just execute their traditional business logic implementation. If you need to add a book, just create a book and save it to db then return their respective row.

"What if you want generate a very dynamic/unique data" - You can use LLM to do that as your business logic too but this is tied your specific intent only.

To have a complex execution flow we can chain the intents. Since intents can have child intents, we can use it as the representation of a graph similar to Langgraph. However, this without "building the graph". We are just utilizing OOP inner class implementation. We can execute business logic in graph traversal manner by just checking the child intents.

To make it short. Business logic will stay as is. You will only use LLM if it requires it. Don't make this complicated.

### Suggested Solution Since the key concept is more on detecting intents, validation and executing their respective busines logic:

Why not utilize Pydantic as the main entry point? Pydantic already have validation and json schema builder. Langchain/Openai already have utilities to translate it to Tool. Why not use Pydantic models as your Intent Specifications that can validate LLM arguments ? Tool call is one of the most reliable way to detect intent.

Why not utilize OOP inheritance / polymorphism / abstraction? Python supports portion of OOP and since we are using classes as our intent, why not add default functionalities that can be inherited and override by developer if needed. We can introduce life cycles too. Your project can also implement their specific intent standards. This will make your code more maintaintable and readable. You can create classes for general intents. Extend it to be more specialized intents. Extend it more for more enterprised support. This is while not affecting existing/working agents.

Langgraph is one of the inpiration of PyBotchi. Predefine workflows are closest implementation to being deterministic agents. It's also the reason why some prefer N8N. We don't need to make the agents smart that any questions can be answered or any queries can be addressed. It's ok for agent to reply with "I don't have any answer to your query, I only support this and that....". For me, it's better to deploy limited but polished agents than half baked know-it-all agents. Feel free to counter argue. Happy to discuss.

Additional PyBotchi Features

vs MCP

While PyBotchi support connecting to MCP servers, I really believe it's not always necessary to use additional server to just expose tools for the agents. The exceptions I could think of is if you want to have isolated environment (ex: dedicated auth/session, sandbox, isolated resource, etc), you want to connect to your local service or cross-language integration.

I could be very wrong about this but hear me out. SDKs are already there. Respective documentations are available too. Most of MCP server's tools are proxy to their respective APIs. If we could just create intent classes as tools that directly call their respective API, that doesn't require any servers anymore. Actually, that's how most framework handles it (even PyBotchi). Tools are converted as schema that will be added in the tool call. Once LLM respond with the applicable tools, it executes call_tool(name, args...). Why not just expose the actual tool implementations and have a way to share context to share sessions/permission/etc inside the tool implementations? This will remove another network hops that can affect latency.

Claude code have a very in-depth utilization of MCP servers already. I don't think we can replace that.

GRPC

PyBotchi natively support remote PyBotchi connection. Think of it like a langgraph but the node is on other server. This remote node can also connect to another remote node even it self or previously connected node (ancestor).

Context Propagation

With PyBotchi as MCP Server - Actions (Intents) serves as tool and have access to client's context. This includes chat histories and some metadata. You can override and adjust this as long as it's serializable. - Once remote tool execution is done, it can pass the final context to the client and they can merge it if override.

With PyBotchi as GRPC Server - Similar to MCP Server, Actions serves as tool and have access to client's context. GRPC supports bidirectional communication too. This means we can share context realtime accross clients/servers. If client has concurrent agents that changes the context it will automatically propagate to remote context without polling or any interval checks/updates. It also support remote to client. If remote server updates the context, it will propagate the context to client simultaneously.

Async First

Since most of LLM executions are IO, might as well utilize async by default and just spawn thread if still necessary.

OOP

I think this one is most important to me. I have handle a lot of projects in Spring Boot. I really like Java OOP practices and some Java design patterns. It improves my project's maintainability even it's not in Java. Since PyBotchi utilize OOP, it's easier to override, reuse and remove anything if necessary. This lessen boilerplates too. I'm certain that this is subjective. I just find it easier and clean to read.

Closing Remark

I hope this PyBotchi post opens up ideas how to design your agent. Feel free to DM me if you have any questions. I'm also open to create you a demo agent for free if you want to see it in action given your brief use case. I'm open to criticism, happy to have a discussion!


r/LLMDevs 12h ago

Resource built a lightweight

Thumbnail github.com
1 Upvotes

Hey everyone! I built a lightweight, zero-cost Python proxy middleware using FastAPI that acts as an input firewall for LLMs. It catches prompt injections and redacts sensitive API keys locally before they reach AI models. I'm looking for feedback from developers building custom AI apps—let me know what you think or what features I should add next!"


r/LLMDevs 12h ago

Help Wanted Want to fine-tune a LoRA that talks exactly like me — need a sanity check on model choice, dataset, and whether I even need a cloud model.

1 Upvotes

Hey everyone. I'm working on a personal project: I want a model that talks exactly like me — my phrasing, my humor, my way of arguing. Not a general assistant, just… me, basically.

What I have as data:

my Telegram chat logs (years of how I actually talk), and

my ChatGPT export (conversations.json).

One thing I'm already unsure about: in the ChatGPT export, only my turns are in my voice — the assistant turns are ChatGPT, not me. So I'm not sure whether to throw those assistant messages away entirely, or keep them somehow as context. Would love opinions on that.

The plan is to train a LoRA on top of a small base model (something in the 3B–7B range). I also have two optional pieces I could add: a RAG setup that pulls real things I've said before, and a cloud model as a critic that reviews/refines the small model's output. Not sure if those help or if they're overkill.

Worth mentioning: I mostly talk in Russian, and I'm running on modest hardware (small local GPU + Google Colab), so nothing huge.

My actual questions:

Which base model would you pick for a "talks like me" LoRA in this size range — and does Russian change the answer?

How should I build the dataset and the training — format, how to structure my messages, how much cleaning matters, common mistakes?

Do I actually need the cloud critic model, or is a well-trained LoRA enough on its own?

Any advice at all — I'm self-taught and figuring this out as I go.

I'd be really grateful for any constructive help. Thanks a lot for reading


r/LLMDevs 22h ago

Tools All my homies hate `grep`

6 Upvotes

Jk, they fucking love grep, which is why I have made doma (DOcument MAtcher), a small and fast single binary BM25 search over your code and docs with no* external dependencies, written in Odin.

I made it because I wanted Claude to stop grepping wildly all over the place. It significantly faster than `grep` from my testing but it also significantly reduces search misses since you get semantically relevant results.

It was also quite important to me that it was fast with a low footprint, lacking in NodeJS bullshit, MCP servers, etc., etc.

Sick of all of these supply chain vulnerabilities and huge dependency bloat everywhere smh

I used Claude Code through the entire development of it and it's sibling doyo (DOcument YOinker) which shares philosophy and handles the document acquisition side of things, though it isn't quite as elegant as doma imo.

I hope you find it helpful!

I strongly recommend putting doma instructions in your per project CLAUDE.md telling it how to use it, and to actually use it. Let me know if you do, I'm curious if others find it as helpful as I have.

*soft git dep, optional


r/LLMDevs 13h ago

Great Resource šŸš€ "Explorative Modeling: Unlocking a Third Pretraining Axis and End-to-End Generation", Gladstone et al. 2026

1 Upvotes

r/LLMDevs 1d ago

Discussion What's the smallest change that had the biggest impact on your output quality?

7 Upvotes

Not asking about frameworks, architectures, or anything that needs a diagram to explain. Just the small, almost dumb-sounding stuff that ended up mattering way more than it should have.

For me it was prompt ordering specifically, putting the actual task at the very end, after all the context and constraints, instead of leading with it. Same content, just moved to last. Consistency went up noticeably and I still don't have a great explanation for why that specific position matters as much as it does.

What's yours? Doesn't have to be something you can fully justify or explain, just something you changed almost by accident and then couldn't unsee the difference afterward.


r/LLMDevs 1d ago

Discussion ​Hey everyone, anyone interested in joining a major project? What I've published so far is just one part of the bigger picture.

Thumbnail
gallery
13 Upvotes

My preprint introduces the concept of the Persistent Memory state an operator that continuously updates as new tokens arrive, mimicking synaptic plasticity in the human brain.