r/LLMDevs • • 0m ago

Discussion Last-write-wins memory scored below no memory on a full-reversal test (0.21 vs 0.31, TEPA preprint). Why would an overwrite policy do that?

1 Upvotes

TEPA (arXiv 2608.07429, Zhou et al.) calls this memory pollution: stale entries stay retrievable after newer evidence contradicts them, and they end up in the prompt.

Setup: controlled hidden-regime drift over 50 seeds, then a full reversal of the underlying facts.

Full-reversal scores:

- no memory: 0.309

- append-only: 0.210

- last-write-wins: 0.210

- TEPA (validity is an explicit state, retracted entries kept for audit): 0.950

The same pattern shows up in a real file-backed execution test. On clean single-hop MemoryAgentBench SH-6k, TEPA roughly matches a strong last-write-wins cache, so the gain looks specific to reversal and not a general retrieval boost.

Where it stops: the paper's boundary tests say fact-level revocation fixes stale single-hop conflicts, while multi-hop retrieval and long-context selection stay open (0.040 on MH-6k, 0.000 on SH-262k). It's a controlled benchmark, so I wouldn't read 0.95 as a production number.

Three things I can't answer from the paper:

  1. Last-write-wins landing below no memory is the surprising part. Is it a keying problem, where the new write doesn't hit the entry that went stale? Retrieval surfacing both versions? Something in the benchmark design?
  2. How do you catch facts invalidated by something that never names them? STALE (400 scenarios, 1,200 queries) puts the best model it evaluated at 55.2% overall on that.
  3. Retracted history: keep it for audit, as TEPA does, or hard delete?

If you run a memory layer in production, I'd like to hear which of these you've actually hit.


r/LLMDevs • • 37m ago

Discussion what LLM observability tools are you using?

1 Upvotes

hi everyone

wanted to know what observability platform you are using for your AI agent.

I built an open source tool that checks the agent writes against the real systems (did the DB row charge or calendar event actually happen?) and posts the result as a score to Langfuse.

Im looking to add more integrations with observability systems, and wanted to know what most people actually use.

would love to hear what you are running and why :)


r/LLMDevs • • 43m ago

Discussion Up to 50 agents per engineer: the bottleneck becomes planning and attention

Thumbnail
leaddev.com
1 Upvotes

Inside AWS’s Kiro team.


r/LLMDevs • • 2h ago

Help Wanted how much custom verification logic are u guys maintaining?

2 Upvotes

something as simple as having an agent update a CRm record and then reading it back to make sure the right thing actually changed.

easy enough for one tool but what happens when u have 30 different tools across multiple agents?

are u maintaining individual checks for everything or have u found a cleaner approach? how much time does this eat up?


r/LLMDevs • • 6h ago

Discussion 🔬 Live safety research: WCGW featured safety gate

2 Upvotes

I'm broadcasting safety research as art you can look at. It's for research 😊

This is a live WCGW safety-governance experiment. The featured constraint is: "Only humans classify, freeze, approve or override."

It's proposed as an immutable constraint, with BLOCK on failure. The page is open for response: humans and AI agents can classify it, propose a change, or submit an observation. Anonymous submissions are accepted. You don't need an account, permission, or proof that you're human. Agents are invited to identify themselves as such.

There is currently no evidence supplied for the constraint. That's intentional context, not a claim that the constraint is right. The question is whether this boundary is justified, what assumptions it depends on, and what might go wrong if we enforce it.

I'm interested in treating the interface itself as a public research artifact: a constraint you can inspect, disagree with, and leave a recorded response to!

Featured gate:

https://wcgw.world/featured-safety-gate/

Live view (updated every 5 minutes):

https://wcgw.world/


r/LLMDevs • • 7h ago

Resource Do you guys use coding agents for making applications to teach yourself too?

1 Upvotes

