Logo van Concurrent Push Integration

Concurrent Push Integration

Community
sherifican
concurrent-push-integration

When a push to a shared branch is REJECTED (the remote advanced), integrate the incoming work — never force over it. Invoke when `git push` fails with non-fast-forward / "fetch first", whenever two or more writers (agents, or an agent and a human, or an automated export) share write access to one repo, or any time you are about to reach for `--force`. A rejected push is information — someone else pushed — not an obstacle to bulldoze.

Overzicht

Uitgeversherifican
RepositoryAgent-FleetOps
Skillnaamconcurrent-push-integration
Sterren
34
Forks
0
Meegeleverde bestanden
Alleen instructies
LicentieMIT
Links
  • Instructies in Markdown

    Een SKILL.md-bestand dat het model laadt wanneer nodig, zodat het alleen tokens kost als een verzoek er daadwerkelijk bij past.

  • Werkt met elk LLM

    AI-skills zijn gewone Markdown, geen aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Compleet zonder extra bestanden

    Alles wat het model nodig heeft, staat in de instructies — geen extra bestanden om te synchroniseren.

  • Open source

    Gepubliceerd door sherifican op GitHub. Lees de broninhoud voordat je de skill installeert.

Installatie

Installeer de AI-skill Concurrent Push Integration in TypingMind om deze met elke LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map — het leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/sherifican/Agent-FleetOps/tree/main/skills/concurrent-push-integration
  4. Schakel de skill in elke chat in waarin je deze beschikbaar wilt hebben.
Plug-ins → Skills → Nieuwe skill → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/sherifican/Agent-FleetOps.git /tmp/Agent-FleetOps
mkdir -p .claude/skills
cp -r /tmp/Agent-FleetOps/skills/concurrent-push-integration .claude/skills/concurrent-push-integration
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Concurrent Push Integration in een willekeurige chat in TypingMind in en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek erbij past, laadt het model zelf de volledige instructies — je hoeft de skill nooit handmatig aan te roepen en deze kost pas tokens wanneer je de skill daadwerkelijk gebruikt.

Het model laadt Concurrent Push Integration automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Concurrent Push Integration niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

Concurrent Push Integration — a rejected push means integrate, not overwrite

When more than one writer can push to the same branch, git push will sometimes be rejected with ! [rejected] ... (fetch first) (non-fast-forward). This is not an error to force past — it is the remote telling you someone else advanced the ref while you were working. Reaching for git push --force is the destructive move: it replaces the remote's history with yours and silently discards whatever the other writer pushed.

The protocol

  1. Never --force to clear a rejection. A rejection means the remote has commits you don't have. Forcing deletes them — in a multi-writer setup, that is another party's work.
  2. Fetch and read what landed. git fetch origin, then git log --oneline <your-base>..origin/main and git diff --stat <your-base>..origin/main. Now you can tell a benign parallel edit from a real conflict.
  3. Check for overlap with your own pending change — same files, same lines? No overlap → a clean rebase. Overlap → the rebase pauses on the conflicting hunk for you to resolve, keeping both intents.
  4. Rebase (or merge) your work on top of the remote: git rebase origin/main. You are moving your commit to sit after theirs, not replacing theirs.
  5. Verify BOTH survived before pushing. Grep the working tree for your change AND theirs. A rebase that silently dropped one side is worse than the rejection — do not trust "rebase succeeded", read the result.
  6. Push — now a fast-forward.

The one time force is legitimate — and how to make it safe

A deliberate, authorized rewrite of a commit you just pushed (e.g. correcting a malformed author email on your own tip commit) is a real use of force. Even then:

  • Use --force-with-lease, never bare --force. --force-with-lease refuses the push if the remote has moved since your last fetch — so if another writer slipped a commit in, the lease FAILS and stops you, which is precisely the signal to go integrate instead. Bare --force has no such guard and overwrites blind.
  • A lease failure is not an obstacle either — it is the same "someone else pushed" signal. Fetch, integrate, and re-decide whether the rewrite is still needed.

Why this matters more with agents than with people

Two humans on one repo coordinate socially ("I'm pushing now"). Two agents — or an agent and a human, or an agent and an automated export — push on independent schedules with no shared clock, so collisions are normal, not exceptional. The capability to push is shared, which makes "who pushes" a coordination decision, not a capability limit; the integration discipline above is what makes shared write access safe instead of a clobber lottery.

Why this exists

Distilled from a live incident where an agent and a human collaborator (the repository owner) both held push access to one repository. The agent's push was rejected mid-task because the human had pushed a one-line change moments earlier. The agent fetched, confirmed the incoming edit did not overlap its own, rebased on top, verified both changes survived in the tree, and pushed a fast-forward — no work lost on either side.

The agent-and-human case is the sharper one: a claim/driver lock can stop two agents from colliding, but it cannot bind a human collaborator's own hands — so recovery after a collision, not just prevention of one, is mandatory. (The incident was first written up with the wrong participant — "two agents" — which would have taught the wrong prevention; corrected here, which is itself the argument for recording provenance.) Generalized; identifiers removed.

Related: specs/driver-lock-protocol.md is the prevention half — claim a region before writing so two agents don't collide. This skill is the recovery half — what to do once a collision has happened anyway, which a lock cannot prevent when one writer sits outside its authority.

Veelgestelde vragen

Wat doet de AI-skill Concurrent Push Integration?

When a push to a shared branch is REJECTED (the remote advanced), integrate the incoming work — never force over it. Invoke when `git push` fails with non-fast-forward / "fetch first", whenever two or more writers (agents, or an agent and a human, or an automated export) share write access to one repo, or any time you are about to reach for `--force`. A rejected push is information — someone else pushed — not an obstacle to bulldoze.

Waarom Concurrent Push Integration gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Concurrent Push Integration bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model, en je kunt midden in een chat van model wisselen zonder dat de skill niet meer werkt. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Concurrent Push Integration in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/sherifican/Agent-FleetOps/tree/main/skills/concurrent-push-integration. TypingMind leest het bestand SKILL.md en installeert het als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Concurrent Push Integration gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Concurrent Push Integration gebruiken?

Zoveel als je wilt. Zolang een model skills ondersteunt, kun je Concurrent Push Integration ermee gebruiken: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama en meer. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Concurrent Push Integration gratis?

Ja. Deze skill is door sherifican op GitHub gepubliceerd onder de licentie MIT. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. Deze volgt het open Agent Skills-formaat: een bestand met de naam SKILL.md met een naam en beschrijving, plus eventuele scripts, sjablonen of referentiebestanden die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Toon alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