Skip to content
프로젝트

소개

Frontier 임베디드 에이전트를 위한 SDK입니다.

개발 도구

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
+2
in 7 days
+136
in 15 days
+291
in 1 month
+369

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

nanocode

Site · Docs · Experiments · Cloudflare Demo · Vercel Demo

SDK for frontier embedded agents, in Rust. One runtime for the Codex and Claude harnesses, with their own prompts and tools, that runs in a terminal, a server, a Worker, a browser tab, or an app.

nc in a terminal: a question about this workspace, one Code Mode cell that reads it, and the answer after 10.5 seconds

  • Durable. Every model call and tool call is journaled, so a turn finishes after its process dies.
  • Code Mode. The model writes one program that calls every tool, and only its result enters the context.
  • Hands. No sandbox per session. A turn reaches a laptop, a server, or a browser tab only for the calls that need one.
  • Subagents. A cell spawns children, each a durable session of its own.
  • Any payer. A ChatGPT or Claude subscription, an API key, or Machine Payments from a Tempo account you sign in to with Tempo ID.

The CLI

curl -fsSL https://nanocode.xyz/install | sh
nc

nc shadows netcat. To keep netcat, install with curl -fsSL https://nanocode.xyz/install | NANOCODE_NC=0 sh (Nix: nanocode-no-nc) and run nanocode.

nc default saves the harness, model, thinking and tier every new session starts with: nc default claude opus high fast. nc default alone shows them and where they come from, and nc default reset clears them. --model, --harness, --thinking, --tier and NANOCODE_MODEL still win for one run.

In the terminal UI, /default saves the selected settings for future launches. /default show displays the saved settings.

Pair a hand

Start with two terminals on one machine. In the nanocode session, enter /hands listen 127.0.0.1:0 to open a listener on an available port.

In the other terminal, substitute the printed URL and token. --name sets the hand's name, and -C sets its starting directory.

NANOCODE_RUNNER_TOKEN='<printed-token>' nanocode hand '<printed-url>' --name dev -C "$PWD"

Use /hands to check the connection, then /hands select dev to run the session's exec cells on that hand. /hands select switches back to local execution.

The listener uses loopback. For a hand on another machine, use a wss:// endpoint through a TLS proxy. To pair a browser tab, start with nanocode --tab and open the printed link.

The SDK

[dependencies]
nanocode = { git = "https://github.com/nanocodexyz/nanocode" }

The same code runs in other languages:

Language Repository
TypeScript, as one WebAssembly module nanocode-ts
Swift, for macOS and iOS nanocode-swift
C, for a game engine or any other host libnanocode

The crate layout describes the workspace; git history records what each change established.

License

MIT or Apache-2.0.

관련 프로젝트 살펴보기

불러오는 중…