Skip to content

Commit fb61e6d

Browse files
Update Claude Code docs - 2025-09-17 | Updated: interactive-mode.md,memory.md
1 parent 99ccd3f commit fb61e6d

3 files changed

Lines changed: 55 additions & 9 deletions

File tree

docs/docs_manifest.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@
8787
"interactive-mode.md": {
8888
"original_url": "https://docs.claude.com/en/docs/claude-code/interactive-mode",
8989
"original_md_url": "https://docs.claude.com/en/docs/claude-code/interactive-mode.md",
90-
"hash": "64615ef94295923ce71d9979d3e3aa93c388cf2875040e287808b1d04e836513",
91-
"last_updated": "2025-08-29T21:04:24.381134"
90+
"hash": "323622879bf123b2e34f9a442f8e93b5fb50ed18e72a6806006f85bf3f59dd3d",
91+
"last_updated": "2025-09-17T18:05:54.515377"
9292
},
9393
"legal-and-compliance.md": {
9494
"original_url": "https://docs.claude.com/en/docs/claude-code/legal-and-compliance",
@@ -111,8 +111,8 @@
111111
"memory.md": {
112112
"original_url": "https://docs.claude.com/en/docs/claude-code/memory",
113113
"original_md_url": "https://docs.claude.com/en/docs/claude-code/memory.md",
114-
"hash": "fb91c5ca36a50ad644648bb0a4af00dab4fa5489a1317d5ca8a33c593fd18b1c",
115-
"last_updated": "2025-08-04T21:01:52.569164"
114+
"hash": "314250cccf38fdb518122df8df9fc8dda5176f1bdef5839813744a62ba1f076f",
115+
"last_updated": "2025-09-17T18:05:56.688694"
116116
},
117117
"model-config.md": {
118118
"original_url": "https://docs.claude.com/en/docs/claude-code/model-config",
@@ -297,8 +297,8 @@
297297
}
298298
},
299299
"fetch_metadata": {
300-
"last_fetch_completed": "2025-09-17T15:05:15.436541",
301-
"fetch_duration_seconds": 26.503827,
300+
"last_fetch_completed": "2025-09-17T18:06:12.367801",
301+
"fetch_duration_seconds": 26.788108,
302302
"total_pages_discovered": 48,
303303
"pages_fetched_successfully": 49,
304304
"pages_failed": 0,
@@ -308,7 +308,7 @@
308308
"total_files": 49,
309309
"fetch_tool_version": "3.0"
310310
},
311-
"last_updated": "2025-09-17T15:05:15.436569",
311+
"last_updated": "2025-09-17T18:06:12.367825",
312312
"base_url": "https://raw.githubusercontent.com/mnestorov/cc-docs-mirror/main/docs/",
313313
"github_repository": "mnestorov/cc-docs-mirror",
314314
"github_ref": "main",

docs/interactive-mode.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,52 @@ Claude Code maintains command history for the current session:
9090
* **Ctrl+R**: Reverse search through history (if supported by terminal)
9191
* **Note**: History expansion (`!`) is disabled by default
9292

93+
## Background bash commands
94+
95+
Claude Code supports running bash commands in the background, allowing you to continue working while long-running processes execute.
96+
97+
### How backgrounding works
98+
99+
When Claude Code runs a command in the background, it runs the command runs asynchronously and returns immediately with a background task ID. Claude Code can respond to new prompts while the command continues executing in the background.
100+
101+
To run commands in the background, you can either:
102+
103+
* Prompt Claude Code to run a command in the background
104+
* Press Ctrl+B to move a regular Bash tool invocation to the background. (Tmux users must press Ctrl+B twice due to tmux's prefix key.)
105+
106+
**Key features:**
107+
108+
* Output is buffered and Claude can retrieve it using the BashOutput tool
109+
* Background tasks have unique IDs for tracking and output retrieval
110+
* Background tasks are automatically cleaned up when Claude Code exits
111+
112+
**Common backgrounded commands:**
113+
114+
* Build tools (webpack, vite, make)
115+
* Package managers (npm, yarn, pnpm)
116+
* Test runners (jest, pytest)
117+
* Development servers
118+
* Long-running processes (docker, terraform)
119+
120+
### Bash mode with `!` prefix
121+
122+
Run bash commands directly without going through Claude by prefixing your input with `!`:
123+
124+
```bash
125+
! npm test
126+
! git status
127+
! ls -la
128+
```
129+
130+
Bash mode:
131+
132+
* Adds the command and its output to the conversation context
133+
* Shows real-time progress and output
134+
* Supports the same `Ctrl+B` backgrounding for long-running commands
135+
* Does not require Claude to interpret or approve the command
136+
137+
This is useful for quick shell operations while maintaining conversation context.
138+
93139
## See also
94140

95141
* [Slash commands](/en/docs/claude-code/slash-commands) - Interactive session commands

docs/memory.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Claude Code offers four memory locations in a hierarchical structure, each servi
1111
| Memory Type | Location | Purpose | Use Case Examples | Shared With |
1212
| -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------- | -------------------------------------------------------------------- | ------------------------------- |
1313
| **Enterprise policy** | macOS: `/Library/Application Support/ClaudeCode/CLAUDE.md`<br />Linux: `/etc/claude-code/CLAUDE.md`<br />Windows: `C:\ProgramData\ClaudeCode\CLAUDE.md` | Organization-wide instructions managed by IT/DevOps | Company coding standards, security policies, compliance requirements | All users in organization |
14-
| **Project memory** | `./CLAUDE.md` | Team-shared instructions for the project | Project architecture, coding standards, common workflows | Team members via source control |
14+
| **Project memory** | `./CLAUDE.md` or `./.claude/CLAUDE.md` | Team-shared instructions for the project | Project architecture, coding standards, common workflows | Team members via source control |
1515
| **User memory** | `~/.claude/CLAUDE.md` | Personal preferences for all projects | Code styling preferences, personal tooling shortcuts | Just you (all projects) |
1616
| **Project memory (local)** | `./CLAUDE.local.md` | Personal project-specific preferences | *(Deprecated, see below)* Your sandbox URLs, preferred test data | Just you (current project) |
1717

@@ -65,7 +65,7 @@ Use the `/memory` slash command during a session to open any memory file in your
6565

6666
## Set up project memory
6767

68-
Suppose you want to set up a CLAUDE.md file to store important project information, conventions, and frequently used commands.
68+
Suppose you want to set up a CLAUDE.md file to store important project information, conventions, and frequently used commands. Project memory can be stored in either `./CLAUDE.md` or `./.claude/CLAUDE.md`.
6969

7070
Bootstrap a CLAUDE.md for your codebase with the following command:
7171

0 commit comments

Comments
 (0)