> For the complete documentation index, see [llms.txt](https://makemove.gitbook.io/pancake/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://makemove.gitbook.io/pancake/features/cluster-operations/merge-identical-inputs.md).

# Merge Identical Inputs

"Selection to Cluster" feature will convert a group of components into one cluster. However, it doesn't merge identical inputs. So the following would happen. Redundant inputs will be listed as inputs of the cluster. This feature solves the problem. Two modes are available.

![](/files/-LDnphQj5tpb8HzUb2zd)

### Single cluster mode

* Just click the menu item.
* The editor need to be inside the cluster to use this feature.
* The modification takes effect immediately, but Pancake will not save the cluster for you. So you need to save manually - in other words - you can cancel without saving.
* It also works if your cluster is linked with a file.

### Batch mode

* Hold shift key, and click the menu item
* All clusters in selection (or current document, if selection is empty) are affected, except file-linked.
* The modification is saved immediately, which cannot be undone.

### What else should I also notice?

* Differences in the datatree "effects" of parameters, such as Flatten, Graft and Simplify should be recognized.
* However, customized effects aren't fully covered. Those of GH built-in parameters, such as Reparametrize, Inverse, etc. are supported, but any 3rd-party effect may or may not work.
* So we recommend, if your cluster includes any non-standard input, do not use batch mode.


---

# 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://makemove.gitbook.io/pancake/features/cluster-operations/merge-identical-inputs.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.