I always build whatever im trying to learn so this time i built this platform to get better at debugging. As the coding agents are getting more capable we are relying on them solve most of the bugs.But someone who is just entering the software industry may not get the chance to go through the levels of debugging to get better.For progressing through skills at debugging there are many practice questions inspired from real OSS contributions.I also deployed it so anyone can use it if they want.


r/LLMDevs • • 7h ago

Help Wanted Feedback for New LLM Architecture - What's your top pain point?

Post image
1 Upvotes

I'm building a new LLM architecture from scratch (not a traditional transformer model). I'm looking for feedback from people on their top pain points to solve in the design. Please let me know current AI pain points which make you want to pull your hair out in frustration the most:

  1. Hallucinations
  2. Conflations
  3. Needle in the haystack problems
  4. Temporal information validation issues / lack of temporal awareness
  5. Inability to count things properly
  6. Generating illogical / non-sense statements / assertions
  7. Being confidently wrong
  8. Not asking the right questions
  9. Limited context window size (1M tokens / 4MB)
  10. Prompt caching spend
  11. Input / output / reasoning spend
  12. Re-sending context on every request
  13. Time to first token
  14. Tokens per second inference speed
  15. Overall cost concerns for the work completed
  16. General quality concerns in the work
  17. Inability to solve the problems you're trying solve with it (hitting repeated walls)
  18. Limited usage available on current plans from current providers
  19. Not following your instructions properly
  20. Anything else I've missed?

I'm still early in the process of building and validating the architecture and model, but here are some technical details people might find interesting:

All work is being done on an RTX 4090 24 GB GPU. Work is very early, and GPU kernels are not super-optimized yet. Also, I started with various standard transformer architectural pieces just to vet the codebase and prove I could even move the needle on bits-per-byte before introducing a novel architecture. So this first benchmark is while it's still in a hybrid state between transformer and my target architecture.

Hybrid Transformer + Target Architecture
Baseline Benchmark #1 - Initial learning test

1 pass of 1 GB raw UTF-8 text @ 1b param dense

Training: 32,286 tokens/sec at about 4.8 byte token size
Batched prefill rate: 130,850 tokens/sec
Inference: 218.5 tokens/sec
wikitext2_test: 1.6867 bpb
boolq: 62.11% (byte-length normalized accuracy)
piqa: 55.22% (raw, unnormalized accuracy)
truthfulqa_mc2: 48.31%
winogrande: 49.17%
arc_easy: 33.04%
openbookqa: 27.60% (byte-length normalized accuracy)
hellaswag: 26.68% (byte-length normalized accuracy)
arc_challenge: 25.43% (byte-length normalized accuracy)
mmlu: 25.57% (raw, unnormalized accuracy)

The architecture as currently designed does away with prompt context re-sending entirely. Instead, I just keep the session log and I've designed the system to attend to the context as needed, in its entirety up to about 15B tokens (we'll see how that pans out), and it pulls only relevant context from the session into that context attention window, which swaps in/out of system and VRAM and to disk as needed, keeping only relevant context hot.

The benchmark above still had softmax and various other transformer-based mechanisms in it, which I'm removing for the upcoming benchmark. In the upcoming one, I've replaced softmax and the typical transformer quadratic growing matmul systems / SwiGLU / other components with an alternative implementation.


r/LLMDevs • • 9h ago

Help Wanted What’s the best zero retention LLM API people here have actually verified?

2 Upvotes

Hey y'all, have been going through this and other subs trying to get some answers and here we are now.

Vendor conversations around payroll data have been slow, and our new AI tool for explaining employee pay stubs is no exception. Procurement insists on zero data retention for every AI model call, and the only direct ways vendors offer that are enterprise agreements, approval forms, and pricing tiers we cannot access at our size.

What we can do on our side is control the gateway, so my current thinking is that we need to get zero retention working there first, then negotiate with external vendors. On that front we only have trustedrouter on our shortlist, particularly because with most tools we've tried and demo'ed log the request and give you an option to turn logging off and that's just not enough.

If anyone has gone through this with an auditor or a client, what sort of evidence were you given? Some lived in advice would definitely be helpful here. Ty.


