โ† Back to overview
๐Ÿ” Reference ยท GitOps & Second Brain

From idea to a running change โ€” and back

Every change takes the same path: captured in Git, deployed automatically, documented for humans in the wiki and for the AI in the "Second Brain." The loop closes because the AI reads its own knowledge back and assists the next change.

Data flow ยท change โ†’ deploy โ†’ knowledge
โœŽ
Change
idea ยท edit
git push
โއ
Forgejo
source of truth
Webhook + HMAC
๐Ÿ“ฆ
Dockhand
on Unraid
compose up
โ–ถ
Live stack
running
โ†“ DOCUMENTED AS
๐Ÿ“–
Wiki.js
for humans ยท readable
๐Ÿง 
Second Brain
for the AI ยท versioned
โ†บ The AI reads back and assists the next change

โއGit as the source of truth

Every compose file and config lives in Forgejo. Edit, commit โ€” whatever is in Git is the valid state. A rollback is a simple "revert" with full history.

Forgejoversionedrollback

๐Ÿ“ฆDockhand on Unraid

A push triggers a redeploy via a signed webhook (HMAC): Dockhand pulls the new state and restarts the stack โ€” no SSH needed. Dockhand runs as a container on Unraid.

Dockhandwebhook + HMACauto-deploy

๐Ÿ“–Wiki.js for humans

In parallel, the human-readable docs land in the wiki โ€” architecture, runbooks, stack pages. The wiki itself is mirrored back to Git, so it is doubly backed up.

Wiki.jsreadablerunbooks

๐Ÿง Second Brain for the AI

An AI-curated, Git-backed knowledge store: what happened is logged directly, durable knowledge is proposed by the AI as a pull request โ€” a human reviews and merges. Trust tiers prevent "knowledge pollution."

AI-curatedPR reviewtrust tiers
Stack in use
ForgejoDockhandUnraidWebhook (HMAC)Wiki.jsSecond Brain