After installing dev dependencies:
python -m pytestThe test suite covers:
- agent loop
- CLI parsing and workflows
- package metadata and CLI entry point
- safety policy
- filesystem and shell tools
- RAG chunking and indexing
- context injection
- plan execution
- memory
- reviewer
- eval harness
If pytest is not installed, run these smoke checks:
PYTHONPATH=src python -m compileall src tests
PYTHONPATH=src python -m pyagentcli --help
PYTHONPATH=src python -m pyagentcli --workspace examples/demo_workspace --evalAfter editable install, run the console script smoke checks:
pyagent --help
pyagent --workspace examples/demo_workspace --evalExpected eval output:
Eval summary: 4/4 passed (100%); 0 failed.
The scripted local demo runs the same core checks:
./scripts/demo.shThe script uses PYTHON_BIN if provided:
PYTHON_BIN=/path/to/python ./scripts/demo.shModel-backed behavior requires API configuration:
export OPENAI_API_KEY="..."
export OPENAI_BASE_URL="https://api.openai.com/v1"
export PYAGENT_MODEL="gpt-4.1-mini"Then run:
PYTHONPATH=src python -m pyagentcli --check-modelThis verifies that the configured model can return tool calls.
Browser console-log and screenshot success paths require optional Playwright support:
python -m pip install -e ".[browser]"
python -m playwright install chromium
.venv/bin/python -m pytest tests/test_browser_playwright_optional.pyThe optional browser tests skip when Playwright or Chromium is unavailable, so the core suite stays dependency-light.