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.
  • Drag a file onto the terminal to drop its path into the prompt, however your terminal escapes it.
  • The banner shows the installed version.
  • 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.4

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.4
File Size Uploaded Provenance Actions
nightfall_cli-0.1.4.tar.gz 78.3 kB With provenance Details for nightfall_cli-0.1.4.tar.gz

Built distribution (wheel)

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

Total release size: 120.0 kB

Release files / nightfall_cli-0.1.4.tar.gz

Download URL nightfall_cli-0.1.4.tar.gz
Size 78.3 kB
Tags Source
SHA-256 checksum
How to use checksums
f7969bcfe9947e71c5ecba96a123d91756917136adce252e2e2306725bbc2f92
BLAKE2b-256 checksum
How to use checksums
8ff0d26045745646162626b5114bceb9f30d044a4ea7b52a3649b9fc76d77dc4
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.4-py3-none-any.whl

Download URL nightfall_cli-0.1.4-py3-none-any.whl
Size 41.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
69f1fb1c414ad22d3e1f602221e357ab3d9acffa1a978d8b317fecb8839b2e6b
BLAKE2b-256 checksum
How to use checksums
587f09137bc562fc4b34d9272aeaf5dda5c3b3a880e24e7754b61e081a1c60ff
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.4

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