DayuanJiang/PecoFence

A free, open-source Stardock Fences alternative for Windows 11. Glass fences, live folders, tabs, Peek. Rust, ten languages, portable.

Rust

559

162 commits

updated Oct 17, 2026

See the code

See what people are saying

SourceMessageScoreDate

I built a Fences alternative that lets Claude Code manage your Windows desktop, free and open source (r/ClaudeAI)

Site: [https://pecofence.jiang.jp/](https://pecofence.jiang.jp/) Repo: [https://github.com/DayuanJiang/PecoFence](https://github.com/DayuanJiang/PecoFence) My desktop was a mess and Fences costs money. The free ones (360, Tencent desktop) have privacy problems, there's an openfence on github but…

4

Oct 9, 2026

README

https://github.com/user-attachments/assets/c827f059-cfd7-4f6a-bed3-8b00411a7220

A free, open-source Stardock Fences alternative for Windows 11.
Keep files in glass panels, switch projects with tabs, and ask your AI agent to configure the layout, appearance and sorting rules through the built-in CLI.

Website  ·  Get PecoFence →  ·  AI + CLI  ·  See it in action  ·  Documentation

English  ·  简体中文  ·  繁體中文  ·  日本語  ·  한국어  ·  Deutsch  ·  Français  ·  Español  ·  Português (Brasil)  ·  Русский


Your desktop. Configured by your AI

Built-in CLI. Ready for your AI agent.

Tell your AI agent how you want your desktop to work. The bundled pecofence-cli lets Claude Code, Codex and Cursor read your current setup and apply changes directly in PecoFence.

  • Configure it in your own words. Change themes, transparency, icon sizes and global settings, or adjust every fence at once.
  • Organize once. Keep it organized. Create project fences, arrange icons and add rules that sort new files automatically.
  • Save a setup you like. Use snapshots for fence layouts and configuration export/import for settings, rules and layouts.

Try it with your AI agent

Open PecoFence, then paste this request into your AI coding agent:

Use pecofence-cli to configure my desktop. First read pecofence-cli skill and pecofence-cli describe, then inspect my current settings and fences. Back up my configuration before changes. Switch to dark mode and make all fences more transparent.

The CLI is included. The Microsoft Store edition adds pecofence-cli to PATH. With the portable ZIP, give your agent the path to pecofence-cli.exe.

Example conversation with a coding agent

Put my desktop PDFs in a Docs fence, keep new PDFs there, switch to dark mode and make the fences more transparent.

pecofence-cli config export "$env:USERPROFILE\pecofence-before-ai.json"
pecofence-cli snapshot save before-cleanup
pecofence-cli fence create --title Docs
pecofence-cli rule add --name PDFs --ext pdf --to Docs --index 0
pecofence-cli rule apply
pecofence-cli settings set theme dark
pecofence-cli fence set --all opacity clear

Built for agents and scripts: describe exposes the command catalog and JSON Schemas; skill prints the agent guide. JSON results report what changed, and structured application errors help the agent choose its next step.

Get started with the CLI →

Give everything a place

Projects, screenshots, things to read later—keep them in their own fences, arranged the way you work. PecoFence adds just enough structure to make your desktop useful again.

PecoFence — Project folders, a PDF and original design studies in Liquid Glass fences.

Group your workKeep folders closeClear some space
Make a fence for each project. Drag, resize and snap it into place.Put a live folder on your desktop. Browse subfolders and see changes as they happen.Double-click the desktop to hide your fences. Double-click again to bring them back.

See it in action

One fence. Multiple workspaces.

Keep related fences together as tabs. Switch from Work to Art in a click, then drag a tab out when you want the extra room.

Switching between Work and Art, then detaching a tab into its own fence.

Your desktop, one shortcut away.

Press Ctrl + Alt + Space to bring your fences above the current application. Grab what you need, then press Esc to return.

Peek brings your fences above an application; Esc returns to it.

Recorded in PecoFence using demo files and the Fluent theme. GIFs loop automatically.

Small details that add up

FeatureWhat you get
AI + CLIpecofence-cli — Configure it in your own words. Change themes, transparency, icon sizes and global settings, or adjust every fence at once.
Less sortingRules for file types, extensions, names, wildcards, shortcut targets, time and size. New files find their fence automatically.
Glass that fits your desktopFluent and Liquid Glass themes, light/dark modes, per-fence colors, opacity and icon tinting.
Familiar file handlingFile Explorer context menus, drag and drop, copy/paste, multi-select, thumbnails and icon/list/details views.
Space when you need itRoll a fence up to its title. Hover to expand. Lock a layout you like.
A way backLayout snapshots, daily backups, configuration import/export and swapping fences between displays.
A small footprintA native Rust application; the WebView2 settings panel loads on demand.

Automatic sorting rules keep files in their original locations. File moves you initiate work like they do in File Explorer.

Explore the complete feature list →

Get PecoFence

Get it from Microsoft Store

The Microsoft Store edition is signed by Microsoft, updates automatically and never shows a SmartScreen prompt. Prefer a plain ZIP? The portable build below is the same app.

  1. Open this repository's Releases page and download pecofence-v<version>-x64-portable.zip.
  2. Extract the whole ZIP into a folder and run pecofence.exe.
  3. Start organizing. Right-click the tray icon whenever you need Settings or want to exit.

Prefer an installer? pecofence-v<version>-x64-setup.exe on the same page installs PecoFence for your Windows user, with a Start menu entry and an uninstaller. It uses the same settings as the ZIP.

Prefer a package manager? winget install DayuanJiang.PecoFence installs the same portable build and skips the SmartScreen prompt.

Windows 11 x64 · Portable ZIP · No account required · Apache 2.0 licensed

The first launch creates four fences in your selected language: Programs, Folders, Files and documents, and Desktop. Windows desktop icons are restored when you exit.

Requirements, configuration and a few useful notes
  • Designed for Windows 11 22H2 and later. Most hands-on testing has been on 25H2; the full older-version and multi-display hardware matrix is still in progress.
  • Microsoft Edge WebView2 Runtime is required for Settings. Keep the bundled WebView2Loader.dll and pecofence-watchdog.exe beside the app.
  • Configuration lives in %APPDATA%\PecoFence\config.json. Launch with --portable to keep it in a config folder beside the executable.
  • Existing installations keep their previous configuration directory. See the upgrade guide.
  • Glass uses the static desktop wallpaper. It does not refract other applications or live video wallpaper.
  • Windows-owned dialogs and third-party File Explorer menu entries follow the Windows display language.
  • Portable builds are unsigned. If Windows SmartScreen appears on first launch, choose More info → Run anyway. Installing from the Microsoft Store or through winget avoids the prompt.

Portable edition guide · Language guide · Windows installer guide

Build it. Make it yours.

PecoFence is Apache 2.0 licensed, and contributions are welcome—from a sharper translation to a better desktop interaction.

Contribute · Improve a translation · Development guide

Build from source

Install Rust stable and Visual Studio Build Tools with the C++ workload and Windows SDK.

cargo build --locked --release
Copy-Item third_party/webview2/WebView2Loader.x64.dll target/release/WebView2Loader.dll

Create a distributable portable ZIP:

./scripts/make-portable.ps1

The workspace is organized into crates/ for the native app, ui/ for Settings, locales/ for translations and scripts/ for verification and packaging. The product website lives in site/, and the optional video project in extras/ is independent of the app build.

Release instructions · Source layout


Made for a desktop you enjoy coming back to.
Apache License 2.0 · Third-party notices

Thanks to the LINUX DO community.

desktop
desktop-organizer
direct2d
fences
productivity
rust
windows
windows-11

DayuanJiang/PecoFence

A free, open-source Stardock Fences alternative for Windows 11. Glass fences, live folders, tabs, Peek. Rust, ten languages, portable.

Rust

559

162 commits

updated Oct 17, 2026

See the code

See what people are saying

SourceMessageScoreDate

I built a Fences alternative that lets Claude Code manage your Windows desktop, free and open source (r/ClaudeAI)

Site: [https://pecofence.jiang.jp/](https://pecofence.jiang.jp/) Repo: [https://github.com/DayuanJiang/PecoFence](https://github.com/DayuanJiang/PecoFence) My desktop was a mess and Fences costs money. The free ones (360, Tencent desktop) have privacy problems, there's an openfence on github but…

4

Oct 9, 2026

README

https://github.com/user-attachments/assets/c827f059-cfd7-4f6a-bed3-8b00411a7220

A free, open-source Stardock Fences alternative for Windows 11.
Keep files in glass panels, switch projects with tabs, and ask your AI agent to configure the layout, appearance and sorting rules through the built-in CLI.

Website  ·  Get PecoFence →  ·  AI + CLI  ·  See it in action  ·  Documentation

English  ·  简体中文  ·  繁體中文  ·  日本語  ·  한국어  ·  Deutsch  ·  Français  ·  Español  ·  Português (Brasil)  ·  Русский


Your desktop. Configured by your AI

Built-in CLI. Ready for your AI agent.

Tell your AI agent how you want your desktop to work. The bundled pecofence-cli lets Claude Code, Codex and Cursor read your current setup and apply changes directly in PecoFence.

  • Configure it in your own words. Change themes, transparency, icon sizes and global settings, or adjust every fence at once.
  • Organize once. Keep it organized. Create project fences, arrange icons and add rules that sort new files automatically.
  • Save a setup you like. Use snapshots for fence layouts and configuration export/import for settings, rules and layouts.

Try it with your AI agent

Open PecoFence, then paste this request into your AI coding agent:

Use pecofence-cli to configure my desktop. First read pecofence-cli skill and pecofence-cli describe, then inspect my current settings and fences. Back up my configuration before changes. Switch to dark mode and make all fences more transparent.

The CLI is included. The Microsoft Store edition adds pecofence-cli to PATH. With the portable ZIP, give your agent the path to pecofence-cli.exe.

Example conversation with a coding agent

Put my desktop PDFs in a Docs fence, keep new PDFs there, switch to dark mode and make the fences more transparent.

pecofence-cli config export "$env:USERPROFILE\pecofence-before-ai.json"
pecofence-cli snapshot save before-cleanup
pecofence-cli fence create --title Docs
pecofence-cli rule add --name PDFs --ext pdf --to Docs --index 0
pecofence-cli rule apply
pecofence-cli settings set theme dark
pecofence-cli fence set --all opacity clear

Built for agents and scripts: describe exposes the command catalog and JSON Schemas; skill prints the agent guide. JSON results report what changed, and structured application errors help the agent choose its next step.

Get started with the CLI →

Give everything a place

Projects, screenshots, things to read later—keep them in their own fences, arranged the way you work. PecoFence adds just enough structure to make your desktop useful again.

PecoFence — Project folders, a PDF and original design studies in Liquid Glass fences.

Group your workKeep folders closeClear some space
Make a fence for each project. Drag, resize and snap it into place.Put a live folder on your desktop. Browse subfolders and see changes as they happen.Double-click the desktop to hide your fences. Double-click again to bring them back.

See it in action

One fence. Multiple workspaces.

Keep related fences together as tabs. Switch from Work to Art in a click, then drag a tab out when you want the extra room.

Switching between Work and Art, then detaching a tab into its own fence.

Your desktop, one shortcut away.

Press Ctrl + Alt + Space to bring your fences above the current application. Grab what you need, then press Esc to return.

Peek brings your fences above an application; Esc returns to it.

Recorded in PecoFence using demo files and the Fluent theme. GIFs loop automatically.

Small details that add up

FeatureWhat you get
AI + CLIpecofence-cli — Configure it in your own words. Change themes, transparency, icon sizes and global settings, or adjust every fence at once.
Less sortingRules for file types, extensions, names, wildcards, shortcut targets, time and size. New files find their fence automatically.
Glass that fits your desktopFluent and Liquid Glass themes, light/dark modes, per-fence colors, opacity and icon tinting.
Familiar file handlingFile Explorer context menus, drag and drop, copy/paste, multi-select, thumbnails and icon/list/details views.
Space when you need itRoll a fence up to its title. Hover to expand. Lock a layout you like.
A way backLayout snapshots, daily backups, configuration import/export and swapping fences between displays.
A small footprintA native Rust application; the WebView2 settings panel loads on demand.

Automatic sorting rules keep files in their original locations. File moves you initiate work like they do in File Explorer.

Explore the complete feature list →

Get PecoFence

Get it from Microsoft Store

The Microsoft Store edition is signed by Microsoft, updates automatically and never shows a SmartScreen prompt. Prefer a plain ZIP? The portable build below is the same app.

  1. Open this repository's Releases page and download pecofence-v<version>-x64-portable.zip.
  2. Extract the whole ZIP into a folder and run pecofence.exe.
  3. Start organizing. Right-click the tray icon whenever you need Settings or want to exit.

Prefer an installer? pecofence-v<version>-x64-setup.exe on the same page installs PecoFence for your Windows user, with a Start menu entry and an uninstaller. It uses the same settings as the ZIP.

Prefer a package manager? winget install DayuanJiang.PecoFence installs the same portable build and skips the SmartScreen prompt.

Windows 11 x64 · Portable ZIP · No account required · Apache 2.0 licensed

The first launch creates four fences in your selected language: Programs, Folders, Files and documents, and Desktop. Windows desktop icons are restored when you exit.

Requirements, configuration and a few useful notes
  • Designed for Windows 11 22H2 and later. Most hands-on testing has been on 25H2; the full older-version and multi-display hardware matrix is still in progress.
  • Microsoft Edge WebView2 Runtime is required for Settings. Keep the bundled WebView2Loader.dll and pecofence-watchdog.exe beside the app.
  • Configuration lives in %APPDATA%\PecoFence\config.json. Launch with --portable to keep it in a config folder beside the executable.
  • Existing installations keep their previous configuration directory. See the upgrade guide.
  • Glass uses the static desktop wallpaper. It does not refract other applications or live video wallpaper.
  • Windows-owned dialogs and third-party File Explorer menu entries follow the Windows display language.
  • Portable builds are unsigned. If Windows SmartScreen appears on first launch, choose More info → Run anyway. Installing from the Microsoft Store or through winget avoids the prompt.

Portable edition guide · Language guide · Windows installer guide

Build it. Make it yours.

PecoFence is Apache 2.0 licensed, and contributions are welcome—from a sharper translation to a better desktop interaction.

Contribute · Improve a translation · Development guide

Build from source

Install Rust stable and Visual Studio Build Tools with the C++ workload and Windows SDK.

cargo build --locked --release
Copy-Item third_party/webview2/WebView2Loader.x64.dll target/release/WebView2Loader.dll

Create a distributable portable ZIP:

./scripts/make-portable.ps1

The workspace is organized into crates/ for the native app, ui/ for Settings, locales/ for translations and scripts/ for verification and packaging. The product website lives in site/, and the optional video project in extras/ is independent of the app build.

Release instructions · Source layout


Made for a desktop you enjoy coming back to.
Apache License 2.0 · Third-party notices

Thanks to the LINUX DO community.

desktop
desktop-organizer
direct2d
fences
productivity
rust
windows
windows-11

Significant stargazers

哈雷不灰心

1,177 followers · starred Oct 2026