Skip to main content

Memory / custom context / traits support

It would be great to support some sort of traits or persistence memory.
For example I would like to specify some common useful directories or commands or scripts.

I could write smth like this

~/code - it’s the directory of my git repos
~/pet-proejcts - it’s the directory of my personal projects
~/job - it’s the working directory

So the Substage could understand some commands like
“go to my working directory and open the main project in VSCode”

Status: Completed3 comments

Log in to comment and vote

Comments3

  • joethephish

    Team•

    Jun 24

    With the release of Substage 1.0 this has now been implemented in the new Rules feature - have a look at my blog post:

    https://joethephish.me/blog/substage-1.0/

  • kernkraft

    •

    Jul 11, 2025

    seems like just adding a ~/._substage.rules to each folder would work perfectly, but also be vulnerable to prompt injection. Maybe put some very obvious UI indicator that rules are in effect and/or that rules have been altered outside of substage, and/or first time invoking a rules file

  • Daniil Voidilov

    •

    May 14, 2025

    Also I want to add some files to the chat memory, .zshrc for example