is there "setup.sh for a conversation" - i.e. some...
# questions
g
is there "setup.sh for a conversation" - i.e. something that is guaranteed to run in runtime on first user message?
c
yes, you could write a setup.sh script (it will be run before the first message)
g
setup.sh seems to un on runtime init vs first message - is there somethign that runs at the same time as repo.md is read?
c
No 🤔 We read other files, but don’t run anything. Could you tell what is the use case for it?
g
it kind of works if i ask agent to run shell in repo.md
i was just curious if there is a more reliable way to trigger setup from API endpoint parameter
n
where would that live/be declared? I guess this would be a user-scoped action so prolly someplace like the settings folder ... settings.json?
Copy code
jq .  /data/durable/openHands/openHandsSettings/settings.json
{
  "language": "en",
  "agent": "CodeActAgent",
  "max_iterations": 3,
  "...": "...",
  "userSetup": {
    "enableRepoSetupScript": true,
    "enableDefaultRepoSetupScript": true,
    "defaultRepoSetupScriptPath": "filepath_relative_to_settings_mount",
    "enableRepoSetupScript": true,
    "repoSetupScriptPath": "filepath_relative_to_repo_root",
    "enableRepoSetupActionLog": true,
    "repoSetupActionLog": "filepath_relative_to_Trajectories_mount"
  }
}
... or something?
g
smth like that
n
something like that would provide a clear ( REPO SCOPED FILE PATH ) as first location searched ... enablable, or disableable ... provide a fallback ( USER SCOPED FILE PATH ) as well, in case repo-script noexist ... enablable, or disableable ... there's prolly an org-scoped location to define too ... there's also likely the 'how to declare what should live where' conversation which is all sorts of skwirreley... and whether or not A SCRIPT should be run.... or ALL SCRIPTS should be ....
yak shaving at its finest
but in all seriousness, > Articulating this as a clear definition of default behavior, with instructions for how to alter that behavior, and why the default behavior was selected is a good call... • Future me to current me.
I've looked back at my "previous decisions around hierarchical inheritance logic" several months after the fact ..... and (you might or might not be surprised to hear) they did NOT make a lot of sense to me intuitively .....and leaving myself more reminders of what things I considered when making these inheritance opinions would have made regrounding months later a lot easier for me... but... ¯\_(ツ)_/¯
I leave myself notes a lot ....
WOLF_READ_ME_BEFORE_DOING_THE_STUPID.md
or
Things_Wolf_wishes_hed_written_down_before.md
or
WOLF_EVEY_SAYS_READ_THIS.md