Skip to content

Add Git‑tool integration for full workflow support (clone, create repo, commit, push, PR… #243

@Qdev-hub

Description

@Qdev-hub

Service / Game Name

GitHub integration

Website URL

Https://github.com

Description

Implement a native Git command layer inside Kai AI iPhone so users can perform common Git workflows directly through voice or text commands.

Supported use‑cases

  • Clone a repo – “Clone the awesome‑project repo from GitHub”: prompt for URL (or infer from repo name), clone into a temporary workspace, confirm success.
  • Create a new repo – “Create a new repository called my‑notes on GitHub”: ask for host (GitHub, GitLab, Bitbucket), collect/store auth token securely, create repo via API, initialise with a README.
  • Commit changes – “Commit all changes with message updated readme”: run git add -A, git commit -m "updated readme" and report the commit hash.
  • Push / Pull – “Push the current branch to origin”: execute git push and show result, handle authentication errors.
  • Branch & PR – “Create a new branch feature‑ui and open a PR”: git checkout -b feature‑ui, push branch, call the GitHub API to open a PR, return the PR URL.
  • Status / Log – “Show the git status” or “Show the last three commits”: return concise status or log snippet.
  • Undo – “Undo the last commit”: run git reset --soft HEAD~1 with confirmation.

Technical considerations

  • Store personal access tokens (or OAuth credentials) securely in the iOS Keychain; never log or transmit them elsewhere.
  • Provide each session with a sandboxed workspace inside the app’s container to avoid interfering with user files.
  • Use iOS background tasks for long‑running operations (clone, large pushes/pulls) and surface progress to the user.
  • Parse Git command output to deliver user‑friendly error messages and suggest remediation (e.g., re‑enter token on auth failure).
  • Design the module as a plug‑in so future VCS integrations (Mercurial, self‑hosted GitLab, etc.) can be added later.

Acceptance criteria

  • All commands work on a fresh iOS install without external dependencies.
  • Errors (network, auth, merge conflicts, etc.) are caught and presented clearly.
  • Credentials are stored only in the Keychain and used solely for the selected Git host.
  • Feature is documented in the app’s help section with example commands and usage notes.

API / Data Source

No response

Policy

  • This integration does not violate any terms of service or platform policies

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions