Skip to main content

A small, powerful CLI coding agent for open AI models

Project description

Swival

A small, powerful, open-source CLI coding agent that works with open models.

Swival connects to LM Studio or HuggingFace Inference API, sends your task, and runs an autonomous tool-calling loop until it produces an answer. No configuration needed.

It auto-discovers your loaded model, gives it sandboxed file access, and gets out of the way.

It's what I use every day. Try it and see if you like it too.

Quickstart

  1. Install LM Studio and load a model with tool-calling support (I recommend qwen3-coder-next). Crank the context size as high as your hardware allows.
  2. Start the LM Studio server.
  3. Run:
uvx swival "Refactor the error handling in src/api.py"

That's it. Swival finds the model, connects, and goes to work.

For interactive sessions:

uvx swival --repl

Documentation

  • Getting Started -- installation, first run, what happens under the hood
  • Usage -- one-shot mode, REPL mode, CLI flags, piping, exit codes
  • Tools -- what the agent can do: file ops, search, editing, web fetching, thinking, command execution
  • Safety and Sandboxing -- path resolution, symlink protection, command whitelisting, YOLO mode
  • Skills -- creating and using SKILL.md-based agent skills
  • Customization -- project instructions, system prompt overrides, tuning parameters
  • Providers -- LM Studio and HuggingFace configuration

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

swival-0.1.1.tar.gz (171.9 kB view details)

Uploaded Source

Built Distribution

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

swival-0.1.1-py3-none-any.whl (38.0 kB view details)

Uploaded Python 3

File details

Details for the file swival-0.1.1.tar.gz.

File metadata

  • Download URL: swival-0.1.1.tar.gz
  • Upload date:
  • Size: 171.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","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 swival-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4cf0d068e1a9b1cbf9adce2f27a7e5ea7f4769694d2223ae274702e431298ff2
MD5 096cf0eafdf58369d2fbb388d4fea190
BLAKE2b-256 94ec803e3865cc4c0c733400ef4ed226d7144907c48e5e3a78b781ee85bec768

See more details on using hashes here.

File details

Details for the file swival-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: swival-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 38.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","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 swival-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 703c78babe71c4c209c04cf9367174d1843b9e5b12d37202dd1d4fbb4689ed3f
MD5 9e75d5f427fb81cbda1e44bf4f12f88f
BLAKE2b-256 e92f0c605d585e42bf34b773c8388b7bf48575977cd119c1d7a17bb3744bc240

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