Skip to main content

nlsql-coder

nlsql-coder is NLSQL's coding agent, a privacy & security focused, tool-driven, workspace-aware AI system designed to help with both personal and client-based development tasks.

Features

  • User-friendly command line interface.
  • Wide array of LLM/provider support acorss many cloud ecosystems, including locally hosted model support (local support not yet implemented).
  • Primary privacy & security focus.
  • Full MCP support (stdio, sse and streamable-http supported).

How it Works

The agent operates using a ReAct-style loop. A user submits a prompt, and the agent processes it by reasoning about the task, performing actions using available tools, and evaluating the results.

If the outcome is insufficient or incomplete, the agent continues this cycle, refining its approach and taking further actions until it can produce a final response.

Usage

To get started, you'll need an NLSQL API key, simply sign up to NLSQL to obtain your free API key.

You'll also need your own LLM instance from one of the following providers:

  • AWS Bedrock
  • Azure AI
  • Google Cloud (GCP)
  • AWS SageMaker (Not yet implemented)
  • Or select a locally hosted Hugging Face model. (Not yet implemented)

nlsql-coder is available for download via PyPI, follow the steps below to get it running on your system:

  1. run pip install nlsql-coder
  2. use the command nlsql-coder init to run from your CWD.

for other options or extended usage, see Arguments section below.

Arguments

Use the init command to start the application from the current working directory.

Short Long Description Defaults to
-w --workspace The root directory of the project you want to work on. .
-u --usage Displays usage data after each conversation turn (input & output tokens) False

Modes

The agent has three modes:

  • Plan mode
  • Code (manual) mode
  • Auto mode

Use Shift+Tab to switch between the modes.

Plan mode means the agent has read-only access and is configured to plan a task or project with the user. When a sufficent plan has been created the user can choose to proceed with the plan in either Auto or Manual mode, give feedback and amend the plan, or discard the plan.

Manual mode means the user will have to actively confirm tool calls.

Auto mode means only certain tool calls will need to be confirmed by the user (e.g. delete, git commands...)

Tools

By default the agent has access to several tools:

  • read_file
  • edit_file
  • write_file
  • delete (for files and directories in the CWD)
  • execute_bash_command (can execute bash command on an internally supplied whitelist only)
  • search_the_web (allows for both search engine results and URL content extraction)

The agent also has MCP support (add MCP servers via mcp.json)

Feedback and Issues

To provide feedback or report an issue contact us at https://nlsql.com/contacts or email info@nlsql.com

Please note: nlsql-coder is under active development

Download files

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

Source Distribution

nlsql_coder-0.1.8.tar.gz (61.1 kB view details)

Uploaded Source

Built Distribution

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

nlsql_coder-0.1.8-py3-none-any.whl (70.1 kB view details)

Uploaded Python 3

File details

Details for the file nlsql_coder-0.1.8.tar.gz.

File metadata

  • Download URL: nlsql_coder-0.1.8.tar.gz
  • Upload date:
  • Size: 61.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for nlsql_coder-0.1.8.tar.gz
Algorithm Hash digest
SHA256 46ac281a8a2844cb744043b1cd106cd5857c89d79bd2b84c94a2be06993d1dbc
MD5 0755473e307949c738342a8e8db79cfd
BLAKE2b-256 3344a825bc84368384e022aa5c47f57fe7679a360c513e2d3bf579c7b63587d3

See more details on using hashes here.

File details

Details for the file nlsql_coder-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: nlsql_coder-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 70.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for nlsql_coder-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 d656ea6221ab74367c89f6238f0d974dd007fae1bd56960b106f1fec3cbc5293
MD5 743c39106fe0a9f31358f205a4ee5c8e
BLAKE2b-256 7901da96d5b23654e9c2ba60621957f2737428e2e1d1da02ce68f2e9a8825af1

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.9

2 files

This release

0.1.8 This release

2 files

0.1.7

2 files

0.1.6

2 files

0.1.5

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

Supported by

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