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.

How it works

┌──────────────────────┐         ┌────────────────────────────────────┐         ┌──────────────────────┐
│   Your package       │         │   Fresh agent                      │         │   Report             │
│                      │  newb   │                                    │  asks   │                      │
│   ./docs/  or        │  spins  │   docker / local / apptainer       │  4 + N  │   what_for           │
│   ./_skills/<pkg>/   │   up    │   isolated HOME (no ~/.claude)     │  ────→  │   problems_solved    │
│   tests_newb.yaml    │         │   sees ONLY your docs              │  reads  │   quick_start        │
│   (optional)         │         │   no internet to your real session │  back   │   when_not_to_use    │
└──────────────────────┘         └────────────────────────────────────┘         │   tests[] (pass/fail)│
         │                                       ▲                              └──────────────────────┘
         └───────────── stages skills ───────────┘
                       (read-only mount)

The agent has no prior context — it sees only what you ship. If it answers the 4 canonical questions correctly and your tests_newb.yaml graders pass, your docs work for the realistic case of a brand-new user (or AI).

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.1.tar.gz (15.6 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.1-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: newb-0.5.1.tar.gz
  • Upload date:
  • Size: 15.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for newb-0.5.1.tar.gz
Algorithm Hash digest
SHA256 0a3e60722bc517d83bba07dbd0595fe9c87675669546413607007e410c681cb9
MD5 a702f28d81c048ede19eae6a4345cb92
BLAKE2b-256 037c808e45fc90ba9cc97a0eebe1f456543230b178bf35b4f2109aed65db9066

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for newb-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a7ac1ed899ef65c577a9c1019ddfaf6f94073f3cdda56df403bb4a90303fe06f
MD5 f2b80ab0883b6d7432faaadb869e8967
BLAKE2b-256 ab6b2d03e4d2f451ec2fa5dca72d300b36e29b10c6a3c26f12882ec0a2b30a4f

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