Show HN: Dotfactory – dotfiles for your Claude Code sessions A developer released Dotfactory, a Claude Code plugin that loads a user's saved preferences and registered tools into every session across projects, tested with Claude Code 2.1.330 and requiring version 2.1.287 or later for its side pane. The plugin stores personal configuration in a separate "brain" folder of markdown files — preferences in `prefs/*.md`, tools in `tools/*.md`, and projects in `projects.md` — located via the `DOTFACTORY_BRAIN` environment variable, a `brain` folder next to a checkout's plugin folder, or `~/.config/dotfactory/brain`. It is installed via `claude plugin marketplace add gesposito/dotfactory` and `claude plugin install dotfactory@dotfactory`, and its pane is built on Claude Code's early-access mods API, which the author warns can change between releases. A Claude Code plugin that makes every session, in any project, start with your preferences and your tools in view. The plugin knows nothing about any language, tool or kind of project. Everything personal lives in a folder of markdown files called the brain, which is yours and is never part of this repository. The recording runs real commands against a throwaway brain. The walkthrough https://github.com/gesposito/dotfactory/blob/main/docs/walkthrough.md goes through the same example step by step, with the files each step writes. | | What it is | Where | |---|---|---| | Preferences | How you like things done. A file applies to every project, or only to projects that have a marker file such as Cargo.toml . | prefs/ .md | | Tools | Anything a session can call on for a job: a repo to run, an expert session to consult, or written notes. | tools/ .md | | Projects | The projects you started with /dotfactory:new . | projects.md | A tool is reached one of three ways: - Repo: code in a folder. A session reads the entry and runs its commands. - Expert: another Claude Code session of yours, with its own knowledge. A session in any project messages it by name with a question and waits for the reply. An expert has to be running to answer, so keep it open or in the background. - Notes: steps written in the entry itself. The same job can be backed differently by different people. One person's naming is an expert session, another's is a page of notes. The plugin doesn't care which. From GitHub: claude plugin marketplace add gesposito/dotfactory claude plugin install dotfactory@dotfactory Or from a checkout, if you want to change the plugin: claude plugin marketplace add /path/to/dotfactory claude plugin install dotfactory@dotfactory Installed from a checkout, the plugin runs straight from that folder, so edits take effect in the next session. Tested with Claude Code 2.1.330. The pane needs 2.1.287 or later. It is built on Claude Code's mods API, which is early access and can change between releases; the commands and the session-start note don't depend on it. The first of these that applies: 1. The folder named by the DOTFACTORY BRAIN environment variable. 2. A brain folder next to the plugin folder of a checkout. This repository ignores it. 3. ~/.config/dotfactory/brain The folder is created the first time you save something. Make it a git repository of its own to keep its history. | Say or type | What happens | |---|---| | /dotfactory:new | Starts a project: applies your preferences, uses the tools you registered for new projects naming, licensing, anything , scaffolds it and records it. Offered automatically when a session starts in an empty folder. | | /dotfactory:remember