💡 Inspiration

File explorers haven't changed much. They're still built around folders, filenames and dates, while the way we work with files has changed quite a bit.

A codebase usually means opening VS Code. A bunch of bills means opening Excel. Research papers go into Zotero, and photos into Lightroom.

The files are all there, but the tools we use to work with them are scattered across different applications.

I started thinking: what if we could change how a folder looks and works without having to move its files somewhere else?

That's where Morph came from.

🛠️ What I built

Morph is a native file explorer where every view is a plugin.

The idea is pretty simple: the core handles the filesystem and the application, while plugins decide how the contents of a folder are displayed.

  • Rust handles the filesystem, event loop, plugin lifecycle and view registry.
  • Iced renders the UI components and handles input.
  • Lua is used to build plugins and define custom folder views.

Even the default explorer is written as a plugin. There isn't a separate, privileged implementation for the built-in views.

Here are three examples of what that looks like:

  • Details / Tree / Icons — the usual file explorer views, built using the same plugin API.
  • Project — turns a codebase into a dashboard with Git branch information, last commit, tracked and untracked changes, a README summary and an Open Project action.
  • Bills — displays spreadsheets as grouped cards with sheet previews, or as a sortable table.

There's also an optional AI assistant with two modes:

  • Assist mode: Ask it to work with files, review its proposed action plan and approve it before execution.
  • Plugin mode: Describe the view you want, and the assistant writes the Lua plugin. You can preview it live and add it to the running application when you save.

The assistant doesn't execute actions without approval. There's no permanent-delete tool, and API keys are stored in the OS keychain.

⚙️ How I built it

I used Kiro and followed a spec-first workflow.

Rather than jumping straight into implementation, I broke the project down into requirements, design and tasks under .kiro/specs/.

I also used steering files to keep the architecture consistent across sessions. The main rules were to maintain one public plugin API, keep the core independent of specific use cases and avoid claiming features that hadn't actually been tested.

I added hooks for formatting Rust code on save, running cargo check on stop and verifying completed spec tasks with tests.

Property-based testing was another useful part of the process. It helped explore edge cases that ordinary unit tests didn't cover. One of those tests actually caught a defect, which I've documented in docs/references/property-test-evidence.md.

🧩 Challenges

Getting the plugin boundary right

It would have been easy to give the default explorer special access to the engine. I deliberately avoided that. If the default view needed something, it had to be available through the public plugin API.

Keeping the core independent

The engine shouldn't know what a bill, a research paper or a codebase is. It should only understand files, folders, plugins and UI primitives. Everything specific belongs in the plugin.

Supporting Linux and Windows

Filesystem behaviour isn't identical across platforms. Paths, trash operations and file watching all have their differences. I had to account for these in the engine and test on both platforms, using a real Windows machine and QEMU as a fallback.

Making the AI assistant safe

Giving an assistant access to filesystem operations comes with its own set of problems. Tool calls are decoded into typed values and checked against folder scope, execution mode and permissions. File contents are treated strictly as data, so instructions written inside a file cannot authorize an action.

Keeping the claims honest

I wanted the submission to reflect what actually works, not just what looks good in a demo. The features shown here were tested on a real build and can be verified by rebuilding the project.

📚 What I learned

One of the biggest things I learned is that architecture comes down to the small decisions.

Saying "everything is a plugin" doesn't mean much if the built-in plugin gets special privileges. The default explorer had to follow the same rules as every other plugin for the idea to hold up.

Working on the Lua-to-Iced bridge also taught me the importance of keeping the event loop under the engine's control. Plugins should describe what they want to display and do, not take ownership of the application itself.

And finally, working spec-first made a project of this size much easier to manage. The specs weren't just documentation I wrote before coding. They became the reference I kept coming back to throughout development.

Built With

Share this project:

Updates

Submission history