This message was deleted.
# feedback
d
This message was deleted.
c
The closest I can find is this : https://docs.all-hands.dev/modules/usage/customization/repository which adds an install script. But I think if behind the scene there is some docker image, can we just update the image?
l
Hey @curved-furniture-96483, thanks a lot! We don’t need the github CLI, OpenHands can just call the github API directly. However, I have noticed that it likes to try to use the github CLI. If you’re using OpenHands through the UI, you can add a prompt like this to
repo.md
Copy code
When interacting with github, use the github API and GITHUB_TOKEN. Do NOT use the github CLI and do NOT navigate to <http://github.com|github.com> with the web browser.
🙌 1
1
We should actually probably fix the github microagent to do this.
nod 1
c
Thank @limited-student-10747 for sharing the prompt of
repo.md
. But even after I added
.openhands/microagents/repo.md
with content you provided, it still "browse" despite we ask it to not navigate to github.com with the web browser. Is it intended behavor?
l
That is not intended behavior. Just to check, do you have the same header as is in this file? https://raw.githubusercontent.com/All-Hands-AI/OpenHands/refs/heads/main/.openhands/microagents/repo.md
w
Are you using the open source? or OpenHands cloud?
c
> Are you using the open source? or OpenHands cloud? I am using the Dockerized version for self-hosted
Copy code
docker run -it --rm \
    -e SANDBOX_RUNTIME_CONTAINER_IMAGE=docker.all-hands.dev/all-hands-ai/runtime:0.31-nikolaik \
    -e LOG_ALL_EVENTS=true \
    -v /var/run/docker.sock:/var/run/docker.sock \
    -v ~/.openhands-state:/.openhands-state \
    -p 3000:3000 \
    --add-host host.docker.internal:host-gateway \
    --name openhands-app \
    docker.all-hands.dev/all-hands-ai/openhands:0.31
And we are using our own token for Anthropic Claude Sonnet 3.7 and Github token
👍 1
Just to check, do you have the same header as is in this file?
No, thanks for sharing it. Adding the headers now, will try again. here is the current version of
repo.md
Copy code
---
name: repo
type: repo
agent: CodeActAgent
---

This repo contains the code for <project info redacted). Read ./README.md for more information.

## Interacting with Github: use the Github API and GITHUB_TOKEN

When interacting with github, use the github API and GITHUB_TOKEN. Do NOT use the github CLI and do NOT navigate to <http://github.com|github.com> with the web browser.
I will report the result
It seems to work now. Appreciate the guidance @limited-student-10747 and @wooden-umbrella-84098
l
Hmm, very weird. I thought we had fixed this: https://github.com/All-Hands-AI/OpenHands/issues/7205
👀 1
Ohh, maybe it’s not released yet perhaps? @better-park-34863?
b
Correct @limited-student-10747 the PR you linked has not been released. It will only be available on main right now
👀 1
👍 1