Kibana custom plugin with saved object

You could certainly try and hack the code/develop plugin to do that . The Kibana plugin interfaces are in a state of constant development. We cannot provide backwards compatibility for plugins due to the high rate of change. Kibana enforces that the installed plugins match the version of Kibana itself. Plugin developers will have to release a new version of their plugin for each new Kibana release as a result.Here are some resources that are helpful for getting started with plugin development.

Kibana internal APIs change from version to version. This discuss post might be helpful to develop your plugin: Kibana Custom Plugin

https://www.elastic.co/guide/en/kibana/current/plugin-development.html

here is an old guide too, might still be relevant,

hope this helps
Rashmi