24 Downloads Updated yesterday
ollama run devshub/knack:4b-q4_k_m
Updated yesterday
yesterday
ae5424f67f79 · 2.7GB
Knack is the local decision model behind CodeSync. It answers quick yes/no, choice, and risk decisions on your own machine with no API key and low latency.
Install Ollama, then pull the tag that fits your use case:
ollama pull devshub/knack # v3 specialized (0.75B, 29 core command/turn ids, 816 MB)
ollama pull devshub/knack:v5 # v5 specialized (0.75B, 14 operational ids, 816 MB)
ollama pull devshub/knack:4b # 4B general decision model (any question + 10 Tier 2 ids, 2.7 GB)
Each command passes sample text as the last argument for Knack to judge. Nothing inside the quotes is executed.
devshub/knack:4b)# Ask any plain-English yes/no question
ollama run devshub/knack:4b \
--ask "Is the mentioned city in Europe?" \
"The server is in Paris."
# -> yes 87%
# Classify text into custom choices
ollama run devshub/knack:4b \
--ask "What kind of ticket is this?" \
--choice bug_fix --choice feature --choice docs \
"Crash on login when email has uppercase letters"
# -> bug_fix 86%
# Check whether an action involves spending money (built-in Tier 2 id)
ollama run devshub/knack:4b \
--ask ask.cost \
'Rent a B300 GPU on Vast.ai for $8/hr? Options: Rent, Cancel'
# -> yes 67%
devshub/knack)# Classify a user request
ollama run devshub/knack \
--ask task.intent \
--choice bug_fix --choice feature --choice refactor --choice api_schema --choice config_deploy \
--choice test --choice documentation --choice investigation --choice unknown \
"fix the failing login test"
# -> bug_fix 90%
# Check whether a command string starts a long-lived server (text is judged, not run)
ollama run devshub/knack --ask serves "npm run dev"
# -> yes 97%
# Score the risk level of a command string
ollama run devshub/knack \
--ask risk \
--level safe --level "needs care" --level destructive \
"git push --force origin main"
# -> destructive 96% 1.9 / 2
devshub/knack:v5)# Classify a tool or API error
ollama run devshub/knack:v5 \
--ask error.kind \
--choice api_rate_limit --choice api_overloaded --choice api_auth \
--choice tool_timeout --choice permission_denied --choice file_not_found \
--choice network_error --choice context_overflow --choice unknown \
'{"error_message":"429 Too Many Requests: rate limit exceeded"}'
# -> api_rate_limit 98%
# Check whether a file path is sensitive or critical
ollama run devshub/knack:v5 --ask file.critical ".env.production"
# -> yes 77%
# Check whether a status update still has unfinished work
ollama run devshub/knack:v5 \
--ask pending_work \
"Fixed the test and committed. Still need to update the migration script."
# -> yes 95%
curl http://localhost:11434/v1/systemone \
-H "Content-Type: application/json" \
-d '{
"model": "devshub/knack",
"state": "npm run dev",
"questions": {
"serves": {"type": "noul", "instructions": "serves"},
"long_running": {"type": "noul", "instructions": "long_running"}
}
}'
import ollama
response = ollama.systemone(
model="devshub/knack",
state="npm run dev",
questions={"serves": {"type": "noul", "instructions": "serves"}},
)
print(response.answers["serves"].noul) # 0.9701
| Tag | Size | Type | What it covers |
|---|---|---|---|
latest, v3, q8_0 |
816 MB | Specialized (0.75B, Q8_0) | 29 core shell-command and user-turn ids |
q4_k_m |
515 MB | Specialized (0.75B, Q4_K_M) | Same 29 v3 ids, smaller footprint |
v5 |
816 MB | Specialized (0.75B, Q8_0) | 14 v5 Tier 1 operational ids |
v5-q4_k_m |
515 MB | Specialized (0.75B, Q4_K_M) | Same 14 v5 Tier 1 ids, smaller footprint |
4b, 4b-q4_k_m |
2.7 GB | General (4B, Q4_K_M) | Any plain-English yes/no or choice question + 10 Tier 2 ids |
4b-q8_0 |
4.5 GB | General (4B, Q8_0) | Higher-precision quantization of the 4B general model |
Specialized tags (latest, v5) accept only their trained question ids and print the exact
expected flags if options do not match. Use devshub/knack:4b for any custom plain-English
question.
v3 (devshub/knack): risk, long_running, serves, activity, verifies,
mutates_repo, deploys, runtime_check, turn.chat_or_task, turn.actionable,
turn.question_shaped, turn.change_intent, turn.new_task, turn.resume, turn.mission,
turn.plan_authoring, turn.screencast, turn.demo, turn.skip_orientation, task.intent,
task.execution_strategy, route.mode, route.tier, route.thinking, route.risk,
browser, messaging, delivery.feature_task, delivery.slash_task.
v5 Tier 1 (devshub/knack:v5): pending_work, file.critical, qa.kind,
completion.intent, web.continuation, ask.redundant, stuck, quality,
graph.edge_intent, task.hard_work, provider.failure_kind, error.kind,
tool.activity_label, verification.
Tier 2 (devshub/knack:4b): ask.cost, ask.destructive, ask.external,
ask.out_of_scope, ask.security, loop, citation.relation, related,
delivery.feature_task, real_failure, plus any plain-English question.
clef:27b.curl -fsSL https://devshub.ai/cli/install.sh | bashBuilt by DevsHub.