what do y'all think about having each codehost fq...
# proj-agent
n
what do y'all think about having each codehost fqdn be a separate named entity ie "my_repo_sled" "public_repos" and storing a blob in redis thats a superset of `username|orgname_that_has_org_repo`+`codehost` with config for that repo host combination ie:
gitlab_-_wpl_synthetic
if I had the following in config
Copy code
[codehost]
  [codehost.int_gl]
    url = 'PROTO://gitlab.wolfspyre.io'
    org_group = 'wpl_synthetic'
    org_repo = 'wpl_synthetic/openhands-config'
  [codehost.ext_gl]
    url = 'PROTO://gitlab.wolfspyre.io'
    org_group = 'synthetic'
    org_repo = 'synthetic/openhands-config' 
  [codehost.pub_gl]
    url = 'PROTO://gitlab.com'
    username = 'myuser'
    org_group = 'our_org'
    org_repo = 'our_org/openhands-config'
    user_repo = 'myuser/openhands-config'  # could optionally override org settings depending on org preference? ¯\_(ツ)_/¯ 
  [codehost.pub_gl_synth]
    url = 'PROTO://gitlab.com'
    username = 'myuser'
    org_group = 'our_org/synthetic'
    org_repo = 'our_org/synthetic/openhands-config'
    user_repo = 'myuser/openhands-config'  # could optionally override org settings depending on org preference? ¯\_(ツ)_/¯
I can imagine being able to say, from the org repo config ... that my users may disable some things, but not others, may enable some things, but not others ie: a user may be able to disable some microagents, or overload them, but others may not be ... I can see legit use cases for both ... [[ or org_repo =
openhands-config
expecting it to look in the specified group ]] store a list in redis of durable things with proper privilege constructs to avoid disclosure of info, but keep a cache of projects, issues, users, etc . that can be used to reduce api calls, and to obfuscate latency in comms .... when the async call comes back just upsert any newer/more-relevant info in the UI and save it as an update in cache for next time. have sessionid subkeys that inherit the latest durable list on instantiation ... ... like ... mappings of repoid, path, name, related microagents, available version and paths ... microagent state, microagent prompts, token refresh time, llm config, etc .... store that semi-regularly to /settings.... but keep it in redis .... expose that blob to the runtime(s) via an easy fetchable uri that's sourceable .... so the runtime can always reset its envvars with a simple
source $(curl -s http://openhands:4242/clean_env)
or
source $(cat /run/OH_RESET_ENV_state.sock)
that provides a fairly clean abstraction mechanism (ish?) to facilitate re-grounding regardless of what the agent's been working on.... that paves the way for storing the cloned projects in nested subpaths of /workspace .... but treating the codehostname+org+groupscope as the 'workspaceroot' ... ie: for a project
shiny_sprocket
in gitlab.com for
our_org
on the
synthetic
team ... • `WORKSPACE_ROOT`:
/workspace/pub_gl_synth/our_org/synthetic
•
CODEHOST
:
PROTO://gitlab.com
• `SELECTED_REPO`:
/workspace/pub_gl_synth/our_org/synthetic/shiny_sprocket
• `ORG_REPO`:
/workspace/pub_gl_synth/our_org/synthetic/openhands-config
this would allow for a copy of project
shiny_sprocket
in
ext_gl
...to be being worked on concurrently without stepping on each others toes becase •
WORKSPACE_ROOT:  /workspace/ext_gl/synthetic
•
CODEHOST : PROTO://gitlab.wolfspyre.io
•
SELECTED_REPO: /workspace/ext_gl/synthetic/shiny_sprocket
•
ORG_REPO: /workspace/ext_gl/synthetic/openhands-config
so scripts etc would be able to reference those vars consistently to find stuff .. AND everything would get autonamespaced in a way that's unlikely to have collisions while still being fairly simple to reason around and process