Diego Novais · AI Engineer

From prompt to production

15+ Years

Years Building Software

From Ruby on Rails backends to harness engineering for AI coding agents. Agents, RAG and LLM features that hold up after launch.

Diego Novais cybernetic AI engineer head with headphones
Diego Novais cybernetic AI engineer torso armor

Selected Production Systems

Featured Projects

Agents · 2025

Harness Engineering for AI Coding Agents

Co-built the harness for the AI coding agents used across Mob2Con's products: the context, rules, tools and environment that keep agent output aligned with the codebase.

Harness Engineering · Cursor · MCP · LLMs

+30%
Team delivery speed
MCP
Internal tools & knowledge
Inspect Architecture
Infrastructure · 2025

Retail Audit Query Optimization

Tracked down PostgreSQL bottlenecks across millions of audit records on a retail merchandising platform used in store operations across Brazil.

Ruby on Rails · PostgreSQL · Elastic APM · SolidQueue

~10s → <100ms
Query latency
99%+
Latency improvement
Inspect Architecture
LLM Systems · 2024

LLM Chatbot for Master Data Governance

AI-powered chatbot built with large language models and Flowise for 4MDG's internal Master Data Management platform.

LLMs · Flowise · Ruby on Rails · RSpec

Flowise
LLM app builder
Rails
MDM platform
Inspect Architecture

Advisory & Hands-On Delivery

AI Services

01

01. AI Agents & Harness Engineering

Setting up AI coding agents so their code follows your architecture and standards: the context, rules, tools and environment they work in, connected to internal tools through MCP.

  • Agent context, rules & environment
  • MCP integrations with internal tools
  • Model choice by task: depth, speed, cost
Book a call (opens in a new tab)
02

02. LLM Features & Production Backends

Agents, RAG and LLM features that hold up in production, on solid backend foundations: APIs, background jobs, caching and offline-first sync.

  • LLM, RAG & agent features
  • Rails & Elixir APIs and background jobs
  • Performance tuning with APM & PostgreSQL
Book a call (opens in a new tab)
03

03. AI-Assisted Delivery & Enablement

Helping engineering teams adopt AI-assisted development that speeds up delivery without lowering the bar: straightforward code, solid tests and releases that stay stable.

  • AI-assisted workflows with Cursor & agents
  • TDD baseline with RSpec
  • Tech leadership & team training
Book a call (opens in a new tab)

Engineering Notes & Field Reports

Technical Blog

stream/state_machine.ts
emit(TelemetryFrame.verified(citations))
2 min readGit

How to Ignore Files in Git Without Using .gitignore

Keep local-only files out of Git without touching the shared .gitignore: the repository-level .git/info/exclude file.

evals/trajectory_gate.ts
assert groundedness >= 0.92 && tools_valid
1 min readRails

Simplify Your Rails Route Filtering with This Quick Tip

Stop piping rails routes through grep: Rails has a built-in route filter.

contracts/pydantic_repair.py
SchemaContract.model_validate_json(chunk)
2 min readFundamentals

4 Stages of Problem Solving

A simple four-step strategy for solving problems in software development, and outside it: analyze, plan, implement, evaluate.

gateway/inference_gate.py
async with semaphore: await route.dispatch()
3 min readElixir

A List Is Not an Array

Elixir lists look like arrays, but they are linked lists. Here's what that changes: head, tail and recursion.

Portrait of Diego Novais

Diego Novais

AI Engineer

Remote · Brazil

About Diego Novais

Straightforward code, solid tests, and releases that stay stable.

AI engineer with a strong backend foundation in Ruby on Rails. At Mob2Con I'm one of the engineers driving harness engineering for our AI coding agents: the context, rules, tools and environment that keep their output in line with our architecture. I also work on a retail merchandising platform used in store operations across Brazil. I focus on AI that ships: agents, RAG and LLM features that hold up in production. Working remotely from Brazil with distributed teams.

Have a project in mind?

Experience

15+ years shipping software, from Rails to AI agents.

Ruby on Rails since 2010 · Remote from Brazil

Full history on LinkedIn(opens in a new tab)
  1. Mob2ConCurrent

    Senior Software Engineer

    I'm one of the engineers driving harness engineering for our AI coding agents, and I work on a retail merchandising platform used in store operations across Brazil.

    • +30% team delivery speed
    • Query latency ~10s → <100ms (99%+)
    • MCP
  2. Grafeno (via MPJ Solutions)

    Senior Software Engineer

    Onboarding squad at a credit fintech: a provider-agnostic KYC integration, with heavy onboarding and credit operations moved to async processing.

    • Provider-agnostic KYC
    • Amazon SQS
  3. 4MDG

    Senior Software Engineer

    Evolved an internal master data management platform in Rails and built a chatbot with LLMs and Flowise.

    • LLM chatbot · Flowise
  4. Local Labs, LLC

    Software Engineer

    Local news for 3,000+ US communities: automatic WebP image conversion and a real-time time-tracking system for editorial teams.

    • ~35% faster load times
    • Elixir · Phoenix
  5. Trybe

    Software Engineer

    Built a billing and contract-generation microservice from scratch, plus microservices and APIs in Elixir/Phoenix.

    • -60% manual processing time

Stack

Everything I've built with, from 2010 to today.

26 technologies · AI, backend, data and infra

AI

  • LLMs
  • AI Agents
  • MCP
  • Cursor
  • Flowise
  • RAGstudying

Languages & frameworks

  • Ruby
  • Ruby on Rails
  • Elixir
  • Phoenix
  • JavaScript
  • React
  • AngularJS

Data & messaging

  • PostgreSQL
  • MySQL
  • Elasticsearch
  • RabbitMQ
  • Apache Kafka
  • Amazon SQS
  • Sidekiq
  • SolidQueue

Infra & quality

  • AWS
  • Docker
  • Elastic APM
  • RSpec
  • TDD
About

AI engineer with a Ruby on Rails backend foundation, one of the engineers behind the harness for Mob2Con's AI coding agents.

Have a project in mind?

Book a call (opens in a new tab)diegonovais.dev
© 2026 Diego Novais. All rights reserved.diegonovais.dev · AI Engineering