> For the complete documentation index, see [llms.txt](https://docs.sonarsource.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sonarsource.com/agent-centric-development-cycle/in-your-long-living-branches-the-code-maintenance-loop/code-maintenance-loop.md).

# What is the code maintenance loop?

Code that lives in the main branch of your repository, or in any long-living branch, is certainly not free of issues today. It is completely normal to have a backlog of existing issues that need some attention. It is also good practice to leverage dedicated agents with specific capabilities to find complex issues that static analysis cannot. This is part of what we call a "multi-layer verification system".

Find out how the [Remediation Agent](/agent-centric-development-cycle/in-your-long-living-branches-the-code-maintenance-loop/remediation-agent.md) can help you reduce your technical debt in an automated, pain-free way. Discover how the [Hunter Agent](/agent-centric-development-cycle/in-your-long-living-branches-the-code-maintenance-loop/hunter-agent.md) can find high impact security issues that could result in serious vulnerabilities if released in the wild.

## How-to guides

* [Get backlog fix suggestions](/agent-centric-development-cycle/in-your-long-living-branches-the-code-maintenance-loop/solve-issues/backlog-fix-suggestions.md)
* [Get individual issue fix suggestions](/agent-centric-development-cycle/in-your-long-living-branches-the-code-maintenance-loop/solve-issues/individual-issues-fix-suggestions.md)
* [Administer AI CodeFix](/agent-centric-development-cycle/in-your-long-living-branches-the-code-maintenance-loop/solve-issues/administer-ai-codefix.md)
* [Administer Remediation Agent](/agent-centric-development-cycle/in-your-long-living-branches-the-code-maintenance-loop/solve-issues/administer-remediation-agent.md)
* [Uncover complex vulnerabilities with AI](/agent-centric-development-cycle/in-your-long-living-branches-the-code-maintenance-loop/solve-issues/uncover-complex-vulnerabilities-with-ai.md)


---

# 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, and the optional `goal` query parameter:

```
GET https://docs.sonarsource.com/agent-centric-development-cycle/in-your-long-living-branches-the-code-maintenance-loop/code-maintenance-loop.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
