Skip to main content

Lightweight agent loop and context manager (standalone)

Project description

nimbie

nimbie is a terminal-first coding assistant shell.

This repository now contains two main parts:

  • nimbie (root package): REPL/UI, command tools, shell execution flow, session UX
  • oturn (sub-package): standalone async orchestration/runtime core for agent turns

Repository Layout

  • src/nimbie: CLI app and terminal UI
  • oturn/src/oturn: reusable orchestration package
  • chron: chronml package used for message/config templating
  • flash: shell runtime bridge and executor components

Requirements

  • Python >=3.11
  • uv (recommended)

Install (Root CLI)

uv sync
uv pip install -e .

Run:

nimbie --help
uv run nimbie --help

Install (oturn only)

If you only want the orchestration package:

cd oturn
uv sync
uv pip install -e .

Build

Root package:

uv build

oturn package:

cd oturn
uv build

Config

The CLI loads config from (first match wins by runtime path logic):

  • ~/.nimbie/config.py
  • ~/.nimbie/config.json
  • ~/.openclaw/openclaw.json
  • .nimbie_config.py
  • .nimbie_config.json

Provider profiles may also opt into fake Claude Code request headers for Anthropic-compatible APIs:

CONFIG = {
    "models": {
        "providers": {
            "anthropic_like": {
                "api": "anthropic-messages",
                "baseUrl": "https://example.invalid/anthropic",
                "models": [{"id": "claude-test"}],
            }
        }
    },
    "auth": {
        "profiles": {
            "demo": {
                "provider": "anthropic_like",
                "apiKey": "sk-...",
                "apiKeyHeader": "authorization_bearer",
                "fakeClaudeCode": True,
            }
        }
    },
}

When enabled, nimbie adds Claude Code style headers such as x-app, User-Agent, and X-Claude-Code-Session-Id. You can override the generated values with:

  • NIMBIE_CLAUDE_CODE_SESSION_ID
  • NIMBIE_CLAUDE_CODE_USER_AGENT
  • CLAUDE_CODE_CONTAINER_ID
  • CLAUDE_CODE_REMOTE_SESSION_ID
  • CLAUDE_AGENT_SDK_CLIENT_APP
  • CLAUDE_CODE_ADDITIONAL_PROTECTION

You can also force query params onto the provider base URL:

"extraQueryParams": {
    "beta": "true"
}

This is merged onto api_base before the LiteLLM request is sent.

Debug Environment Variables

For shell-tool debugging, nimbie also reads these environment variables:

  • NIMBIE_SHELL_DEBUG=1 Emit lifecycle/debug lines for execute_shell_command.
  • NIMBIE_SHELL_STREAM_QUEUE_MAX=1024 Override the max in-memory streamed shell event queue size.
  • NIMBIE_SHELL_DEBUG_EVENT_SAMPLE_EVERY=1000 When debug is enabled, print a sample log every N streamed events/drops.
  • NIMBIE_SHELL_THREAD_JOIN_MS=50 Override the polling/join interval used while waiting for streamed shell execution.

Example:

NIMBIE_SHELL_DEBUG=1 \
NIMBIE_SHELL_STREAM_QUEUE_MAX=256 \
NIMBIE_SHELL_DEBUG_EVENT_SAMPLE_EVERY=200 \
nimbie --ui-version v2 --debug-tool-calls --debug-loop

Session and History

  • Session artifacts are stored under .nimbie/ in the workspace/global locations used by CLI.
  • The UI supports continue/list/export workflows via CLI flags and REPL commands.

Notes

  • Flash runtime is expected for shell parsing/execution flow.
  • oturn does not use global auto tool registry; tools are injected explicitly at runtime.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nimbie_shell-0.0.3.dev25.tar.gz (144.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nimbie_shell-0.0.3.dev25-py3-none-any.whl (172.4 kB view details)

Uploaded Python 3

File details

Details for the file nimbie_shell-0.0.3.dev25.tar.gz.

File metadata

  • Download URL: nimbie_shell-0.0.3.dev25.tar.gz
  • Upload date:
  • Size: 144.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for nimbie_shell-0.0.3.dev25.tar.gz
Algorithm Hash digest
SHA256 f464bce0f486033872366a974d245658e33865030780643d022f29d2525dd13e
MD5 8e6d20d9212e95b25d3353d851a76c56
BLAKE2b-256 869b0d7b2efcc6eb710f51573ff2b44ff38d1f9d3f973e4112601bdaaf402e09

See more details on using hashes here.

Provenance

The following attestation bundles were made for nimbie_shell-0.0.3.dev25.tar.gz:

Publisher: publish-nimbie-shell.yml on draplater/nimbie

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nimbie_shell-0.0.3.dev25-py3-none-any.whl.

File metadata

File hashes

Hashes for nimbie_shell-0.0.3.dev25-py3-none-any.whl
Algorithm Hash digest
SHA256 5772dc9a44eb2604829c4a1e70c0135b6268a19af92e99600d2451d2f8e08dbe
MD5 490779a7256171f6bccd9f4f08632cf8
BLAKE2b-256 67af0b98490c992c236086d4af8192d4ec109063e1fcbff4456c16dd22a16b48

See more details on using hashes here.

Provenance

The following attestation bundles were made for nimbie_shell-0.0.3.dev25-py3-none-any.whl:

Publisher: publish-nimbie-shell.yml on draplater/nimbie

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page