# Clean Architecture

It contains four layers, yet it's not just limited to it you can extend to as much as possible. The four layers are:

* Entities - like base class models for business code
* Use Cases/ Injectors
* Controllers
* External Interfaces\
  \
  Then the dependency injection aspect which takes one components, allows that components to be reused anywhere without any hesistancy.\
  \
  \
  ![](/files/AYwpM8dkqJSzYAmufqTb)

### References

1. <https://blog.cleancoder.com/uncle-bob/2012/08/13/the-clean-architecture.html>


---

# Agent Instructions: 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://til.kurianbenoy.com/programming/clean-architecture.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.
