Skip to main content

Test your package through the eyes of a newbie agent — a fresh AI agent reads only your docs/skills and tries to use your package.

Project description

newb

newb mascot

A fresh AI agent reads only your docs and tries to use your package. If it succeeds, your docs work.

Install

pip install newb

Use

newb ./docs                                     # any dir of .md files
newb https://github.com/user/repo.git           # git URL — auto-clones
newb ./docs --format markdown >> README.md
newb ./docs --runtime local --auth claude-code  # host subprocess

Asks a fresh Claude agent four canonical questions (what for / problems solved / quick start / when not to use), plus any author-defined tests in tests_newb.yaml. Output: JSON (for CI) or markdown.

Author tests (tests_newb.yaml)

- name: redirects_parallel
  prompt: How do I run things in parallel?
  expect_contains: ["does not"]
  judge: "Must redirect to an alternative tool, not hallucinate."

Each test combines optional substring grading and an optional LLM judge.

Runtime · Auth

--runtime what
docker default — clean container, no host leakage
local host subprocess with isolated HOME
apptainer HPC (planned)
--auth what
api-key default — uses $ANTHROPIC_API_KEY
claude-code copies host ~/.claude/.credentials*

Library

import newb
report = newb("./docs")
print(newb.render_markdown(report))

Requirements

  • docker on PATH (or claude CLI if --runtime local)
  • $ANTHROPIC_API_KEY (or --auth claude-code)
  • Python 3.10+

License

AGPL-3.0-only.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

newb-0.5.0.tar.gz (14.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

newb-0.5.0-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

Details for the file newb-0.5.0.tar.gz.

File metadata

  • Download URL: newb-0.5.0.tar.gz
  • Upload date:
  • Size: 14.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0rc1

File hashes

Hashes for newb-0.5.0.tar.gz
Algorithm Hash digest
SHA256 e1322fac55862093a96b3637d2d44bd44f8311ddf301c0d180e6b90422e37d72
MD5 8d257c519b7bc9e6151821e8cfbbf360
BLAKE2b-256 efe50be13200bbab92529e613d4d1fa5dc29d000cfa3be962b3ac00c7a0c651a

See more details on using hashes here.

File details

Details for the file newb-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: newb-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 12.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0rc1

File hashes

Hashes for newb-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a49fa1716e6e5ddafa32bb21cd576a42a10e4bc5e0bcea7dafd4c9eea73d70b4
MD5 03603968db0a289b62a373c21152320c
BLAKE2b-256 21411e79d556c4bd74572a89015deab080769dc5f33a456e85ef64112592d3b3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page