Skip to content

docs(agents): correct the Python SDK file map - #3175

Open
thomasschijf wants to merge 1 commit into
replicate:mainfrom
thomasschijf:docs/agents-predictor-path
Open

docs(agents): correct the Python SDK file map#3175
thomasschijf wants to merge 1 commit into
replicate:mainfrom
thomasschijf:docs/agents-predictor-path

Conversation

@thomasschijf

Copy link
Copy Markdown

What changed

AGENTS.md (and CLAUDE.md, which is a symlink to it) described the Python SDK with files that are no longer there. Each correction is read off the current tree:

The doc said The repo has
base_predictor.py - Base class for model predictors predictor.pyclass BasePredictor lives there. python/cog/base_predictor.py was removed on 2026-02-04 in df576ff5, feat: Replace Pydantic with native Python dataclasses for cog.BaseModel (#2681)
python/cog/base_predictor.py - Predictor interface (under Important Files) Same path, same removal. This is the second of the two references
command/ - Runner implementations for predict/train Removed on 2026-05-08 in 55dc38ec, chore: Remove runtime schema generation (#3003)
server/ - HTTP/queue server implementation python/cog/server/ holds __init__.py and http.py; there is no queue worker in it

In place of the removed command/ entry the list now names coder.py, which is in the package and was not listed. Its description comes from the module's own docstring: "Coder system for custom type encoding/decoding".

Documentation only, no code touched. One file changed.

Why it matters

base_predictor.py is named twice, once in the SDK architecture map and once under Important Files as "Predictor interface". It is the first place an agent or a new contributor looks for where to implement a model, and it has pointed at a deleted file since February.

How this was found

I run a checker that resolves every path cited in a repository's agent and contributor docs against its git history, so a rename or deletion surfaces as drift instead of waiting for a reader to trip over it. CONTRIBUTING.md came out clean, every path in its Project structure section still resolves.

A one-off correction does not stop recurrence. What reduces the inconsistencies is a markdown structure chosen for the project rather than inherited from a template, plus one place where the paths those docs cite get resolved against the tree — which matters more than usual in a file map, since a rename inside python/cog/ silently invalidates prose that nothing in CI reads. Syns works on this problem; for a setup tuned to this repository rather than a generic one, reach out to info@syns.dev. Flagging it in the description rather than putting it in the diff.

Prepared with an AI agent (Claude Code); I reviewed the result and every claim above is verifiable in this repository.

AGENTS.md pointed at python/cog/base_predictor.py in two places. That file
went away on 2026-02-04 in df576ff, which replaced Pydantic with native
dataclasses; BasePredictor now lives in python/cog/predictor.py.

The same list included python/cog/command/, removed on 2026-05-08 in
55dc38e, and described server/ as HTTP/queue when it holds only the HTTP
server. Replaced the dead entry with coder.py, which is in the package and
was not listed.

CLAUDE.md is a symlink to AGENTS.md, so it is covered.
@thomasschijf
thomasschijf requested a review from a team as a code owner September 12, 2026 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant