package.json

Only a cognet published on its own has one. A cognet inside an agent uses the agent's.

{
  "name": "@cody/fast-loop",
  "version": "0.2.0",
  "type": "module",
  "files": ["cognet.config.ts", "types", "src", "library", "plugins", "Cargo.toml", "Cargo.lock", "pyproject.toml", "uv.lock"],
  "dependencies": {
    "gpt-tokenizer": "^2.5.0"
  }
}
FieldMeans
namethe registry name — always scoped, @you/name
versionimmutable once published; axonl publish bumps it on a collision
privatetrue keeps it private
fileswhat ships — the source, never .cognet/
dependenciesnpm packages the TypeScript uses

A cognet ships as source. Whoever installs it compiles it, against the kernel they run.

An agent selects it by name:

export default defineAgent({
    cognet: "@cody/fast-loop@^0.2.0",
})

Dependencies must be pure

A cognet has no filesystem and no network. Tokenizers, maths and parsers work; a package that opens a socket or reads a file will fail.