Skip to main content

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/skills directories.
  • Prompt autocomplete: / completes commands, /skill: completes skills, and @ completes paths.
  • Subagents for exploring a codebase in a separate context window.
  • Todo tracking for tasks with multiple steps.
  • Saved chat sessions, with /sessions to reopen them and /rewind to go back in the conversation.
  • Automatic context compaction, plus /compact to 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.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nightfall-cli 0.1.3
File Size Uploaded Provenance Actions
nightfall_cli-0.1.3.tar.gz 75.1 kB With provenance Details for nightfall_cli-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nightfall-cli 0.1.3
File Interpreter ABI Platform Actions
nightfall_cli-0.1.3-py3-none-any.whl Python 3 none any Details for nightfall_cli-0.1.3-py3-none-any.whl

Total release size: 113.9 kB

Release files / nightfall_cli-0.1.3.tar.gz

Download URL nightfall_cli-0.1.3.tar.gz
Size 75.1 kB
Tags Source
SHA-256 checksum
How to use checksums
19746fbf6423d2a2f3ae8372247421d41c6bbeae21e2212ecb4e7df410905067
BLAKE2b-256 checksum
How to use checksums
4facb2c383d27fac8922276f124d7c88eb7eb0f4aacac8567932a92734d7b9c9
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 log

Release files / nightfall_cli-0.1.3-py3-none-any.whl

Download URL nightfall_cli-0.1.3-py3-none-any.whl
Size 38.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5763cc520d757d2b3853083ae78510a36eb822686514fea7ea468c8bea4c8c77
BLAKE2b-256 checksum
How to use checksums
6ebdda40a6f08b2297b0c30f57d305fcb04d4df9d0145e80c745a560f23b96e2
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 log

Security for nightfall-cli 0.1.3

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.

Select from 2 files

Attestation for nightfall_cli-0.1.3.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 log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page