TREX: Greptile's AI Code Reviewer That Runs Your Code

Greptile released TREX (Test, Run, Execute), an execution layer that runs your code during AI-powered code review. Instead of just reading diffs, TREX actually executes the changed code and surfaces runtime bugs — UI regressions, state-dependent logic errors, race conditions — that static analysis can't catch.
Architecture: Orchestrator + Per-Issue Subagents
Early versions tried separate agents or a single combined agent. Both failed: separate agents duplicated work with no shared context; a single agent got overloaded managing setup, screenshots, and tests. The solution was an orchestrator agent (the main Greptile reviewer) that reads the diff, identifies suspicious issues, and spins up a dedicated TREX subagent per issue, all running in parallel. Each subagent inherits the orchestrator's context and has its own context window scoped to its specific investigation.
Example: a UI feature behind an auth gate. A subagent autonomously sets up the environment, handles authentication, toggles feature flags, and returns a screenshot of the rendered feature.
Multi-Modal Artifacts vs. Bullet Points
Initial TREX output was bullet-point summaries — but bullet points allowed hallucinations (e.g., claiming a test passed when it hadn't) and gave no way to verify. The fix: each TREX finding is backed by a set of multi-modal artifacts: screenshots, execution logs, API traces, and execution scripts. Every modality tells part of the story, making it possible to trace exactly what happened. The first artifact that impressed the team was a video capture of an animation change — showing the actual runtime effect.
What It Catches
TREX targets bugs that don't appear in code diffs: logic errors requiring specific state sequences, UI regressions after page load, and race conditions that need real requests. It generates and runs tests, but the focus is on finding bugs, not just writing tests. The subagent figures out setup on its own.
As Shlok Mehrotra, the engineer behind TREX, puts it: "You can read the diff perfectly and still miss these types of bugs completely."
📖 Read the full source: HN AI Agents
👀 See Also

Claude's Code Dashboard Tracks 19M+ AI-Generated Commits on GitHub
A developer built a dashboard tracking over 19 million commits generated by Claude Code on GitHub public repositories, showing TypeScript (35.3%), Python (19.2%), and JavaScript (10.3%) as the top languages. The system uses Next.js with Recharts and PostgreSQL, with an ETL pipeline that works around GitHub's API rate limits.

altRAG: Replace Vector DB RAG with 2KB Pointer Files for AI Coding Agents
altRAG is a Python tool that replaces vector database RAG with lightweight pointer files. It scans Markdown/YAML skill files to create a 2KB skeleton file mapping sections to exact line numbers and byte offsets, allowing AI agents to read only needed sections instead of entire files.

Conduid: Trust Infrastructure Layer for MCP Servers Built with Claude
Conduid indexes over 25,000 MCP servers across GitHub, npm, PyPI, and major directories, scoring each 0-100 based on GitHub activity, security posture, documentation quality, and maintenance signals. The entire codebase was written with Claude by a solo founder.

Claude Code Plugin Yoink Replaces Library Dependencies to Reduce Supply Chain Risk
Yoink is a Claude Code plugin that removes complex dependencies by reimplementing only needed functions, using a three-step workflow with /setup, /curate-tests, and /decompose commands. It currently supports Python with TypeScript and Rust support underway.