convez.ai
Agente
GeeveGeorge

donate-your-code

GeeveGeorge/donate-your-code

Ver no GitHub
InicialPluginScore · de 0 a 100

Donate your Claude Fable 5 transcript turns to a free, vetted, CC0 dataset — safely. Deterministic, audited CLI; agent-driven selection; fail-closed scrubbing.

Instalação

$npx convez-ai GeeveGeorge/donate-your-code

1 comando no terminal: detecta o formato do repositório (marketplace ou plugin avulso) e instala via Claude Code. Requer Node 18+ e o Claude Code instalado.

Métricas

Estrelas
0
Forks
0
Acompanhando
0
Saúde
71%
Último commit
há 5 meses
Versão
v0.1.2
Issues abertas
0
Contribuidores
1

README

A tradução para o português deste README ainda está na fila.

Donate Your Code (dyc)

Share your own Claude Fable 5 coding outputs to a free, open, CC0 dataset. A small helper (dyc) finds the Fable 5 turns in your local Claude Code history, cleans them up (keys, emails, and local paths removed), and opens a pull request with the projects you pick.

Quick start — just tell your agent

In Claude Code (or any coding agent), say:

look at https://github.com/GeeveGeorge/donate-your-code and follow its AGENTS.md to donate my Claude Fable 5 outputs

It lists your projects, asks which ones you want to share, shows you the cleaned-up preview, and opens the PR. You just pick projects and give a final OK.

How it works

you ──donate──▶ GitHub staging repo ──CI checks──▶ merge ──hourly──▶ Hugging Face dataset

dyc reads only your ~/.claude history, removes secrets/keys/emails/paths, and opens one GitHub PR. A CI step double-checks each submission before it lands. The dataset and its details live at huggingface.co/datasets/g30rv17ys/donate-your-code.

Or run it yourself

Zero install — a single, transparent, stdlib-only Python script (no binary, no pip, works wherever python3 is):

curl -fsSL https://raw.githubusercontent.com/GeeveGeorge/donate-your-code/main/dyc.py -o dyc.py
python3 dyc.py scan                       # list projects + Fable 5 turn counts (no network)
python3 dyc.py preview <selector> --full  # show the EXACT post-scrub payload (no network)
python3 dyc.py auth login                 # store a least-privilege GitHub token (prefers gh)
python3 dyc.py donate <selA> <selB> ...   # scrub + validate + open ONE PR (try --dry-run first)

Prefer a compiled binary? curl -fsSL …/install.sh | sh (checksum-verified), or go install github.com/GeeveGeorge/donate-your-code/cmd/dyc@latest. The Go and Python clients produce byte-identical content-addressed records.

A selector is a project basename substring, a session id prefix, or all; pass several at once. scan, preview, and donate --dry-run make no network calls; donate talks only to the GitHub API. The agent only orchestrates dyc — it never reads your transcripts itself (see AGENTS.md).

What gets donated

The full scrubbed conversation thread around each Fable 5 turn (your prompts, the Fable 5 responses, tool calls, and tool results) — after redacting private keys, vendor secrets, high-entropy tokens, emails, phone numbers, payment cards, IPs, absolute paths, and your username. File-history snapshots and attachments are dropped wholesale. Nothing is donated without explicit per-session opt-in and a shown preview.

Status

The client is complete and working: deterministic scan/preview/scrub/ canonicalize, agent-driven project selection, and donate (fork → DCO commit → PR) over an egress-locked GitHub client, all with tests. The Go↔Python canonicalization is conformance-tested (deploy/staging-repo/tests).

In progress: the server-side CI gate (validate.yml / gatekeeper.yml / compact.yml), compaction to a Hugging Face Parquet dataset, and provenance scoring. See SECURITY.md and deploy/.

Layout

cmd/dyc/                CLI (scan, preview, version)
internal/discover/      config-root resolution + path-safe allowlist
internal/transcript/    JSONL parsing + genuine-Fable5 predicate
internal/thread/        DAG thread reconstruction + record building
internal/extern/        <persisted-output> external file resolution
internal/scrub/         deterministic fail-closed redaction + tripwire
internal/record/        canonical record + RFC 8785 record_id
schema/                 record.schema.json + canonicalization.md (shared with server)
AGENTS.md / CLAUDE.md   agent orchestration runbook
SECURITY.md             threat model

Licenses

Contributions are made under the DCO (git commit -s) certifying your right to donate and your CC0 dedication; see CONTRIBUTING.md.

Ver o original no GitHub

Bom para

Relacionados