> For the complete documentation index, see [llms.txt](https://help.swarmia.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.swarmia.com/guides/improve-pull-request-flow/diagnosing-low-pull-request-throughput.md).

# Diagnosing low pull request throughput

Throughput is more difficult to improve than for example cycle time, since it reflects the team's overall situation rather than just the process.

We typically recommend teams to start with an open discussion on the topic to capture different viewpoints into the problem.

Here are some discussion starters we've learned are useful:

1. Are we using pull requests for everything? If we have a habit of pushing changes directly to the main branch, the pull request metrics are less accurate.
2. How large are the pull requests? The optimal size depends on the programming language and many other factors, but generally it's good to change fewer than a few hundred lines of code at once.
   1. What's your branching strategy? Are you targeting short-lived branches?
   2. Do you have the infrastructure for example for feature gates? It allows you to keep features hidden even if the code has already landed in the main branch.
3. Are we working on some other tasks? Multi-tasking takes a toll on development work.
4. How much time are we spending in meetings? How are they spread throughout the day?
5. How familiar are we with the codebase?
   1. If I need to touch a product area I'm not familiar with, how easy is it to find someone who knows about it?
   2. Are we actively spreading the knowledge about the codebase by working together on each feature?
6. How easy is it to write automated tests?
   1. Are we testing at the right level? How does our testing pyramid look like?
   2. Do we have all the required helpers to make it easy? For example, how easy is it to generate test data for an integration test?


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.swarmia.com/guides/improve-pull-request-flow/diagnosing-low-pull-request-throughput.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
