Nightfall CLI
A minimal coding agent harness in Python, built to show how the pieces of a coding agent fit together.
This is the Nightfall CLI repository, a small coding-agent harness built from scratch.
Getting started
Install the project with uv:
uv sync
Configure an OpenAI-compatible endpoint and key in ~/.agents/env:
BASE_URL=https://your-endpoint/v1
API_KEY=your-api-key
MODEL=your-model-name
Start the agent from the repository root:
uv run nightfall
Use uv run nightfall --resume to resume the latest saved session or
uv run nightfall --debug to display raw model responses. The sandbox backend
is selected automatically for the host operating system.
Features
- Interactive terminal chat
- Tools for running shell commands, reading and writing files, and making targeted edits.
- Configurable model and OpenAI-compatible API endpoint.
- Tool permissions and shell sandboxing on macOS, Linux, and Windows
- Skills loaded from project and user
.agents/skillsdirectories. - Subagents for exploring a codebase in a separate context window.
- Todo tracking for tasks with multiple steps.
- Saved chat sessions, with
/sessionsto reopen them and/rewindto go back in the conversation. - Automatic context compaction, plus
/compactto trigger it manually. - Git branch context and reminders when files change between turns.
- Optional OpenTelemetry traces and metrics (see below).
Telemetry
Tracing is off unless an exporter is configured, so the default install does not pay for it. Install the extra and point it at a collector:
uv sync --extra otel
export OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318 # base URL, no /v1/traces
uv run nightfall
A session then reports a span per turn, one per model call and one per tool
call, plus counters for turns, tool calls, errors and tokens (input, output,
reasoning and cached). NIGHTFALL_TELEMETRY=console prints the spans to the
terminal instead of shipping them, which is the quickest way to see what is
being recorded.
Only names, counts and sizes are ever recorded - never prompts, replies, tool arguments, tool output or file contents. Prompts, file contents and tool output stay in the transcript; telemetry reports how long the session was and what it touched.
The standard OTEL_* variables work as they do everywhere else
(OTEL_SERVICE_NAME, OTEL_EXPORTER_OTLP_HEADERS, and the rest). The
exporter is given five seconds to hand over a batch before the CLI exits, so
an unreachable collector costs a warning rather than a hang.
Metadata
Release files for nightfall-cli 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nightfall_cli-0.1.2.tar.gz | 69.8 kB | With provenance | Details for nightfall_cli-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nightfall_cli-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for nightfall_cli-0.1.2-py3-none-any.whl |
Total release size: 104.4 kB
Release files / nightfall_cli-0.1.2.tar.gz
| Download URL | nightfall_cli-0.1.2.tar.gz |
|---|---|
| Size | 69.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8ecafaef66bdfd222c7df428ddc38559e39013fe00c0c347c0bbfdf5df154138
|
|
BLAKE2b-256 checksum How to use checksums |
1c506e9c05dc431ad70346c21e17914de1f216f01ca357b6a162077b96a22cd5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 27, 2026.
Transparency logRelease files / nightfall_cli-0.1.2-py3-none-any.whl
| Download URL | nightfall_cli-0.1.2-py3-none-any.whl |
|---|---|
| Size | 34.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
95275cdf0bfcb1bfc9372c904e60033fd16fb5d9d083c1a39c037c40035bf84d
|
|
BLAKE2b-256 checksum How to use checksums |
5b11412201ef77892a6270218a0cf7fe16fe6a6b7220c8f6360d131eb7b17e20
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 27, 2026.
Transparency logSecurity for nightfall-cli 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for nightfall_cli-0.1.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 27, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.