Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Claude Code (CLI)

What is Claude Code?

Claude Code is an agentic coding tool that runs in your terminal (and can also integrate with IDEs). It can read your repo, propose edits, run commands/tests, and help with git workflows using natural language.

Quick start

Open a terminal in your repo

Start Claude Code

Initialize project guidance

Run /init

Use /init to generate or set up a CLAUDE.md guide for the project.

Ask for a task in plain English

Examples

  • “Explain the folder structure and where the entry point is.”
  • “Add tests for X and run them.”
  • “Refactor this module without changing behavior.”

Review and approve actions

Claude Code is permission-based and typically read-only by default until you approve edits/commands.

Core features

CLAUDE.md project instructions (and memory)

Use CLAUDE.md to store:

  • Project rules (coding style, architecture constraints, “don’t touch these folders”)
  • Preferred workflows (test commands, lint rules)
  • Recurring context (API base URLs, feature flags)

Claude Code also supports memory across sessions. Keeping instructions organized (headings + bullet points) and updated helps Claude stay consistent.

Useful command

  • /memory — edit the relevant memory / CLAUDE.md files

Context (how Claude “sees” your codebase)

  • Claude Code can inspect your repo as needed during a session (you don’t always have to manually paste files).
  • In IDE workflows (e.g., VS Code integration), you can mention files/line ranges and review plans before accepting edits.

Tools, permissions, and safety

Claude Code is designed to be transparent and permission-controlled:

  • Read-only by default
  • Requests explicit approval when it needs to edit files or run commands

Useful commands

  • /permissions — view/update permissions
  • /sandbox — enable a sandboxed bash tool with filesystem/network isolation (fewer prompts, safer boundaries)
  • /security-review — security review of pending changes on the current branch

Planning and model selection

Claude Code supports model selection, including an opusplan alias that uses:

  • Opus for planning/architecture decisions
  • Sonnet for execution/code generation

Useful command

  • /model — select/change model

Slash commands (built-in and custom)

Claude Code has interactive slash commands for common actions.

Useful command

  • /help — list available commands

It also supports custom slash commands as Markdown files (project-specific or personal), including namespacing by folders.

MCP servers (tool and data integrations)

Claude Code can connect to external tools and data sources via Model Context Protocol (MCP). MCP servers can give Claude access to your tools, databases, and APIs.

Useful command

  • /mcp — manage MCP server connections and OAuth authentication

Subagents (specialized helpers)

Subagents are specialized assistants you can invoke for particular tasks, with:

  • Custom prompts
  • Tool configuration
  • Separate context windows (helps keep focus and reduce clutter)

GitHub workflows

Claude Code includes workflows aimed at PRs and reviews, including GitHub app setup and viewing PR comments.

Command cheat sheet

Getting started and session control

  • /help — usage help and command discovery
  • /init — initialize project with a CLAUDE.md guide
  • /exit — exit the REPL
  • /resume [session] — resume a conversation by ID/name
  • /rename <name> — rename current session
  • /export [filename] — export conversation to file/clipboard

Project guidance and memory

  • /memory — edit memory / CLAUDE.md files
  • /todos — list current TODO items

Review and change management

  • /review — request a code review
  • /rewind — rewind the conversation and/or code (checkpointing)
  • /security-review — security review of pending changes

Permissions, safety, and configuration

  • /permissions — view/update permissions
  • /sandbox — enable sandboxed bash tool
  • /doctor — checks installation health
  • /status — open settings/status interface
  • /privacy-settings — view/update privacy settings

Models and output

  • /model — select/change model
  • /output-style [style] — set output style

Integrations

  • /mcp — manage MCP connections
  • /ide — manage IDE integrations and status
  • /install-github-app — set up Claude GitHub Actions for a repo
  • /pr-comments — view pull request comments

Misc

  • /stats — usage and session history visualization
  • /release-notes — view release notes
  • /vim — vim mode

CLAUDE.md starter template

Project overview

  • What this repo does in 2–4 bullets

How to run

  • Install:
  • Dev server:
  • Tests:
  • Lint/format:

Coding guidelines

  • Style rules
  • Architectural constraints
  • What not to change

Common tasks

  • How to add a feature
  • How to add a test
  • How to cut a release

Practical tips

  • If Claude feels slow or you’re working in a huge repo, use context-reduction workflows (for example, compacting context).
  • Use /help early and often to discover what’s available in your version.

About

Simplest of claude code things

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors