Copied to Clipboard
Part 6 — Slash commands map
OpenClaude ships 69+ built-in slash commands. Type / for autocomplete. Full reference: slash commands docs.
Essential groups:
Plugins and skills can register additional slash commands.
Part 7 — Project instructions (/init)
Initialize harness instructions for the repo:
/init
Creates project documentation the agent reads on demand — same harness primitive as OpenCode’s AGENTS.md and our Harness Engineering guide. Commit the generated file to git.
Also useful: /wiki init for an OpenClaude project wiki, /memory for persistent user-level memory, /dream For session consolidation.
Part 8 — Permissions and safety
Tool use is permission-gated. First use of sensitive operations prompts approval; persist rules with:
/permissions
This separates model intent from runtime allowance — core harness engineering. Tune allow/deny rules per project.
Part 9 — MCP servers
Attach external tools via Model Context Protocol:
/mcp
Enable/disable servers by name. Same MCP standard as our MCP Visual Guide and MiniCPM-V MCP Server.
Combine with /lsp for language-server code intelligence in the loop.
Part 10 — Skills and custom agents
Skills — packaged workflows with front-matter; list with /skills. Example: examples/skill.example.md.
---
name: repo-smoke-test
description: Run lint and tests before claiming a task is done
maxSteps: 12
---
When finishing a coding task, always run the project's test and lint commands.
Report stdout. Do not declare success until both pass.
Agents — configure subagents with /agents. Custom agents support maxSteps to cap tool loops:
---
name: bounded-researcher
maxSteps: 8
---
Built-in routable agents include Explore , Plan , and verification (read-only auditor before completion).
Want to orchestrate multiple specialized AI agents? Explore TechLatest’s CrewAI Studio for collaborative software engineering workflows and production-ready multi-agent systems
Techlatest.net - AI Agents using CrewAI Studio & Jupyter with GPU support
Part 11 — Review workflow
Before committing:
/diff # uncommitted + per-turn diffs
/rewind # restore code and/or conversation
/cost # session spend
/security-review # branch security pass
Enable /auto-fix To run lint/test after AI edits. Use /plan for plan mode (similar in spirit to OpenCode's Plan agent).
Part 12 — Background sessions
Long tasks without blocking your terminal:
openclaude --bg "fix failing tests"
openclaude --bg --name auth-refactor "refactor auth middleware"
openclaude ps
openclaude logs auth-refactor -f
openclaude kill auth-refactor
Background jobs are local child processes — not network daemons. Logs live under ~/.openclaude/bg-sessions/ (or OPENCLAUDE_CONFIG_DIR).
Part 13 — Resume and fork conversations
openclaude --continue
openclaude --resume <session-id>
openclaude --continue --fork-session
Fork branches' conversation history to a new session ID — it does not create a git worktree or filesystem copy.
Inside a session: /branch , /resume , /export.
Part 14 — Agent model routing
Route different agents to different models via ~/.openclaude.json:
{"agentModels":{"mini":{"model":"gpt-5-mini"}},"agentRouting":{"Explore":"mini","verification":"mini","default":"glm-default"}}
Full example: examples/agent-routing.example.json.
{"agentModels":{"mini":{"model":"gpt-5-mini"},"glm-default":{"model":"glm-5.2","base_url":"https://api.z.ai/api/coding/paas/v4","api_key":"sk-your-key"}},"agentRouting":{"Explore":"mini","Plan":"glm-default","verification":"mini","default":"glm-default"}}
Note: /provider Sets the global session provider. agentModels + agentRouting Override the subagent without changing the parent session.
Part 15 — VS Code extension
OpenClaude bundles a VS Code extension (vscode-extension/openclaude-vscode) for launch integration and theme support. Use /ide inside a session to manage IDE integrations.
Terminal remains the power surface ; the extension bridges editor ↔ agent.
Part 16 — OpenClaude vs OpenCode vs Claude Code
See OpenCode masterclass for the Anomaly stack. Many teams pick OpenClaude when they need maximum provider flexibility in one terminal workflow.
Part 17 — Hands-on checklist
npm install -g @gitlawb/openclaude@latest
cd your-repo && openclaude
/provider
/init && git add -A && git commit -m "Add OpenClaude project instructions"
> implement feature X and run tests
/diff
/permissions # tune rules
/mcp # optional servers
Summary
OpenClaude is GitLawb’s provider-agnostic coding harness : one terminal, saved provider profiles, permission-gated tools, 69+ slash commands, MCP/skills/agents, and review primitives (/diff, /rewind) that keep you in control.
Install once, run/provider, brief it like a teammate, review with/diff, and route subagents to cheaper models when you scale up.
The model changes. The harness — permissions, commands, profiles, review — is what makes it shippable.
Thank you so much for reading
Like | Follow | Subscribe to the newsletter.
Catch us on
Website: https://www.techlatest.net/
Newsletter: https://substack.com/@parvezmohammed
Twitter: https://twitter.com/TechlatestNet
LinkedIn: https://www.linkedin.com/in/techlatest-net/
YouTube:https://www.youtube.com/@techlatest_net/
Blogs: https://medium.com/@techlatest.net
Reddit Community: https://www.reddit.com/user/techlatest_net/