Build AI agents on a time-aware knowledge graph!
Utopia is an open-source knowledge system that turns documents, databases, and connected sources into a temporal graph your agents can reason over.
The useful part is that facts are not treated as static records.
If a contract changes, a project owner gets replaced, or a policy is updated, the previous version does not disappear.
Utopia stores that history inside a bitemporal knowledge graph.
Each fact can track when it was valid in the real world and when the system learned about it.
So an agent can retrieve the current state, inspect what used to be true, and see exactly when something changed.
The graph is also ontology-aware.
Instead of representing everything only as chunks and embeddings, Utopia models entities, relationships, facts, and rules explicitly.
That gives agents more structure when they need to resolve entities, follow relationships across sources, detect conflicting information, or derive facts from existing ones.
For example, if two sources disagree about who owns a project, the system does not need to silently overwrite one with the other.
It can preserve both facts, attach provenance, track their validity over time, and let the agent reason over which one applies.
Key capabilities:
• Bitemporal tracking for changing facts
• Provenance for tracing facts back to their source
• Conflict detection across contradictory information
• Ontology-based reasoning over entities and relationships
• Hybrid retrieval across text, vectors, and graph traversal
• MCP and agentic RAG support for exposing the graph directly to agents
I like this approach because it gives agents a knowledge layer that can preserve history instead of constantly collapsing everything into the latest version of a fact.
100% open source.
I've shared the GitHub repo in the comments!
Banger paper from Google on self-improving agent harnesses!
They introduced GUARD, a framework that lets agent harnesses improve themselves from previous runs without updating the underlying model weights.
Most agents today run with a fixed model, while the prompts, skills, memory, tool rules, and control logic around the model form an editable harness.
You can improve that harness from previous agent runs, but blindly adding new rules creates another problem.
A fix for one failed task can break behavior that already worked, overwrite an older skill, or keep adding rules until the harness becomes bloated with conflicting instructions.
GUARD tries to make this self-improvement loop more stable.
Before the agent executes a task, it converts the task and available tool schemas into a checklist of small binary requirements.
After the run, a self-reviewer evaluates the trajectory against each requirement individually.
This lets GUARD distinguish between two cases: a behavior that the latest harness update actually broke, and a capability the agent still hasn't learned.
Already-solved requirements are pinned so future updates don't casually overwrite them.
For the remaining failures, GUARD generates multiple candidate harness updates in parallel and evaluates them on the same tasks using group-relative scoring inspired by GRPO.
The best candidate still isn't automatically accepted.
A Soft-HURT gate compares the gains from the new harness against the regressions it introduces. If a rule helps only under a specific condition, GUARD can scope it with an explicit condition rather than applying it globally.
So the loop becomes:
Run tasks → review individual failures → separate regressions from unsolved gaps → generate candidate harness updates → test them → only keep updates that don't break existing behavior.
The model weights stay frozen through the entire process.
And once the harness is evolved, the self-reviewer, candidate generation, and gating aren't needed at inference time. The agent just runs once with the final harness.
On EvoHarnessBench, GUARD reached 80.8% accuracy, +8.89 points over the base agent, while reducing tokens per task by 54.5%.
Across the Drift Gauntlet continual-learning tests, it also had zero post-block forgetting across all four task streams.
The model stays frozen while the harness becomes the part that learns from experience.
Pretty interesting direction for building agents that keep getting better after deployment without continuously retraining the underlying model.
This also connects to something I built recently with n8n.
I created a Customer Resolution Agent where the model handles the messy part of the interaction: understanding the request, retrieving the right context, and deciding what information is still missing.
But once the agent needs to change system state, it hands that off to a deterministic workflow with explicit validation.
That separation between the model and the surrounding harness is becoming one of the more useful patterns in agent design.
I've shared the paper below!
Train your own 64M LLM from scratch in 2 hours!
MiniMind is an open-source project that gives you the complete training pipeline for a small language model, implemented almost entirely from scratch in PyTorch.
The current MiniMind-3 model has around 64M parameters, which makes the whole process small enough to reproduce on a single consumer GPU.
You start with the tokenizer and model architecture, then actually pretrain the model on raw text before taking it through supervised fine-tuning.
From there, the repo keeps going.
It includes LoRA, DPO, PPO, GRPO, CISPO, tool use, Agentic RL, model distillation, and even a MoE version of the architecture.
The main model structure is aligned with the Qwen3 ecosystem, and the tokenizer is built around BPE + ByteLevel with support for things like tool calls and thinking tokens.
What I like is that the important parts are not hidden behind high-level training libraries.
The core model, training loops, LoRA, preference optimization, and RL implementations are written directly in PyTorch, so you can actually trace what is happening during each stage.
For the lightweight MiniMind Zero path, the repo estimates roughly 2 hours on a single RTX 3090 to go from pretraining to a basic conversational model.
It is obviously not meant to compete with frontier LLMs.
The point is that you can train the whole thing yourself and understand how an LLM goes from random weights to pretraining, instruction following, tool use, and post-training.
One of the better repos if you want to learn LLM training by actually doing it.
I’ve shared the GitHub repo below!
Build production document AI pipelines at scale!
Document AI gets much harder once every file has to move through multiple processing steps at production scale.
A typical workflow might first classify an incoming document, split larger files into individual documents, parse the contents, extract the required fields, and then pass the structured output into the rest of the application.
At small volumes, the latency and cost of each step can be easy to ignore.
At production scale, they start compounding across the whole pipeline.
Extend just upgraded that layer across its document processing stack, with lower latency and lower processing costs across parsing, classification and splitting.
The new Classify Instant engine can classify a document in under a second, which matters when routing has to happen before the rest of the pipeline can even start.
They’ve also improved the parsing and splitting layers, so the same workflow can process more documents with less time and cost spent at each stage.
The useful part is that this is not one isolated model improvement.
A production document pipeline is usually a chain of processors, and improving each part of that chain changes how much of the workflow you can realistically automate.
That becomes especially important for teams processing large volumes of documents across fintech, insurance, healthcare, logistics, and other document-heavy systems.
A 9B model that matches Qwen3.8-27B on agentic tasks!
SenseNova-Loop-9B uses a looped decoder architecture to get more computation out of a relatively small parameter count.
It has 32 distinct decoder layers, but 24 of the middle layers are executed twice.
So every forward pass goes through 56 layer executions while storing weights for only 32 layers.
The output from the first pass through that shared block becomes the input to the second, letting the same parameters process the hidden state again instead of adding another set of layers.
Inside the looped block, SenseNova also uses two-stream mHC.
Two residual streams carry information through the network, while learned mappings control how each layer reads from them, mixes information between them, and writes the result back.
The decoder also combines linear and full attention in a repeating pattern, with three linear-attention layers followed by one full-attention layer.
Despite being roughly 9B parameters, the results are pretty strong.
On AutomationBench, SenseNova-Loop-9B scores 36.67, matching Qwen3.8-27B.
On AIDABench, it scores 65.31 versus 65.01 for Qwen3.8-27B, while on NL2Repo it gets 41.36 versus 44.60.
The model is multimodal, supports up to 512K context, and is built for reasoning, coding, tool use, agentic workflows, and data analysis.
They also released quantized versions for local deployment. With 4-bit weights and an 8-bit KV cache, the team reports around 15 GiB of GPU memory for multimodal inference at 256K context.
What I like here is the looped computation itself.
Instead of only scaling performance by adding more parameters, the model reuses the same layers to increase how much computation happens during inference.
The weights and code are open source.
I’ve shared the GitHub repo below!
You don't need long context!
NVIDIA researchers just published a paper questioning whether LLMs actually need huge context windows for long-running tasks.
The problem is that longer context is expensive.
As the context grows, every new token gets slower to generate, uses more memory, and costs more to serve.
In their measurements, going from a 16K to 256K context increased the cost per generated token by 3.6× for GLM 5.2, 5.6× for Kimi K2.6, and 7× for Qwen 3 Coder Next.
Their alternative is frequent context compaction.
Instead of carrying the entire conversation history through a long agent run, you keep a compact representation of the current task state and start a new context when needed.
For long documents, they use a similar idea: keep the documents outside the context and let the agent selectively read the parts it needs rather than loading everything at once.
They test this across software engineering, terminal tasks, tool use, retrieval, and long-document reasoning.
And the results are pretty interesting.
On long-horizon tasks, frequent compaction generally maintained or even improved task accuracy compared with keeping the full history.
They pushed this even further with Single-Action Compaction.
The model takes one action, observes the result, updates a compact semantic state, and then the entire conversation is discarded before the next action.
On Claude Opus 4.5, this preserved SWE-bench Verified performance and improved Terminal-Bench.
On GPT 5.6 Sol, the accuracy drop was only a few percentage points, while the median peak live context stayed around 7–9K tokens.
The paper takes this idea further and proposes Semantic State Space Models.
Instead of maintaining an ever-growing conversation history, the model carries a compact natural-language state between turns containing the information needed to continue the task.
This feels especially relevant for long-running agents.
You may not need to keep hundreds of thousands of tokens alive throughout the entire run. Keep the current state, retrieve what you need, compact aggressively, and continue.
I've shared the paper below!
Build a Large Language Model from scratch!
Sebastian Raschka’s LLMs-from-scratch repo walks through the complete process of building, pretraining, and fine-tuning a GPT-style language model in PyTorch.
You start with raw text and build the pieces one by one.
First comes the data pipeline: tokenization, token IDs, embeddings, context windows, and the dataloader that creates input-target pairs for next-token prediction.
Then you build attention from scratch.
The repo goes from basic self-attention to causal attention and multi-head attention, before combining everything into the transformer blocks that make up the GPT architecture.
Once the model is assembled, you actually pretrain it on unlabeled text and implement the generation loop used to predict one token after another.
From there, the same base model is taken through different stages of adaptation.
There’s a full section on fine-tuning for text classification, followed by instruction fine-tuning so the model can respond to prompts instead of only continuing text.
The repo also goes beyond the core chapters with implementations and experiments around:
BPE tokenization from scratch
KV caching
Grouped-Query and Multi-Head Latent Attention
Sliding Window and sparse attention
Mixture-of-Experts
LoRA
DPO
Faster training and memory-efficient weight loading
There are also from-scratch implementations of architectures like Llama 3.2, Qwen3, Gemma 3, and other newer model families.
What I like about this repo is that you don’t jump straight into calling a pretrained model through an API.
You build the pieces yourself and see how tokenization, attention, transformer blocks, pretraining, generation, and fine-tuning actually connect.
If you want to understand what is happening underneath an LLM rather than only use one, this is one of the best resources to work through.
I’ve shared the GitHub repo below!
Long-running AI agents need a different inference stack.
Once agents start working for hours or thousands of tasks run in parallel, inference stops being just about serving a model. The hardware underneath starts affecting what is practical to run.
Parasail approaches this with a multi-silicon inference cloud.
Instead of building the entire stack around one kind of chip, it puts multiple types of AI silicon behind the same API and matches workloads to the hardware that fits them.
Positron Titan is now the newest addition to that fleet.
Titan is designed to run extremely large models using commodity DRAM and is air-cooled, which also makes it useful for environments where power and cooling are more constrained.
For long-running agents, agent swarms, and physical AI systems, that gives Parasail another hardware option for workloads that look very different from a standard inference request.
I like this direction because AI workloads are already getting much more varied, and the hardware that works well for one of them may not be the right choice for another.
Having that flexibility behind the same API makes a lot of sense.
Agentic-first RL training framework from NVIDIA!
Molt is a PyTorch-native RL training framework built for agentic research. Three components make up the entire stack: Ray for placement and async queues, vLLM for rollout, and NVIDIA AutoModel with FSDP2 for training. That's it.
The agentic-first design means reward is any Python you write. A mathematical grader, an LLM-as-judge, a multi-turn tool evaluator, a VLM environment. You define what "good" means inside an 'Env' or 'ChatAgent' class. No pretrained reward model required.
Two agent interfaces cover different workflows. The 'Env' interface is Gymnasium-style - the framework owns the LLM loop and your `step()` returns a reward. The 'ChatAgent' interface gives you the loop via the OpenAI or Anthropic SDK, so any external harness that already speaks those APIs works without modification.
The stack is intentionally minimal. One trainable actor, optional KL reference workers, fully async rollout and training overlap. Small enough to read end-to-end and understand every gradient.
The same script that trains an 8B model scales to 1T-class MoE. DeepSeek-V3-class actors run at `ep_size 256` with TP, EP, and CP parallelism plus Adam CPU offload. No rewrite between scales.
Supported algorithms: REINFORCE, REINFORCE baseline, RLOO, GRPO, DR-GRPO, GAE (PPO), and on-policy distillation.
Key capabilities:
• Reward is any Python function - graders, LLM-as-judge, multi-turn tools, VLM environments
• Fully async rollout, training, and weight sync overlap
• Scales from 8B to 1T-class MoE with the same script
• Two agent interfaces: Env (Gymnasium-style) and ChatAgent (OpenAI/Anthropic SDK)
• REINFORCE, RLOO, GRPO, DR-GRPO, GAE, on-policy distillation
100% open source
I've shared the link in the replies!
Harness Engineering from scratch!
This open-source repo is a complete course on building the infrastructure around coding agents, with 14 lectures, 8 projects, hands-on exercises, and reusable templates.
The core idea is simple:
A capable coding model is only one part of an agent.
If you want that agent to work reliably inside a real repository for hours, across multiple tasks and sessions, you also need a system around it that controls what it does, remembers progress, verifies its work, and gives the next session enough context to continue.
That system is the harness.
The course breaks it down into a few fundamental pieces:
Instructions for how the agent should operate inside the repository.
Persistent state so progress survives between sessions.
Verification with tests, linting, type checks, and full-pipeline runs.
Scope controls that keep each run focused on the right task.
Session lifecycle for starting, handing off, and finishing work cleanly.
What I like is how the projects build on each other.
You begin by comparing a prompt-only coding agent with one that has repository rules.
From there, you add multi-session continuity, runtime feedback, verification, and eventually build a complete harness around the agent.
Later projects move into automated maker-checker loops, where one agent produces work and another verifies it, before expanding the same ideas into graph-based workflows with shared state, parallel execution, rollback, routing, and human approval.
There’s also a useful set of templates you can take directly into your own repositories, including AGENTS.md, init scripts, feature lists, progress tracking, loop state, maker-checker prompts, and a harness-creator skill for scaffolding a new setup.
The later sections also explain when a single agent loop stops being enough and when it makes sense to introduce graph engineering with separate nodes, shared state, parallel branches, and recovery paths.
If you're building with coding agents, this is a solid way to understand the engineering layer that sits around the model and makes longer-running agent workflows actually manageable.
100% open source.