GitHub & repositories

Connecting repos, pull requests and repository docs.

Articles

Repository docs: architecture and repo learnings

Starko AI remembers what it learns about your codebase, and it keeps that memory where your team can read and correct it: in the Knowledge Hub, under Repository. kh repository The Repository page Each project with a linked repository has a row with two documents: Architecture is a map of the repository: what the product is, how the code is laid out, which commands run fast checks, conventions, where things live and the gotchas the agent hit. Starko AI writes it when you press Learn project in the project's settings, and refreshes it on request. Repo learnings are the small facts Starko AI discovers during runs ("the e2e suite needs the dev server on port 3000 first"). Each is filed as a ticket tagged repo-learnings in the project's backlog, and the condensed version is published here. The status chips show whether each document is not started, a draft or a published version. Why this matters Every Starko AI run starts with a summary of the architecture doc and the open learnings for its project, and it can read the full documents on demand. A good architecture doc is the difference between a run that spends ten minutes finding the checkout code and one that goes straight to the fix. Editing and publishing Open a document to read it as an article. Your team can edit any section and publish a new version; agents read only the published version. Put rules in the project's Agent instructions instead; the architecture doc is for descriptions. Curating repo learnings Learnings are tickets, so you curate them like a backlog: Edit a learning to correct it. Close or cancel it to retire it. Promote an important one to agent instructions if it is really a rule. Press Condense on the Repository page to have Starko AI merge overlapping learnings into one document and preview the result before publishing. Refreshing Refresh the architecture doc after a significant restructuring or every month or so. Learning a project is billed like a fix run.

Connect GitHub and set up a repository

Starko works with your code through the Starko GitHub App. Installing it lets projects link repositories, lets Starko AI open pull requests, shows pull request status on tickets, and optionally syncs GitHub issues with tickets. Install the GitHub App Open Settings → Integrations and expand GitHub. Press Install and choose the GitHub account or organisation. Pick the repositories Starko may access; you can add more later with Manage repositories. Back in Starko, the row shows the connected accounts. integrations github Starko never pushes to your default branch and never merges. It creates branches named starko/..., opens draft pull requests and comments on them. Link a repository to a project Open a project, then its settings, and choose the repository. One project points at one repository. Tickets in that project can now be handed to Starko AI. project ai settings Tell Starko AI how to run your app In the same settings sheet, fill in: Agent instructions: stack, conventions, what not to touch. Project commands: install command, test command, dev server command and app URL. Sandbox environment variables: what the app needs to install, test and run. Stored encrypted, never shown again. Use test credentials only. Prepare sandbox builds a snapshot with dependencies installed so runs start fast. Learn project writes a map of the repository that every run starts from. Pull requests on tickets When Starko AI opens a pull request, the ticket shows it in the Development panel and the Starko AI card: number, CI status, risk level and a one-line summary. View PR opens GitHub. With Automated follow-ups on, review comments on the pull request trigger a revision run. Pull requests you open yourself are linked when the branch name or the pull request body mentions the ticket number. GitHub issues sync Per project, you can sync GitHub issues two ways: issues become tickets and tickets become issues, with status and comments kept in step. Public comments go out to GitHub; internal comments stay in Starko. A project can also mirror a GitHub Projects board. Repository docs The Knowledge Hub's Repository page shows, per project, the architecture doc and repo learnings Starko AI maintains. See Repository docs: architecture and repo learnings. kh repository Permissions the app asks for Contents, pull requests, issues and checks on the repositories you pick; organisation administration only if you want to create repositories from Starko. Remove the app from GitHub to revoke everything at once.