AI Agent Overview

How Sophonz AI Agent detects problems from real user data and automatically proposes code fixes.

Install the GitHub or GitLab App on your app repository, and the AI Agent will find and analyze problem data (errors, crashes, performance issues) collected from every user instrumented with the Sophonz SDK — then automatically create issues and propose code fixes.

What is Sophonz AI Agent

Sophonz AI Agent is a multi-agent platform that bridges production telemetry and source code. It analyzes error, crash, and performance data collected from real users by the Sophonz SDK, identifies the code location responsible, and proposes a fix — without developers having to dig through logs manually.

NOTE — Part of sophonz-labs

Sophonz AI Agent is provided as part of the sophonz-labs initiative. Sophonz SDK instrumentation is a prerequisite — the agent operates on real user data collected by the SDK.

Four pillars

In v2, Sophonz AI Agent grows beyond a simple error-fixing bot into a platform that closes the loop from telemetry to code change. It is built on four pillars.

  1. Problem detection — From telemetry collected on real user devices by the Sophonz SDK (errors, crashes, performance, RUM sessions), the agent automatically surfaces the highest-impact problems.
  2. AI pipelines — Two pipelines process the surfaced problems. Error & crash auto-fix analyzes the root cause and drafts a code fix, while coverage & test generation turns real user paths into automated tests.
  3. Agent orchestration — The orchestration layer manages how agents are defined, connected, run, and observed, and composes each agent's capabilities from MCP servers and Skills.
  4. Repository integration — The GitHub/GitLab App opens issues from the analysis and proposes code fixes as PRs/MRs. Every change goes through human merge approval.

Core pipeline

agent-overview
  1. Telemetry collection — The Sophonz SDK collects stack traces, error context, performance metrics, and RUM sessions from real user sessions.
  2. AI analysis — The Observability Agent selects the most impactful error groups and restores stack frames.
  3. Code mapping — The Engineering Agent searches the repository source to pinpoint the responsible file and line.
  4. Issue and PR/MR creation — An issue and a code-fix PR/MR are opened automatically, including the analysis, stack trace, and fix rationale.
  5. Regression prevention — The Test Engineer Agent adds unit tests to the same PR/MR so the same bug cannot recur silently.
  6. Code review — The Critic Agent reviews the accuracy of the fix, potential side effects, and test coverage, then posts review comments on the PR/MR.

NOTE — v2 roadmap

This page and the pipeline and orchestration pages below describe the v2 plan. The direction is settled, but specific behavior and UI may change during implementation.

Agent composition

Sophonz AI Agent is built around specialized agents that collaborate in sequence.

AgentRole
Core OrchestratorCoordinates the overall flow and delegates to each specialist
Observability AgentQueries Sophonz telemetry for error groups and stack traces (read-only)
Engineering AgentExplores repository code to identify root-cause files and draft a fix
Test Engineer AgentAdds regression-prevention unit tests to the fix PR/MR
Critic AgentReviews the fix, tests, and CI changes, then posts PR/MR review comments

How it works

Scheduled automatic monitoring

The agent runs automatically on a configured schedule. When new error groups are found, it creates issues and fix PRs/MRs, completes a code review, and waits for a human to approve the merge.

On-demand manual run

A single "Run now" button in the dashboard triggers a monitoring cycle immediately — useful when a crash spike occurs and you don't want to wait for the next scheduled run.

Targeted investigation requests

You can request a focused investigation for a specific time window, app type, or app version. When the analysis is complete, you review the code-change diff and either approve it or request changes.

Learn more

AI pipelines

Platform

  • Agent orchestration — Agent lifecycle, MCP & Skills, and the orchestration model
  • Scenarios — End-to-end flows from scheduled monitoring to targeted investigation

Supported platforms

Sophonz AI Agent integrates with repositories via the GitHub App and GitLab App.

TIP — Prerequisites

Sophonz SDK must be instrumented in your app before using Sophonz AI Agent. The agent requires real user data collected by the SDK. See Getting Started for SDK installation.

Security

  • Separation of privileges — The Observability Agent is read-only; Engineering and Test Engineer have branch/commit/MR write access; Critic performs reviews only.
  • Human merge approval required — All code changes flow through a PR/MR and are never auto-merged.
  • Secret masking — App keys and tokens are referenced in configuration and never exposed in logs or API responses.
  • Full audit trail — Every agent decision, tool call, and delegation is recorded, so any determination can be traced back to the data that informed it.