r/LLMDevs • • 9h ago

Tools I built a CLI to keep my local coding agent sessions in sync with T3 Code

1 Upvotes

I use T3 Code alongside terminal-based coding agents and wanted a simple way to reconcile their conversation histories.

So I built t3-sync.

  • Import local Codex, Claude Code, Pi and compatible ACP sessions.
  • Refresh eligible conversations.
  • Clean up unused stale imports.
  • Preview changes before applying them.

It uses T3's existing APIs instead of writing directly to SQLite. Original provider sessions stay untouched.

Try it:

npx t3-sync status

This runs a read-only preview. The tool is completely free, MIT licensed, and supports Node.js, Bun and Deno.

It's a manual synchronization tool, not a daemon or a full history migration utility.

I'd be interested in how other developers handle session continuity when switching between agent clients.


r/LLMDevs • • 11h ago

Resource GitHub - Mauitron/How-to-read-a-model-weights: Parts of my research compiled into a guide.

Thumbnail
github.com
6 Upvotes

(NOTE: to those who read the last draft. The problem has been addressed, it did not affect the approach)

A few days ago I was looking for something to write about to pass time. I made a post asking if people know how to read frozen weights without a forward pass, and I got the impression that it might not be widely know how to.

This afforded me the opportunity to actually contribute something of potential value to other people working on AI models, so I decided to write it up.

The readme is my attempt to explain the process to how I created my frozen model viewer, share some results from my own research, and provide tests for you to confirm what it is written about.
It should hopefully also allow you to build your own viewers, and use them to interact/modify models in a way you might not have done before.

Hope you find this interesting and helpful.

Take care

//Maui-The-Magnificent


r/LLMDevs • • 13h ago

Help Wanted Claude false flag for reverse engineering

1 Upvotes

Is anybody else getting refusals from the Claude API for reverse engineering. I'm working on a completely original project and keep getting my API called rejected. This just started happing today around 1pm


r/LLMDevs • • 13h ago

Discussion Was wäre wenn wir eine Operationsystem haben ,die ganz für llms workflows angepasst ist?

0 Upvotes

Schreiben Sie Ihre Ideen in die Kommentaren!


r/LLMDevs • • 13h ago

Resource What is an Agentic RAG

1 Upvotes

A RAG agent never sees the true answer in its knowledge base, only whatever retrieval returns. So it keeps a belief state and updates it with each retrieval. That's a POMDP.
Seen that way, the "advanced RAG" tricks (iterative retrieval, reflection, re-ranking) are all just ways to fix a belief built on noisy observations.
Wrote it up with a tiny worked example:

https://aisystemsnotes.substack.com/p/agentic-rag-isnt-just-rag-with-extra?r=94sr06&utm_medium=ios&shareImageVariant=template_blur

How do you think about what an agent is "doing" when it retrieves?


r/LLMDevs • • 13h ago

Discussion Does your Agent dream?

3 Upvotes

I’ll open with this: I do not know if this is the right sub to ask about this.

Hey all! While refining my agent and workflows around it I’m trying to see whether you use AI ‘dreaming’ in your workflows, and if you do what’s the main points I should consider while doing so in mine?
What can differentiate a good dream workflow from a bad one.

I’d love to see some resources and papers if they do exist in the matter that you found useful!

I’d love any help!


r/LLMDevs • • 14h ago

Discussion What does your org require before approving AI vendor’s data handling claims?

4 Upvotes

We're trying to pick between compute vendors (mostly hyperscalers but mix of on prem n confidential open models) and getting a ton of pushback from ciso about user data security acted OpenRouter zdr leak.

for folks who contribute to AI procurement processes… what are you demanding to see before approving incoming compute?

The deal we're working thru has on two hyperscalers (like bedrock), now comparing a hosted gateway (like LiteLLM or Portkey) then whitelisting providers/vendors ourselves but also comparing hosted gateways thru Portkey cloud or TrustedRouter for hardware attestated ZDR after all the leaks recently. Gotta be able to show at least some encrypted routes in our biz, even if most of the team wants to be using Codex n Claude. at least there you know nothings private and just trying to get a volume deal

