# Files - [Add or replace a pipeline component](ports-and-extension.md) - How the piighost code is split into ports and adapters, why the configuration depends only on the core, and how to add a detector or a stage without breaking the rest.