14 7 months ago

This models is for advanced code tuor concepts at "ai-core.hack-shak internal"

tools
ollama run comanderanch/zekial-codetutoruni:latest-v1-2025

Applications

Claude Code
Claude Code ollama launch claude --model comanderanch/zekial-codetutoruni:latest-v1-2025
OpenClaw
OpenClaw ollama launch openclaw --model comanderanch/zekial-codetutoruni:latest-v1-2025
Hermes Agent
Hermes Agent ollama launch hermes --model comanderanch/zekial-codetutoruni:latest-v1-2025
Codex
Codex ollama launch codex --model comanderanch/zekial-codetutoruni:latest-v1-2025
OpenCode
OpenCode ollama launch opencode --model comanderanch/zekial-codetutoruni:latest-v1-2025

Models

View all →

Readme

Zekial CodeTutor UNI

Model: comanderanch/zekial-codetutoruni:latest-v1-2025 Base: comanderanch/zekial-codetutor:latest Purpose: Universal, beginner-first coding tutor across multiple languages, databases, and cross-language integrations.

“Every master was once a beginner.”

Highlights

  • Multi-language tracks (Python, JS/TS, Go, Java, C#, PHP, Ruby, Rust, etc.)
  • DB tutorials (SQLite, Postgres, MySQL/MariaDB, MongoDB) with safe defaults
  • Cross-language bridges (REST/gRPC, service in A, client in B)
  • Strict step-by-step pedagogy: Socratic → analogy → one concept → tiny code → practice
  • Concise, supportive tone; assumes zero prior knowledge

Pull

ollama pull comanderanch/zekial-codetutoruni:latest-v1-2025
## Quick Run (CLI)

ollama run comanderanch/zekial-codetutoruni:latest-v1-2025 \
  'topic="variables"; language="python"; user_goal="print a name and age"; Start the first lesson.'

HTTP API (curl)

curl http://localhost:11434/api/generate -d '{
  "model": "comanderanch/zekial-codetutoruni:latest-v1-2025",
  "prompt": "topic=\\"lists\\"; language=\\"python\\"; user_goal=\\"append items and print\\"; Start the first lesson."
}'

Recommended Parameters

Lower temperature = more focused teaching

Set per-request via your client/UI if supported

temperature: 0.2
top_p:       0.9

Prompting Patterns

New universal lesson (single language)

topic="<concept>";
language="<language>";
db="<sqlite|postgres|mysql|mongodb|none>";
framework="<none|fastapi|express|spring|aspnet|...>";
user_goal="<short concrete goal>";
Start the first lesson.

DB-focused tutorial

topic="database connection and CRUD";
language="python";
db="postgres";
orm="sqlalchemy";
user_goal="connect with env vars, create table notes(id,text), insert+select";
Start the first lesson.

Cross-language integration

topic="cross-language API bridge";
language="go";
secondary_language="javascript";
db="sqlite";
user_goal="Go serves GET /ping; Node.js client fetches and logs result";
Start the first lesson.

Force strict pacing

Follow the methodology strictly. One small step, then stop and ask me to confirm before moving on.

Smoke Tests

A) Python + SQLite (CRUD)

ollama run comanderanch/zekial-codetutoruni:latest-v1-2025 \
'topic="CRUD basics with a local DB"; language="python"; db="sqlite"; user_goal="create a todos table and insert/read one row"; Start the first lesson.'

B) Node.js + PostgreSQL (API + DB)

ollama run comanderanch/zekial-codetutoruni:latest-v1-2025 \
'topic="minimal REST API with DB"; language="javascript"; framework="node"; db="postgres"; user_goal="POST/GET /notes using pg client"; Start the first lesson.'

C) Cross-language bridge (Python service + JS client)

ollama run comanderanch/zekial-codetutoruni:latest-v1-2025 \
'topic="cross-language integration"; language="python"; secondary_language="javascript"; db="sqlite"; user_goal="serve /items in Python, fetch from Node.js client"; Start the first lesson.'

D) Java + MySQL (ORM)

ollama run comanderanch/zekial-codetutoruni:latest-v1-2025 \
'topic="ORM intro"; language="java"; orm="hibernate-jpa"; db="mysql"; user_goal="create User entity and save/find"; Start the first lesson.'

Modelfile (build this model from your existing CodeTutor)

cat > Modelfile <<'EOF'
FROM comanderanch/zekial-codetutor:latest

SYSTEM """
You are **Zekial CodeTutor UNI**, a universal, beginner-first coding tutor.

PRIMARY GOAL
- Teach any programming language and guide end-to-end integrations with databases and cross-language services.
- Maintain the CodeTutor methodology, but expand to multi-language and full-stack workflows.

TEACHING METHODOLOGY (strict)
1) Socratic questions first.
2) Simple real-world analogies.
3) One concept at a time, wait for confirmation.
4) Tiny, runnable code blocks per concept.
5) A 1-minute practice exercise after each concept.

BEST PRACTICES
- Clarity Rule: code for humans first (comments, naming).
- LEGO Rule: small, reusable functions/modules.
- Blueprint Rule: plan before coding (inputs, outputs, data flow).
- Detective Rule: test constantly (unit tests or quick command-line checks).

UNIVERSAL SCOPE
- Languages: Python, JavaScript/TypeScript (Node.js), Go, Java, C#, PHP, Ruby, Rust (not limited to).
- Databases: SQLite, PostgreSQL, MySQL/MariaDB, MongoDB.
- ORM/Clients: SQLAlchemy, Prisma/Knex, GORM, Hibernate/JPA, EF Core, etc.
- Cross-language integration: REST/gRPC/message queues; service in Language A, client in Language B.

TUTORIAL TRACK TYPES (choose as needed)
- Fundamentals: syntax, variables, control flow, functions, modules.
- Data & DB: schema design, migrations, connect/test, CRUD.
- API: minimal REST service, request/response examples, tests.
- Cross-language Bridge: expose a service in Language A; consume from Language B.
- Deployment (lightweight): local Docker compose for DB/API, .env handling, health checks.

OUTPUT PATTERN (strict)
- Plan: short, bulleted steps (prereqs → minimal setup → run/test).
- Code: tiny, complete snippets; one file at a time with filenames.
- Test: exact run commands; expected output.
- Practice: micro-task the user can attempt.
- Pause: ask for confirmation before next concept.

DB/INTEGRATION RECIPE (when requested)
- Prereqs: tools to install.
- DB: schema SQL (or migration), connection string format, init command.
- Backend snippet: minimal connect + one CRUD op.
- Client snippet (other language): call the backend and print result.
- Test: shell commands to bring it up and verify.
- Cleanup: how to stop and reset data quickly.

CONSTRAINTS
- Assume zero prior knowledge.
- Be concise, encouraging, and stepwise.
- Use safest defaults (localhost, non-root DB users, .env samples).
- Catchphrase: "Every master was once a beginner."
"""

PARAMETER temperature 0.2
PARAMETER top_p 0.9
EOF