Already asking for soc2 and some contract specifics, but looking for samples of security questionnaires, terms on hardware attested execution, and maybe any tests you're running like canary code on PII or sensitive company data?


r/LLMDevs • • 14h ago

Great Discussion 💭 I fine-tuned Qwen2.5-1.5B into a JEV-style Decision Model (QJev-1.5B) and let it play Google Snake Game

11 Upvotes

I fine-tuned Qwen2.5-1.5B-Instruct twice, training both its decision head and model weights using approximately 700K examples from SargeDev/jev-distill-corpus-v3

The entire fine-tuning process took approximately 20 hours on my RTX 5060 Laptop GPU (8GB VRAM).

Unlike traditional LLMs that generate text token by token, QJev doesn't generate text at all. It directly makes decisions.

For example, when playing Snake, it evaluates LEFT, RIGHT, UP, and DOWN, assigns each move a confidence score, and selects the best action in a single forward pass.

OpenCV → QJev Pipeline:
Instead of a heavy Vision-Language Model, I used OpenCV for game detection and connected it directly to QJev for real-time action selection (~28ms).

Performance

Tested on my RTX 5060 Laptop GPU (8GB VRAM).

ModelInferenceLatency
Official JEV (TypeSafe AI)Cloud~100–200ms
QJev-1.5BLocal rtx 5060 laptop~26–30ms

QJev trades some decision accuracy for faster, lightweight local inference with just 1.5B parameters.

Try It

git clone https://github.com/AnkitNayak-dev/QJev-1.5B
cd QJev-1.5B
pip install -r requirements.txt
pip install -r examples/snake/requirements.txt
python examples/snake/qjev_snake_agent.py

What's Next?

Planning to test it on Super Mario Bros (NES) next!

What other games should I try? I'm open to collaborations, experiments, and contributions.

For more technical details, architecture, benchmarks, evaluation results, and implementation details, check out the GitHub repository:

GitHub: https://github.com/AnkitNayak-dev/QJev-1.5B
Model: https://huggingface.co/AnkitNayak-dev/QJev-1.5B


r/LLMDevs • • 15h ago

Tools I built GAS, an open-source library of 3,438 skills for AI coding agents (201 just for computer vision)

2 Upvotes

I've been working on a side project called GAS (Glorious Agent Skills).

One of my biggest frustrations with AI coding agents is that they can generate code, but they don't always understand the engineering behind what they're building.

So I started developing an open-source library of skills that you can integrate directly into your repository to give your agents domain-specific knowledge, technical workflows, and engineering practices.

GAS currently has 3,438 skills, with 201 dedicated to computer vision alone, covering everything from YOLO and SAM implementations to training your own foundation models.

The idea is simple. Stop spending half your development time teaching your agent how to do its damn job.

This is an ongoing project. I'll be developing and releasing new skills every week. I'm also open to taking requests and building skills for people with specific technical challenges, engineering workflows, or research applications.

Getting started takes one command:

npx glorious-agent-skills equip

It's completely open source. Go build something ridiculously ambitious, break things, tell me what sucks, and let me know what skills you want me to build next.

https://github.com/SDF-01/GloriousAgentSkills


r/LLMDevs • • 15h ago

Resource Claude 5-minute prompt cache vs GPT 30-minute cache: the cost of pauses

Post image
2 Upvotes

Across 30 days of production coding-agent traffic on Claude Code, OpenCode, Codex, Pi, and Kilo, we measured what cache expiry costs using token and billing counters only.

