Code Mode Tutorial — AI skill for Claude Code
Comprehensive tutorial and demos for teaching UTCP Code Mode - Transform AI agents from tool callers into code executors.
How to install Code Mode Tutorial
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open johnlindquist/code-mode-tutorial and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Code Mode Tutorial does
Comprehensive tutorial and demos for teaching UTCP Code Mode - Transform AI agents from tool callers into code executors.
Alternatives in AI
- Pal Configuration Docs — for model and thinking mode options 11.3k ★
- Skill Seekers Roadmap — Transform Skill Seekers into the easiest way to create Claude AI skills from any knowledge source - documentat 11.1k ★
- Ars Disclosure — ARS academic-paper disclosure mode — venue-specific AI-usage statement 4.5k ★
README
Code Mode Demos and Teaching Guide
This directory contains comprehensive demos for teaching UTCP Code Mode.
Setup
- Ensure you're in the demos directory:
cd demos - The
.utcp_config.jsonconfigures available tools (OpenLibrary API)
Running Demos with Claude CLI
All demos should be run using Claude CLI in **print mode** with specific configurations:
# Basic template for running demos
claude --print \
--dangerously-skip-permissions \
--mcp-config '{"mcpServers":{"code-mode":{"command":"npx","args":["@utcp/code-mode-mcp"],"env":{"UTCP_CONFIG_FILE":"'"$(pwd)/.utcp_config.json"'"}}}}' \
"Your prompt here"
Demo Files
Basic Demos (Remote APIs)
- demo-1-basic.sh - Basic code execution without tools
- demo-2-discovery.sh - Discovering available tools
- demo-3-simple-call.sh - Single tool call execution
- demo-4-error-handling.sh - Error handling patterns
- demo-5-multi-chain.sh - Chaining multiple tool calls
- demo-6-comparison.sh - Traditional vs Code Mode comparison
Advanced Demos (Local Tools)
- demo-7-local-tools.sh - Using local Bun/TypeScript tools
- demo-8-data-pipeline.sh - Building data pipelines
- demo-9-file-processing.sh - File analysis and reporting
- demo-10-hybrid-tools.sh - Mixing local and remote tools
- demo-11-local-tool-orchestration.sh - Orchestration patterns
Run All Demos
./run-all-demos.sh
Key Concepts to Teach
1. Print Mode vs Interactive Mode
--printflag: Non-interactive, outputs response and exits (perfect for testing)- Without
--print: Interactive session (for conversations)
2. Permissions
--dangerously-skip-permissions: Required for automated testing in trusted environments- Without this flag: Claude will ask permission for each tool use
3. MCP Configuration
- MCP servers are configured via JSON
UTCP_CONFIG_FILEenvironment variable points to tool configurations- Multiple MCP servers ca
Related Skills
Framer Motion Skill
Framer Motion skill context for Claude Code and AI coding agents - design principles, patterns, and 101 workin
Shorts Kit
Make YouTube Shorts by talking to your AI agent. Stock-footage Shorts, demos from any website or repo, uploads
Langchain Langgraph Tutorial
Comprehensive tutorials for LangChain, LangGraph, and LangSmith using Groq LLM. Learn to build advanced AI sys
Learn R With AI
Learn R statistics for clinical research with AI assistance—interactive Quarto tutorial from zero programming
Infra AI Agent Tutorials
This repository provides a comprehensive tutorial for developing AI agents, covering the complete spectrum fro
How To Make AI Videos For Dropshipping
How to make AI videos for dropshipping: tutorial + 5 example videos. Product photo → 60 s TikTok/Reels ad with
Related Agents
Klein Tutor
TUTORIAL worker for Klein Auto Research — builds report/index.html, the self-contained seven-section teaching
Wp Tailwind
CSS-to-Tailwind demo conversion — converts standard HTML/CSS demos into Tailwind-native HTML
Solution Eng
Bridge product capabilities and customer needs with technical accuracy and deal momentum. Use for discovery, s