Connect a GitHub repository to Kwern
How to install Kwern's GitHub App, which files it reads at a commit, and why every fix it proposes arrives as a pull request.
What you need
A repository you can install a GitHub App on. The repository should be the one that actually serves the site, because that is where a site fix has to land.
Connect it
Open Settings › Accounts and, under Add an account, press Connect beside GitHub. GitHub asks you to install Kwern's App and to pick the repositories it may see. Kwern stores the installation id and nothing else: every call mints a fresh token from it, and you revoke the whole thing from your GitHub settings in one click.
A personal access token would have carried everything you can see. The App carries what you picked.
Then open the product's Apps page, press Choose what Kwern reads and choose the GitHub repository. You can add a root path inside it, so one repository can back several products.
What Kwern reads
A repo snapshot pinned to one commit of the default branch:
- the files that describe the product: README, docs, changelog, store metadata, translations and pricing
- the open issues
- the latest releases
Secrets and binaries are never read. The paths are a curated list, not the whole tree.
What Kwern can change
One thing: a pull request. A branch cut from the head of the default branch, one commit carrying the change, and a pull request on the repository.
Two things arrive that way, and they merge differently:
- A site fix from an SEO or GEO recommendation opens as a draft. Approving it in Kwern merges it. You can also read it, change it and merge it on GitHub like any other.
- A listing change that belongs in a file of the repository rather than in the App Store itself opens as a pull request left open for you, and you merge it on GitHub.
Nothing is merged automatically: a pull request merges when you approve it in Kwern or merge it yourself.
The agents that use it
The SEO agent and the GEO agent both need it. Both fix pages, and a page is fixed by a pull request on the repository that serves it: without one they are unavailable and do not run.
When it breaks
Uninstalling the App marks the account as needing attention and pauses the agents that depend on it. Recommendations only exist while a repository backs the product, and go with it.