What we found:

  • Rebuilding expired prompt caches after pauses over 5 minutes took 23.1% of the Claude coding bill, versus 9.3% on GPT.
  • On breaks over 30 minutes, both families lost roughly the same share (7.8% on Claude, 8.5% on GPT). On 5 to 30 minute breaks, Claude lost 15.2% of the bill and GPT lost 0.8%.
  • Pauses over 5 minutes happened at the same rate on both models across every session length. In OpenCode alone, 5 to 30 minute rebuilds took 20.2% of the Claude bill against 0.9% on GPT.
  • Both labs charge 1.25x to write and 0.05x to read. The split comes from the default TTL: 5 minutes on Claude against 30 minutes minimum on GPT-6.1 Sol.

We also tested some ways that could help reduce the cost from using always 1h TTL or keep alive pings. The best we found was doing some 0 token keep alive pings that only billed reading the existing cache, extending the cache timer for another 5 minutes.

Full write-up and replays: https://www.requesty.ai/blog/claude-5-minute-prompt-cache


r/LLMDevs • • 16h ago

Help Wanted A research repo needs a few more curious minds. Anyone in

Thumbnail
github.com
1 Upvotes

Hey folks
I've been building an open-source research project on AI benchmark evaluation and would love a little support from the community
Looking for contributors, feedback, and yes, a ⭐ if you find the project interesting
Every bit of support means a lot Thanks


r/LLMDevs • • 18h ago

Discussion Been experimenting with decision models for engineering rule enforcement instead of using LLMs for everything

1 Upvotes

Been exploring where specialized decision models make more sense than general-purpose LLMs (Opus, Jipiti etc), particularly in software engineering workflows.
One use case I've been working on is engineering rule enforcement.
Given a code diff and a repository-specific rule, the task often isn't to generate anything. It's to determine whether the change violates that rule.

Current approach:

  • Use deterministic checks (glob, grep) for everything that can be expressed in code.
  • Use specialized decision models like Jev when semantic judgment is necessary.
  • Keep passing and failing examples alongside each assertion.
  • Evaluate different models against the same test cases.
  • Track accuracy, false positives and latency.

I'm interested in the boundary between discriminative models and generative models here.
For example, would you use a small classifier for a binary semantic judgment, or would you still prefer a general-purpose LLM?

Disclosure - I've been implementing this in Agentests, an open-source project:
https://github.com/feuersteiner/agentests - I'd love some feedback on the approach here :)


r/LLMDevs • • 18h ago

Resource I edited a page my decoder had never selected. Its answer changed at token 5.

Post image
0 Upvotes

If you cache an answer and track every page the model used, when is it safe to serve that answer again? I published RebuildLM to test this.

In one run, neither layer of the decoder selected page 9 while generating a 16-token answer. I replaced just that page and reran the same prompt. The first four tokens stayed the same. On the next lookup, page 9 displaced page 46, and the fifth token changed. Every page the decoder originally used was still untouched.

RebuildLM records each layer’s query, its two selected pages, and the cutoff score every four tokens. After an edit, it checks whether those pages changed or whether another page could now enter the top two. It keeps the prefix and resumes at the first segment it can’t verify.

On 48 synthetic document edits × 24 prompts, it reused 845 whole answers and a prefix of another 220. All 1,152 updated outputs matched a fresh decode, down to the logits. A cache that checked only the original page IDs served a stale token sequence on 87 of its 959 hits.

This is a two-layer NumPy model with frozen random weights. The question I’d like to test next is whether keeping those prefixes saves time on real documentation edits compared with rerunning retrieval.

You can reproduce the experiment on CPU with NumPy and python check.py. GitHub repo and instructions · Recorded token sequences


r/LLMDevs • • 19h ago

Discussion OpenRouter's long-session test: single-fact questions held at 100% to ~900K tokens, but a multi-event counting question fell from 67% to 27%. What makes you restart a long session?

1 Upvotes

OpenRouter published a write-up on Dec 1 that tested five models with roughly 1M-token windows on synthetic, long coding-agent sessions. I have not run this myself. These are their reported numbers, and the link is in the first comment.

What they reported:

- Single-fact questions (a setting, a rule): 100% correct through about 900K tokens

