> For the complete documentation index, see [llms.txt](https://docs.loci-dev.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.loci-dev.net/ai-binary-analysis-in-your-ci-cd.md).

# AI Binary Analysis in Your CI/CD

LOCI adds AI-based binary analysis to your CI/CD workflow.

It helps teams review performance before issues reach testing or production.

### In this section

* [Ready to integrate in Your CI/CD](/ai-binary-analysis-in-your-ci-cd/ready-to-integrate-in-your-ci-cd.md)
* [GitHub Integration](/quick-start-loci-github-integration.md)
* [Azure DevOps Integration](/quick-start-loci-azure-devops-integration.md)

Start with the workflow. Then use the GitHub pages for setup and examples.

***

### CI/CD Workflow

LOCI fits into your existing build workflow with two steps.

{% stepper %}
{% step %}

### Upload

Run this step right after your build.

* Upload compiled binaries to the LOCI backend.
* Start analysis immediately.
* Trigger automatic PR comments when the LOCI GitHub App is installed.
  {% endstep %}

{% step %}

### Summary

Run this step when you want results in the workflow UI.

* Wait for analysis to finish.
* Pull results back into the job.
* Show the Agent Report and Function Insights in the workflow summary.
  {% endstep %}
  {% endstepper %}

Use `upload` on every run. Add `summary` when reviewers need results inside GitHub Actions.

***

### CI/CD Benefits

LOCI adds hardware-aware analysis to your pipeline before tests finish.

### What you gain

* **Pre-test analysis** catches performance and hardware interaction issues early.
* **Autonomous optimization** gives concrete suggestions for bottlenecks.
* **Performance gates** help block regressions in pull requests.

### Where results appear

* In the LOCI backend after upload.
* In the workflow summary when you run `summary`.
* In pull requests and checks when the LOCI GitHub App is installed.

This helps teams catch regressions sooner and review performance in the same flow as code changes.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.loci-dev.net/ai-binary-analysis-in-your-ci-cd.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
