NEEDLE is an open-source Rust-based agent orchestration harness and execution framework developed by Jed Arden. It provides structured execution loops, modular agent strands, and validation gates for running AI coding agents against codebases. At runtime, NEEDLE executes workflows through specialized sub-agents—such as WeaveAgent, ReflectAgent, and UnravelAgent—configured through a `.needle.yaml` specification. The orchestrator isolates test environments, dispatches tasks, and coordinates multi-step development actions while tracking execution lifecycle events. NEEDLE distinguishes itself from standard CLI chat wrappers by emphasizing strict quality gates and deep observability. It incorporates a unified definition-of-done system across pre-commit hooks, CI, and agent execution runs, complete with bypass tracking and OpenTelemetry (OTLP) resource reporting for host and process-level metrics. NEEDLE is published as an open-source project on GitHub under active development, written in Rust for minimal overhead in local and containerized CI environments.
Tags: agent harness, ai agent, cli, developer tools, OpenSource
.needle.yaml and hook scripts. - OTLP and JSONL telemetry — Streams process and host-level telemetry events to standard output, JSONL logs, or OTLP collectors. - Bypass tracking — Automatically records validation bypasses to .beads/bypasses.jsonl to maintain auditability of skipped checks. - Workspace and environment isolation — Pins workspace roots and isolates user home directories to prevent test pollution during agent operations.NEEDLE is suited for Rust developers, platform engineers, and teams building observable, automated coding harnesses that require strict validation gates. It is not intended for non-technical users seeking a simple conversational chatbot UI.
bash cargo install --git https://github.com/jedarden/NEEDLE.git.needle.yaml file in the root of your project to declare validation rules: yaml # .needle.yaml validation: fast_lane: "cargo check && cargo clippy" slow_lane: "cargo test" Ensure your LLM provider credentials (such as ANTHROPIC_API_KEY) are exported in your environment: bash export ANTHROPIC_API_KEY="your-api-key"bash needle run "Refactor the strand module to export ReflectAgent and verify fast lane gates"Part of CLI Coding Agents
Categories: AI Coding Agents, Code Assistants, Developer Tools