Cloud Agents use the Cursor GitHub App token (cursor[bot]) by default. It only covers repos linked to the environment. To push to criptogus/keepmind-corp from the agent:
- Cloud Agents → seu environment
- Environment.json location → apontar para
.cursor/environment.jsondeste repositório (ou recriar o environment a partir do repo). - Rebuild o environment (Build) para o token incluir
github.com/criptogus/keepmind-corp. - Publicar:
./tools/publish-keepmind-corp.sh cursor/corp-roadmap-v02-e37c
- GitHub → Settings → Developer settings → Fine-grained tokens (ou classic) com Contents: Read and write em
keepmindekeepmind-corp. - Cursor Dashboard → Cloud Agents → Environment → Secrets → adicionar
GH_TOKEN(ouGITHUB_TOKEN) com o PAT. - No próximo agent boot,
installroda./tools/gh-cloud-auth.she ogh/git passam a usar sua conta.
Verificar: gh auth status e gh api user -q .login (deve ser criptogus, não cursor).
Settings → Applications → Cursor → Configure → incluir o repositório keepmind-corp. Isso amplia o que o app pode fazer; ainda pode ser necessário a Opção 1 ou 2 para git push no Cloud Agent.