🦆 Quack Norris - the code savy star 🌟
The harness optimized for SLMs
Quack Norris is a compact agent core optimized for small language models (SLMs). It can be integrated as an Agent Client Protocol (ACP) agent into other agents or UIs or used for custom code as a Python SDK.
🤖 ACP Agent
Quack Norris works with any ACP-compatible client. To use it, install Quack Norris as a command-line tool:
uv tool install quack-norris
# Alternative from source for development
cd quack-norris
uv tool install . --force --reinstall --editable
Create your LLM configuration as described in LLM configuration, then configure your ACP client (e.g. zed) to start:
quack-norris acp [--config FILE]
🧩 Python SDK
Add Quack Norris as an application dependency:
uv add quack-norris
The async agent(...) function is stateless. Your application selects the model and provides exact tool list, history, callbacks, context policy, and optional skill metadata.
from pathlib import Path
from quack_norris.core import LLM, TextOutput, agent
from quack_norris.core.llm import UserMessage
from quack_norris.skills_and_agents import discover_skill_info
from quack_norris.tools import make_native_tools
# Load the configuration (described below)
LLM.setup()
# Implement your own approval logic
async def approve(_call):
return False # deny everything
# Stream outputs or ignore them, your choice
async def handle_output(item):
if isinstance(item, TextOutput):
print(item.text, end="", flush=True)
# Run the agent with tools and skills and await its final response
workspace = Path.cwd()
result = await agent(
model=LLM.default_model() or "ollama/qwen3:14b",
system_prompt="You are a concise coding agent.",
tools=make_native_tools(workspace, skills=True),
chat_history=[UserMessage(content="Review this change")],
on_permission_request=approve,
on_output=handle_output,
context=None,
skills=discover_skill_info(workspace),
)
⚙️ LLM Configuration
Configuration is loaded from ~/.config/quack-norris/config.yaml, a project-local config.yaml/llms.yaml, or a file passed with --config in ACP mode.
defaults:
model: ollama/qwen3:14b
llms:
- group: ollama
provider: OpenAI
api_endpoint: http://localhost:11434/v1
api_key: ollama
context_window: 32768
Supported providers include OpenAI-compatible endpoints, Ollama, Azure OpenAI, AWS Bedrock, and GitHub Copilot. Static model lists can be configured with models:; dynamic OpenAI-compatible and authenticated Copilot providers are discovered through their /models endpoints.
🛠️ Tools
Quack norris comes with a set of built-in tools to make your life easier. With ACP the tools are used if the client advertises the required capabilities, with the SDK you have control and can add, remove or replace tools as you like.
| Tool | Purpose |
|---|---|
file_view |
Read a file or list a directory |
file_write |
Create or write a text file |
file_str_replace |
Replace one exact text occurrence |
file_move |
Move a file or directory |
file_delete |
Delete a file or directory |
pwsh / bash |
Run a platform-appropriate shell command |
check_tool |
Poll a deferred operation |
await_tool |
Wait for a deferred operation |
kill_tool |
Cancel a deferred operation |
use_skill |
Load full skill instructions by name |
🔍 Diving Deeper
- Documentation
- Development commands:
uv run python -m pytest uv run ruff check . uv run ty check quack_norris
⚖️ License
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file quack_norris-4.0.2.tar.gz.
File metadata
- Download URL: quack_norris-4.0.2.tar.gz
- Upload date:
- Size: 161.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4bc28171ffe621d5c8800dd940b2ffa9abdc1f46a45a6ae74e87dba96f5d561f
|
|
| MD5 |
1d91267884a017335094234b10512f07
|
|
| BLAKE2b-256 |
d99581752ae8b1f1f2e3671f034643eec15d6a9bbfb06b9b3b9c8457ff743023
|
Provenance
The following attestation bundles were made for quack_norris-4.0.2.tar.gz:
Publisher:
python-publish.yml on penguinmenac3/quack-norris
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
quack_norris-4.0.2.tar.gz -
Subject digest:
4bc28171ffe621d5c8800dd940b2ffa9abdc1f46a45a6ae74e87dba96f5d561f - Sigstore transparency entry: 2590781059
- Sigstore integration time:
-
Permalink:
penguinmenac3/quack-norris@9173f1eae1cfc299d7679f50ca8aacb89b787da5 -
Branch / Tag:
refs/tags/V4.0.2 - Owner: https://github.com/penguinmenac3
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@9173f1eae1cfc299d7679f50ca8aacb89b787da5 -
Trigger Event:
release
-
Statement type:
File details
Details for the file quack_norris-4.0.2-py3-none-any.whl.
File metadata
- Download URL: quack_norris-4.0.2-py3-none-any.whl
- Upload date:
- Size: 99.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
31f2b1c9e2598f91d080c8ef62bbf7e12d5430c68214b86e0b76f319cab98a95
|
|
| MD5 |
aa5f128134ae0314d348be46c34a3dfa
|
|
| BLAKE2b-256 |
48ad6d70a41920a74569e68fde950a77c21accfdcbf5d1bb0b15f0ea969b0c77
|
Provenance
The following attestation bundles were made for quack_norris-4.0.2-py3-none-any.whl:
Publisher:
python-publish.yml on penguinmenac3/quack-norris
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
quack_norris-4.0.2-py3-none-any.whl -
Subject digest:
31f2b1c9e2598f91d080c8ef62bbf7e12d5430c68214b86e0b76f319cab98a95 - Sigstore transparency entry: 2590781265
- Sigstore integration time:
-
Permalink:
penguinmenac3/quack-norris@9173f1eae1cfc299d7679f50ca8aacb89b787da5 -
Branch / Tag:
refs/tags/V4.0.2 - Owner: https://github.com/penguinmenac3
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@9173f1eae1cfc299d7679f50ca8aacb89b787da5 -
Trigger Event:
release
-
Statement type: