Skip to main content

agent-overwrite-grader

Did two of your coding agents write the same file within the hour? Run this in your repository:

pipx run agent-overwrite-grader

It reads your local git log for the last month and lists every file two sessions (two authors, or two branches) changed less than an hour apart: the edits most likely to overwrite each other. Nothing is sent anywhere; it is standard-library Python 3.9+, with no dependencies.

5 files written by two sessions within an hour, in 2 days of history.
17 commits by 4 sessions read, on this machine only.

  3  src/routes.ts
     c11c653 claude-code on agent/auth, Oct 5 09:14, then 8 min later 83f4ab6 codex on agent/billing (3 such pairs)
  2  src/db/schema.sql
     c73c1bd codex on agent/billing, Oct 6 09:00, then 12 min later 9a9532b claude-code on agent/auth (2 such pairs)
  2  package.json
     271b801 claude-code-2 on agent/search, Oct 5 09:47, then 8 min later 75e6e7b dev on main (2 such pairs)

At every commit

With pre-commit, add this to .pre-commit-config.yaml; a commit that stages a file another author or branch committed less than an hour ago stops and names them. Look that your change keeps theirs, then commit again with --no-verify.

repos:
  - repo: https://gitlab.com/memento-team-hq/agent-overwrite-grader
    rev: v0.3.0
    hooks:
      - id: agent-overwrite-grader

Without pre-commit: agent-overwrite-grader --staged exits 1 on such a file, 0 and silent otherwise.

Options

agent-overwrite-grader [REPO] [--since "2 weeks ago"] [--top 12] [--json] [--staged]
agent-overwrite-grader --log saved.log      # grade a saved log; '-' reads stdin

--log takes the output of git log --all --source --name-only --format='%H|%an|%aI|%S'.

The rule

Two commits are two sessions when their authors differ, or both carry a branch name and the names differ. A file collides when two sessions wrote it 60 minutes apart or less. Files rank by how many such pairs they have. The same rule runs in the browser at https://overflow.games/memento/grader/?ref=pypi.

The fix

memento Team gives each file one owner at a time across machines: a session claims a path before it edits, and the next one waits. Pre-order at https://overflow.games/memento/?ref=pypi (10 USD per agent a month).

MIT licensed.

Metadata

Release files for agent-overwrite-grader 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agent-overwrite-grader 0.3.0
File Size Uploaded Provenance
agent_overwrite_grader-0.3.0.tar.gz 6.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for agent-overwrite-grader 0.3.0
File Interpreter ABI Platform
agent_overwrite_grader-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 14.9 kB

Release files / agent_overwrite_grader-0.3.0.tar.gz

Download URL agent_overwrite_grader-0.3.0.tar.gz
Size 6.5 kB
Tags Source
SHA-256 checksum
How to use checksums
1beefd31b1085a1aa52cf516865a6cf970b22f2f5cca32284f650123386654b7
BLAKE2b-256 checksum
How to use checksums
06a3990048fb463c4f14d42dccd4197c78b3c82f1f68a4bb4c0c828d1bb11692
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / agent_overwrite_grader-0.3.0-py3-none-any.whl

Download URL agent_overwrite_grader-0.3.0-py3-none-any.whl
Size 8.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7d706271868e36f12b47af5483b87c07f6fc216a3cfb9cfd3f9d80b6691d77a3
BLAKE2b-256 checksum
How to use checksums
18c5f6f6e83386d818c081a90b35e890298c6238ac93126fa4c5a13de24f1884
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Security for agent-overwrite-grader 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page