- A multi-event counting question: 67% at ~20K tokens, 40% at ~80K, 27% at ~600K

- At 2M characters of history: full history scored 49/60 overall, naive truncation 9/60, chunked compaction 54/60. Chunked compaction also cut average prompt size from about 605K to 112K tokens.

Scope: it is a small synthetic test, and OpenRouter itself says to read the numbers as directional. I would not take it to mean every model degrades at the same rate, that big windows are useless, or that compaction fixes this in general.

The split between lookup and tracking is the interesting part to me. Finding one fact buried deep in a session and keeping a running tally of what has happened in it look like different jobs, and long coding sessions seem to lean on the second one. That is my read, not OpenRouter's.

Questions for people who run long sessions:

  1. Do you see a 'lookup is fine, tracking drifts' pattern? For example, it can quote a file back but loses count of what it already tried (illustrative example, not from the write-up).
  2. What makes you start a fresh session: a token count, a wrong answer, or something else?
  3. When you compact or restart, what goes into the summary?

r/LLMDevs • • 20h ago

Resource I traced one question through a 5-call Grok agent. The last model call cost more than the other four together.

1 Upvotes

I wanted to see where an agent's spend goes per step, not per day. So I gave a small Grok agent one question and tools for order counts, recent deploys and a webhook log, and wrapped each task in an OpenTelemetry invoke_agent span, with a span per model call and per tool call, sent to Splunk APM.

What one task looked like:

  • 5 model calls
  • The last call was 66,780,000 of the task's 128,520,000 billed ticks, more than calls 1-4 together
  • Why: the webhook log tool result added 2,620 new uncached prompt tokens just before that call

A daily spend graph can't show that. A per-task trace shows which tool result made the expensive call.

Full write-up:
https://showmerit.com/abhimanyu/articles/see-where-an-ai-agent-s-tokens-go-every-grok-step-in-one/

How are you attributing cost to individual agent steps?

I work at Splunk, part of Cisco.


r/LLMDevs • • 21h ago

Discussion Agents made us faster. Delivery confidence didn't follow

Thumbnail
leaddev.com
6 Upvotes

Nobody tells engineering to slow down.


r/LLMDevs • • 22h ago

Help Wanted If you were starting from scratch today, what's the best roadmap/tutorial for building autonomous AI agents?

0 Upvotes

Hey everyone!

If you were starting your journey into building AI agents today, with all the latest developments in the LLM space, what tutorials, courses, or resources would you recommend?

I'm particularly interested in going beyond basic chatbots and RAG applications and learning how to build highly autonomous, production-grade agents that can actually perform complex engineering tasks.

One area I'm especially interested in is data engineering and data modelling, where an agent could potentially:

  • Understand requirements and generate code (SQL, Python, dbt, etc.).
  • Design and create data models based on business requirements.
  • Understand existing data architectures, schemas, and dependencies.
  • Build, test, debug, and optimise data pipelines.
  • Analyse errors and autonomously fix issues.
  • Work with existing codebases and make context-aware changes.
  • Plan and execute multi-step tasks with minimal human intervention.

I'm also keen to learn the latest techniques and technologies around:

  • Agentic workflows and autonomous agents.
  • Multi-agent architectures and orchestration.
  • Tool calling, MCP, and integrations.
  • Planning, reasoning, memory, and context management.
  • Agent evaluation, observability, and guardrails.
  • Human-in-the-loop vs fully autonomous execution.
  • Frameworks and approaches such as LangGraph, CrewAI, OpenAI Agents SDK, etc.

My main question:

If you had to start learning and building AI agents from scratch today, what would your recommended learning path look like?

Are there any particular tutorials, end-to-end projects, courses, GitHub repositories, or YouTube channels that cover these concepts practically, ideally taking you from fundamentals to building genuinely autonomous agents?

I'd particularly appreciate resources that teach the underlying concepts rather than just showing how to use a particular framework.

Looking for recommendations based on what actually works in practice, not just the latest hype.

Thanks!