Skip to main content

No Bullshit Claw — a 24/7 Signal-driven Swival agent daemon

Project description

NBClaw

No Bullshit Claw: a small daemon that puts a Swival agent n the other end of a Signal conversation.

You text it. It does the work and texts back. You can also tell it to do things on a schedule ("every weekday at 9, summarize the git log") and cancel those later.

Dependencies

  • Python 3.13+ and uv.

  • A running model. Anything Swival supports works; the quickest is to use LM Studio with a tool-calling model loaded.

  • signal-cli registered to a phone number and running as an HTTP daemon:

    signal-cli --account XXXXXXXXX daemon --http 127.0.0.1:3080
    

Quick start

cd nbclaw
uv sync

uv run nbclaw \
    --allow YOURPHONE \
    --model ornith-1.0-9b \
    --notify YOURPHONE

--allow is the number that's permitted to drive the agent (your phone). --notify is optional and just sends a "nbclaw is online" message on start.

Now message the signal-cli number from your phone:

you   :  list the python files in ~/src and count them
nbclaw:  There are 42 .py files under ~/src. ...

Authorization (read this)

By default the agent runs in autonomous mode: it can run shell commands and read or edit files anywhere the account it runs as can reach. The workspace is just where it starts, not a fence. But it means anyone on the allowlist effectively has a shell on this machine.

  • Always set --allow to the specific numbers you trust. With no allowlist set, every incoming message is ignored (fail closed).
  • --allow-all exists for testing only. Don't use it on a machine you care about.
  • --safe makes the agent read-only: no shell commands, no file edits. Good for a "just answer questions" bot.
  • In a group chat, authorization is checked against the sender, but the reply goes to the whole group. So one allowed member can make the bot post agent output to everyone in that group. Keep the allowlist to people you trust with that, or only message the bot in 1:1 chats / Note to Self.

Commands

Send these as Signal messages. Anything not starting with / goes to the agent.

Command What it does
/help List the commands.
/status Model, mode, uptime, number of crons.
/clear Forget this conversation's context.
/cron <plain English> Schedule a task, described naturally.
/cron list Show scheduled tasks.
/cron del <name> Cancel a scheduled task.
/cron run <name> Run a scheduled task right now.

Scheduling

Just say it after /cron in plain English. The model works out the timing and gives the task a short name:

/cron every weekday at 9am summarize my git log in ~/src/app
/cron remind me to stretch every 2 hours
/cron tomorrow at 8am say good morning

Both recurring schedules and one-time reminders ("in 10 minutes…", "tomorrow at 8am…") are understood; one-time jobs delete themselves after they fire.

Results are delivered to the conversation that created the cron, prefixed with its name. Crons run as independent one-shots, so they never pollute your chat's context.

Use /cron list to see names, then /cron del <name> to cancel.

If you'd rather be exact, the power-user form takes a literal schedule:

/cron add standup 0 9 * * 1-5 | summarize today's commits in ~/src/myrepo

where the schedule is a 5-field cron expression, @every 30m (30s/5m/2h/1d), or @hourly / @daily / @weekly / @monthly.

Configuration file

Flags cover the common cases. For anything else, point --config at a TOML file.

Top-level keys mirror the settings; a [swival] table is passed straight through to swival.Session, so the full agent is configurable.

# nbclaw.toml
signal_url = "http://127.0.0.1:3080"
allow = ["YOURPHONE"]
notify = "YOURPHONE"

provider = "lmstudio"
model = "ornith-1.0-9b"
# base_url = "http://127.0.0.1:1234"   # only if not the provider default
max_turns = 60

state_dir = "~/.nbclaw"

# MCP servers, in swival's format.
[mcp_servers.fetch]
command = "uvx"
args = ["mcp-server-fetch"]

# Anything here is forwarded verbatim to swival.Session.
[swival]
temperature = 0.2
reasoning_effort = "medium"

Run it:

uv run nbclaw --config nbclaw.toml

CLI flags override the file.

Running 24/7

The agent is meant to stay up.

On macOS, a launchd job keeps it alive across logouts and reboots. A template is in deploy/com.nbclaw.daemon.plist; edit the paths and numbers, then:

cp deploy/com.nbclaw.daemon.plist ~/Library/LaunchAgents/
launchctl load ~/Library/LaunchAgents/com.nbclaw.daemon.plist

On Linux, a user systemd unit does the same job; the plist documents the same command line.

State

Everything lives under state_dir (default ~/.nbclaw):

  • crons.json — scheduled tasks, written atomically.
  • workspace/ — the agent's working directory (its base_dir).

Environment variables

  • NBCLAW_LOG sets the log level (default INFO; try DEBUG).

But why this since there's already XYZ?

NBClaw uses Swival as a Python library, so the CLI isn't required. This lets it work well even with small, local models and short context windows. No large models needed.

More importantly, NBClaw is ridiculously lightweight and incredibly easy to install and use.

No bloat. It intentionally ships with a minimal set of tools, but it gets the job done. And if you need more, you can extend it with skills, MCP servers, and whatever else fits your workflow.

It may not be for you, but this is the minimal claw-style agent I always wanted.

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

nbclaw-0.1.2.tar.gz (27.0 kB view details)

Uploaded Source

Built Distribution

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

nbclaw-0.1.2-py3-none-any.whl (24.9 kB view details)

Uploaded Python 3

File details

Details for the file nbclaw-0.1.2.tar.gz.

File metadata

  • Download URL: nbclaw-0.1.2.tar.gz
  • Upload date:
  • Size: 27.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for nbclaw-0.1.2.tar.gz
Algorithm Hash digest
SHA256 cea9f7bab1568e65a9698fed518179d4b64156ca5c3238f5af045e0202e901bd
MD5 08cb9254650c8680524d4fe1b90e1202
BLAKE2b-256 5a835e076fbfc260876439ca00227a87372be5734ead74223f6f35c5b21f005f

See more details on using hashes here.

File details

Details for the file nbclaw-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: nbclaw-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 24.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for nbclaw-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ac992f34a83d0bb26432424741e28f1e14287efca5e11e5948d619cd9138c5c6
MD5 1360ba07022f56ce287f5cc7916b9543
BLAKE2b-256 ae7adba9820f2d7d2aff368e63ddae36fd65fa4680a33ad9bf2f9d89d19f4693

See more details on using hashes here.

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