Are libraries duplicated?

The libraries are normally stored per project. This has something to do with reproducibility. Different projects can use the same library but require different versions, for example.

If you want to use global stored libraries you use the symlink syntax.

example:

lib_deps =
  symlink://../libraries/my_fancy_lib

See also here Platformio ignores dependencies of local library - #2 by sivar2311