kiro-agent-team 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.kiro/README.md +228 -0
- package/.kiro/agents/backend-engineer.json +6 -0
- package/.kiro/agents/backend-engineer.md +643 -0
- package/.kiro/agents/database-specialist.json +6 -0
- package/.kiro/agents/database-specialist.md +390 -0
- package/.kiro/agents/development-logger.json +6 -0
- package/.kiro/agents/development-logger.md +265 -0
- package/.kiro/agents/devops-engineer.json +6 -0
- package/.kiro/agents/devops-engineer.md +287 -0
- package/.kiro/agents/frontend-architect.json +6 -0
- package/.kiro/agents/frontend-architect.md +1032 -0
- package/.kiro/agents/hooks/backend-engineer-hooks.yaml +540 -0
- package/.kiro/agents/hooks/database-specialist-hooks.yaml +488 -0
- package/.kiro/agents/hooks/development-logger-hooks.yaml +361 -0
- package/.kiro/agents/hooks/devops-engineer-hooks.yaml +345 -0
- package/.kiro/agents/hooks/frontend-architect-hooks.yaml +521 -0
- package/.kiro/agents/hooks/project-manager-hooks.yaml +513 -0
- package/.kiro/agents/hooks/security-specialist-hooks.yaml +358 -0
- package/.kiro/agents/hooks/test-orchestrator-hooks.yaml +380 -0
- package/.kiro/agents/hooks/ui-ux-designer-hooks.yaml +353 -0
- package/.kiro/agents/project-manager.json +6 -0
- package/.kiro/agents/project-manager.md +344 -0
- package/.kiro/agents/prompts/backend-engineer-system.md +815 -0
- package/.kiro/agents/prompts/database-specialist-system.md +332 -0
- package/.kiro/agents/prompts/development-logger-system.md +232 -0
- package/.kiro/agents/prompts/devops-engineer-system.md +260 -0
- package/.kiro/agents/prompts/frontend-architect-system.md +305 -0
- package/.kiro/agents/prompts/project-manager-system.md +285 -0
- package/.kiro/agents/prompts/security-specialist-system.md +231 -0
- package/.kiro/agents/prompts/test-orchestrator-system.md +214 -0
- package/.kiro/agents/prompts/ui-ux-designer-system.md +270 -0
- package/.kiro/agents/security-specialist.json +6 -0
- package/.kiro/agents/security-specialist.md +277 -0
- package/.kiro/agents/test-orchestrator.json +6 -0
- package/.kiro/agents/test-orchestrator.md +266 -0
- package/.kiro/agents/ui-ux-designer.json +6 -0
- package/.kiro/agents/ui-ux-designer.md +284 -0
- package/.kiro/devlog/00-START-HERE.md +444 -0
- package/.kiro/devlog/COMPLETE-WORKFLOW.md +553 -0
- package/.kiro/devlog/DEVLOG-INTEGRATION.md +413 -0
- package/.kiro/devlog/DEVLOG-PROCESS-FLOWS.md +484 -0
- package/.kiro/devlog/DEVLOG-QUICK-REF.md +299 -0
- package/.kiro/devlog/DEVLOG.md +22 -0
- package/.kiro/devlog/IMPLEMENTATION-COMPLETE.txt +434 -0
- package/.kiro/devlog/IMPLEMENTATION-SUMMARY.md +358 -0
- package/.kiro/devlog/README.md +363 -0
- package/.kiro/devlog/devlog-update.bat +136 -0
- package/.kiro/devlog/devlog-update.sh +275 -0
- package/.kiro/devlog/feature-completion-hook.bat +78 -0
- package/.kiro/devlog/feature-completion-hook.sh +84 -0
- package/.kiro/documentation/cli.md +31 -0
- package/.kiro/documentation/docs_cli.md +41 -0
- package/.kiro/documentation/docs_cli_authentication.md +43 -0
- package/.kiro/documentation/docs_cli_autocomplete.md +132 -0
- package/.kiro/documentation/docs_cli_billing.md +31 -0
- package/.kiro/documentation/docs_cli_billing_contact-support.md +43 -0
- package/.kiro/documentation/docs_cli_billing_managing-taxes.md +67 -0
- package/.kiro/documentation/docs_cli_billing_related-questions.md +49 -0
- package/.kiro/documentation/docs_cli_billing_subscription-portal.md +31 -0
- package/.kiro/documentation/docs_cli_chat.md +84 -0
- package/.kiro/documentation/docs_cli_chat_configuration.md +40 -0
- package/.kiro/documentation/docs_cli_chat_context.md +258 -0
- package/.kiro/documentation/docs_cli_chat_git-aware-selection.md +41 -0
- package/.kiro/documentation/docs_cli_chat_images.md +53 -0
- package/.kiro/documentation/docs_cli_chat_manage-prompts.md +216 -0
- package/.kiro/documentation/docs_cli_chat_model-selection.md +153 -0
- package/.kiro/documentation/docs_cli_chat_permissions.md +68 -0
- package/.kiro/documentation/docs_cli_chat_planning-agent.md +230 -0
- package/.kiro/documentation/docs_cli_chat_responding.md +123 -0
- package/.kiro/documentation/docs_cli_chat_security.md +87 -0
- package/.kiro/documentation/docs_cli_chat_subagents.md +77 -0
- package/.kiro/documentation/docs_cli_code-intelligence.md +251 -0
- package/.kiro/documentation/docs_cli_custom-agents.md +37 -0
- package/.kiro/documentation/docs_cli_custom-agents_configuration-reference.md +941 -0
- package/.kiro/documentation/docs_cli_custom-agents_creating.md +93 -0
- package/.kiro/documentation/docs_cli_custom-agents_examples.md +360 -0
- package/.kiro/documentation/docs_cli_custom-agents_troubleshooting.md +180 -0
- package/.kiro/documentation/docs_cli_enterprise_billing.md +33 -0
- package/.kiro/documentation/docs_cli_enterprise_concepts.md +34 -0
- package/.kiro/documentation/docs_cli_enterprise_getting-started.md +19 -0
- package/.kiro/documentation/docs_cli_enterprise_iam.md +251 -0
- package/.kiro/documentation/docs_cli_enterprise_monitor-and-track.md +15 -0
- package/.kiro/documentation/docs_cli_enterprise_monitor-and-track_dashboard.md +62 -0
- package/.kiro/documentation/docs_cli_enterprise_monitor-and-track_prompt-logging.md +165 -0
- package/.kiro/documentation/docs_cli_enterprise_monitor-and-track_user-activity.md +123 -0
- package/.kiro/documentation/docs_cli_enterprise_settings.md +15 -0
- package/.kiro/documentation/docs_cli_enterprise_subscribe.md +36 -0
- package/.kiro/documentation/docs_cli_enterprise_subscription-management.md +55 -0
- package/.kiro/documentation/docs_cli_enterprise_supported-regions.md +39 -0
- package/.kiro/documentation/docs_cli_experimental.md +282 -0
- package/.kiro/documentation/docs_cli_experimental_checkpointing.md +439 -0
- package/.kiro/documentation/docs_cli_experimental_delegate.md +422 -0
- package/.kiro/documentation/docs_cli_experimental_knowledge-management.md +449 -0
- package/.kiro/documentation/docs_cli_experimental_tangent-mode.md +357 -0
- package/.kiro/documentation/docs_cli_experimental_thinking.md +331 -0
- package/.kiro/documentation/docs_cli_experimental_todo-lists.md +385 -0
- package/.kiro/documentation/docs_cli_hooks.md +207 -0
- package/.kiro/documentation/docs_cli_installation.md +235 -0
- package/.kiro/documentation/docs_cli_mcp.md +106 -0
- package/.kiro/documentation/docs_cli_mcp_configuration.md +294 -0
- package/.kiro/documentation/docs_cli_mcp_examples.md +273 -0
- package/.kiro/documentation/docs_cli_mcp_governance.md +436 -0
- package/.kiro/documentation/docs_cli_mcp_security.md +77 -0
- package/.kiro/documentation/docs_cli_migrating-from-q.md +129 -0
- package/.kiro/documentation/docs_cli_privacy-and-security.md +83 -0
- package/.kiro/documentation/docs_cli_privacy-and-security_compliance-validation.md +17 -0
- package/.kiro/documentation/docs_cli_privacy-and-security_data-protection.md +104 -0
- package/.kiro/documentation/docs_cli_privacy-and-security_firewalls.md +26 -0
- package/.kiro/documentation/docs_cli_privacy-and-security_infrastructure-security.md +10 -0
- package/.kiro/documentation/docs_cli_privacy-and-security_vpc-endpoints.md +41 -0
- package/.kiro/documentation/docs_cli_reference_built-in-tools.md +624 -0
- package/.kiro/documentation/docs_cli_reference_cli-commands.md +689 -0
- package/.kiro/documentation/docs_cli_reference_settings.md +294 -0
- package/.kiro/documentation/docs_cli_reference_slash-commands.md +559 -0
- package/.kiro/documentation/docs_cli_steering.md +84 -0
- package/.kiro/guides/AGENT_WORKFLOW_GUIDE.md +294 -0
- package/.kiro/guides/DEVLOG.md +882 -0
- package/.kiro/guides/IMPLEMENTATION_EXAMPLES.md +611 -0
- package/.kiro/guides/PIV Loop.md +122 -0
- package/.kiro/guides/PIV Loop.png +0 -0
- package/.kiro/guides/PIVLoop.png +0 -0
- package/.kiro/guides/QUICK_REFERENCE.md +202 -0
- package/.kiro/guides/README.md +149 -0
- package/.kiro/guides/advanced-patterns.md +514 -0
- package/.kiro/guides/agent-coordination.md +434 -0
- package/.kiro/guides/core-workflows.md +409 -0
- package/.kiro/guides/emergency-procedures.md +414 -0
- package/.kiro/guides/project-evaluation.md +534 -0
- package/.kiro/guides/quality-assurance.md +431 -0
- package/.kiro/guides/quick-start.md +235 -0
- package/.kiro/guides/troubleshooting.md +575 -0
- package/.kiro/guides/walkthroughs.md +711 -0
- package/.kiro/prompts/add-to-devlog.md +263 -0
- package/.kiro/prompts/code-review-fix.md +18 -0
- package/.kiro/prompts/code-review-hackathon.md +167 -0
- package/.kiro/prompts/code-review-security.md +454 -0
- package/.kiro/prompts/code-review.md +113 -0
- package/.kiro/prompts/create-prd.md +151 -0
- package/.kiro/prompts/execute-backend.md +257 -0
- package/.kiro/prompts/execute-frontend.md +438 -0
- package/.kiro/prompts/execute-logging.md +491 -0
- package/.kiro/prompts/execute-security.md +482 -0
- package/.kiro/prompts/execute-testing.md +528 -0
- package/.kiro/prompts/execute.md +101 -0
- package/.kiro/prompts/execution-report.md +72 -0
- package/.kiro/prompts/implement-fix.md +228 -0
- package/.kiro/prompts/plan-feature.md +433 -0
- package/.kiro/prompts/prime.md +73 -0
- package/.kiro/prompts/quality-metrics.md +622 -0
- package/.kiro/prompts/quickstart.md +318 -0
- package/.kiro/prompts/rca.md +220 -0
- package/.kiro/prompts/system-review.md +189 -0
- package/README.md +32 -0
- package/bin/cli.js +97 -0
- package/package.json +33 -0
|
@@ -0,0 +1,439 @@
|
|
|
1
|
+
# Checkpointing
|
|
2
|
+
Checkpointing enables session-scoped snapshots for tracking file changes using Git-like commands. This feature creates a shadow bare git repository to manage file state across your chat session.
|
|
3
|
+
## Overview[](https://kiro.dev/docs/cli/experimental/checkpointing/#overview)
|
|
4
|
+
Checkpointing provides version control for your chat session, allowing you to:
|
|
5
|
+
* Create snapshots of file changes at any point
|
|
6
|
+
* Compare different states of your files
|
|
7
|
+
* Restore to previous checkpoints
|
|
8
|
+
* Track what changed during each turn of conversation
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## Enabling checkpointing[](https://kiro.dev/docs/cli/experimental/checkpointing/#enabling-checkpointing)
|
|
12
|
+
bash
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
kiro-cli settings chat.enableCheckpoint true
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Or use the experiment command:
|
|
21
|
+
bash
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
/experiment
|
|
25
|
+
# Select "Checkpointing" from the list
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## How it works[](https://kiro.dev/docs/cli/experimental/checkpointing/#how-it-works)
|
|
31
|
+
### Automatic initialization[](https://kiro.dev/docs/cli/experimental/checkpointing/#automatic-initialization)
|
|
32
|
+
* **In git repositories** : Auto-enables when you start a chat session
|
|
33
|
+
* **Non-git directories** : Requires manual initialization with `/checkpoint init`
|
|
34
|
+
* **Session-scoped** : Shadow repository is cleaned up when session ends
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
### Shadow repository[](https://kiro.dev/docs/cli/experimental/checkpointing/#shadow-repository)
|
|
38
|
+
Checkpointing creates a temporary bare git repository that:
|
|
39
|
+
* Tracks file changes without affecting your actual git repo
|
|
40
|
+
* Stores snapshots for each turn of conversation
|
|
41
|
+
* Allows comparison and restoration of file states
|
|
42
|
+
* Is automatically cleaned up when the session ends
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
## Commands[](https://kiro.dev/docs/cli/experimental/checkpointing/#commands)
|
|
46
|
+
### /checkpoint init[](https://kiro.dev/docs/cli/experimental/checkpointing/#checkpoint-init)
|
|
47
|
+
Manually enable checkpoints (required if not in a git repository):
|
|
48
|
+
bash
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
/checkpoint init
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### /checkpoint list[](https://kiro.dev/docs/cli/experimental/checkpointing/#checkpoint-list)
|
|
57
|
+
Show turn-level checkpoints with file statistics:
|
|
58
|
+
bash
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
/checkpoint list [--limit N]
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
**Example output:**
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
[0] 2025-09-18 14:00:00 - Initial checkpoint
|
|
70
|
+
[1] 2025-09-18 14:05:31 - add two_sum.py (+1 file)
|
|
71
|
+
[2] 2025-09-18 14:07:10 - add tests (modified 1)
|
|
72
|
+
[3] 2025-09-18 14:10:45 - refactor algorithm (modified 1)
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
### /checkpoint expand[](https://kiro.dev/docs/cli/experimental/checkpointing/#checkpoint-expand)
|
|
78
|
+
Show tool-level checkpoints under a specific turn:
|
|
79
|
+
bash
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
/checkpoint expand <tag>
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
**Example:**
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
> /checkpoint expand 2
|
|
91
|
+
|
|
92
|
+
[2] 2025-09-18 14:07:10 - add tests
|
|
93
|
+
└─ [2.1] write: Add minimal test cases to two_sum.py (modified 1)
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
### /checkpoint diff[](https://kiro.dev/docs/cli/experimental/checkpointing/#checkpoint-diff)
|
|
99
|
+
Compare checkpoints or compare with current state:
|
|
100
|
+
bash
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
/checkpoint diff <tag1> [tag2|HEAD]
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
**Examples:**
|
|
109
|
+
bash
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
/checkpoint diff 1 2 # Compare checkpoint 1 to checkpoint 2
|
|
113
|
+
/checkpoint diff 1 HEAD # Compare checkpoint 1 to current state
|
|
114
|
+
/checkpoint diff 1 # Same as above (HEAD is default)
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
### /checkpoint restore[](https://kiro.dev/docs/cli/experimental/checkpointing/#checkpoint-restore)
|
|
120
|
+
Restore to a checkpoint:
|
|
121
|
+
bash
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
/checkpoint restore [<tag>] [--hard]
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
**Interactive picker** : If no tag specified, shows interactive selection
|
|
130
|
+
**Restore options:**
|
|
131
|
+
* **Default** : Reverts tracked changes and deletions; keeps files created after checkpoint
|
|
132
|
+
* **`--hard`**: Makes workspace exactly match checkpoint; deletes tracked files created after it
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
**Examples:**
|
|
136
|
+
bash
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
/checkpoint restore 2 # Restore to checkpoint 2 (soft)
|
|
140
|
+
/checkpoint restore 2 --hard # Restore to checkpoint 2 (hard)
|
|
141
|
+
/checkpoint restore # Interactive selection
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
### /checkpoint clean[](https://kiro.dev/docs/cli/experimental/checkpointing/#checkpoint-clean)
|
|
147
|
+
Delete the session shadow repository:
|
|
148
|
+
bash
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
/checkpoint clean
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
**Warning** : This removes all checkpoint data for the current session.
|
|
157
|
+
## Restore modes[](https://kiro.dev/docs/cli/experimental/checkpointing/#restore-modes)
|
|
158
|
+
### Default restore (soft)[](https://kiro.dev/docs/cli/experimental/checkpointing/#default-restore-soft)
|
|
159
|
+
Reverts tracked changes and deletions but keeps new files:
|
|
160
|
+
bash
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
/checkpoint restore 2
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
**What happens:**
|
|
169
|
+
* Modified files are reverted to checkpoint state
|
|
170
|
+
* Deleted files are restored
|
|
171
|
+
* Files created after checkpoint are kept
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
**Use when:**
|
|
175
|
+
* You want to undo changes but keep new work
|
|
176
|
+
* Testing different approaches
|
|
177
|
+
* Reverting specific modifications
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
### Hard restore[](https://kiro.dev/docs/cli/experimental/checkpointing/#hard-restore)
|
|
181
|
+
Makes workspace exactly match checkpoint state:
|
|
182
|
+
bash
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
/checkpoint restore 2 --hard
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
**What happens:**
|
|
191
|
+
* Modified files are reverted to checkpoint state
|
|
192
|
+
* Deleted files are restored
|
|
193
|
+
* Files created after checkpoint are deleted
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
**Use when:**
|
|
197
|
+
* You want exact checkpoint state
|
|
198
|
+
* Completely abandoning recent work
|
|
199
|
+
* Starting fresh from a known good state
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
**⚠️ Warning** : Hard restore permanently deletes files. Use with caution.
|
|
203
|
+
## Use cases[](https://kiro.dev/docs/cli/experimental/checkpointing/#use-cases)
|
|
204
|
+
### Experimenting with changes[](https://kiro.dev/docs/cli/experimental/checkpointing/#experimenting-with-changes)
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
> Help me refactor this function
|
|
208
|
+
|
|
209
|
+
# Kiro makes changes...
|
|
210
|
+
|
|
211
|
+
> /checkpoint list
|
|
212
|
+
[0] Initial checkpoint
|
|
213
|
+
[1] Refactored function (modified 1)
|
|
214
|
+
|
|
215
|
+
> Actually, let's try a different approach
|
|
216
|
+
|
|
217
|
+
> /checkpoint restore 0
|
|
218
|
+
# Back to original state
|
|
219
|
+
|
|
220
|
+
> Now try using a different pattern...
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
### Comparing approaches[](https://kiro.dev/docs/cli/experimental/checkpointing/#comparing-approaches)
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
> Implement feature A
|
|
229
|
+
|
|
230
|
+
# Implementation complete
|
|
231
|
+
|
|
232
|
+
> /checkpoint list
|
|
233
|
+
[1] Implemented feature A (modified 2)
|
|
234
|
+
|
|
235
|
+
> Now show me an alternative implementation
|
|
236
|
+
|
|
237
|
+
# Alternative implementation
|
|
238
|
+
|
|
239
|
+
> /checkpoint list
|
|
240
|
+
[2] Alternative implementation (modified 2)
|
|
241
|
+
|
|
242
|
+
> /checkpoint diff 1 2
|
|
243
|
+
# See differences between approaches
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
### Tracking progress[](https://kiro.dev/docs/cli/experimental/checkpointing/#tracking-progress)
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
> /checkpoint list
|
|
252
|
+
[0] Initial state
|
|
253
|
+
[1] Added user model (+1 file)
|
|
254
|
+
[2] Added authentication (+2 files)
|
|
255
|
+
[3] Added tests (modified 3)
|
|
256
|
+
|
|
257
|
+
> /checkpoint expand 2
|
|
258
|
+
[2] Added authentication
|
|
259
|
+
└─ [2.1] write: Create auth.py (+1 file)
|
|
260
|
+
└─ [2.2] write: Update routes.py (modified 1)
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
```
|
|
264
|
+
|
|
265
|
+
### Recovering from mistakes[](https://kiro.dev/docs/cli/experimental/checkpointing/#recovering-from-mistakes)
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
> /checkpoint list
|
|
269
|
+
[0] Working code
|
|
270
|
+
[1] Attempted optimization (modified 1)
|
|
271
|
+
[2] More changes (modified 2)
|
|
272
|
+
|
|
273
|
+
# Realize the optimization broke things
|
|
274
|
+
|
|
275
|
+
> /checkpoint restore 0
|
|
276
|
+
# Back to working state
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
```
|
|
280
|
+
|
|
281
|
+
## Conversation history[](https://kiro.dev/docs/cli/experimental/checkpointing/#conversation-history)
|
|
282
|
+
When you restore to a checkpoint, the conversation history also unwinds to that point. This means:
|
|
283
|
+
* Messages after the checkpoint are removed
|
|
284
|
+
* Context returns to the checkpoint state
|
|
285
|
+
* Kiro's understanding resets to that point
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
This ensures consistency between file state and conversation context.
|
|
289
|
+
## Best practices[](https://kiro.dev/docs/cli/experimental/checkpointing/#best-practices)
|
|
290
|
+
### When to use checkpointing[](https://kiro.dev/docs/cli/experimental/checkpointing/#when-to-use-checkpointing)
|
|
291
|
+
* **Experimental changes** : Try different approaches safely
|
|
292
|
+
* **Complex refactoring** : Track each step of major changes
|
|
293
|
+
* **Learning** : Compare different implementations
|
|
294
|
+
* **Debugging** : Isolate when problems were introduced
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
### Checkpoint management[](https://kiro.dev/docs/cli/experimental/checkpointing/#checkpoint-management)
|
|
298
|
+
* **Review checkpoints regularly** : Use `/checkpoint list` to see progress
|
|
299
|
+
* **Use descriptive changes** : Kiro's checkpoint messages help identify states
|
|
300
|
+
* **Clean up when done** : Use `/checkpoint clean` to remove session data
|
|
301
|
+
* **Be cautious with --hard** : Only use when you're sure
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
### Workflow integration[](https://kiro.dev/docs/cli/experimental/checkpointing/#workflow-integration)
|
|
305
|
+
1. **Enable at session start** : Turn on for complex work
|
|
306
|
+
2. **Check progress** : Use `/checkpoint list` periodically
|
|
307
|
+
3. **Compare approaches** : Use `/checkpoint diff` to see changes
|
|
308
|
+
4. **Restore when needed** : Go back to known good states
|
|
309
|
+
5. **Clean up** : Remove shadow repo when session ends
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
## Limitations[](https://kiro.dev/docs/cli/experimental/checkpointing/#limitations)
|
|
313
|
+
### Session scope[](https://kiro.dev/docs/cli/experimental/checkpointing/#session-scope)
|
|
314
|
+
* Checkpoints only exist for current session
|
|
315
|
+
* Shadow repository is cleaned up when session ends
|
|
316
|
+
* Cannot share checkpoints across sessions
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
### File tracking[](https://kiro.dev/docs/cli/experimental/checkpointing/#file-tracking)
|
|
320
|
+
* Only tracks files modified during session
|
|
321
|
+
* Doesn't track files outside working directory
|
|
322
|
+
* Binary files are tracked but diffs may not be useful
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
### Performance[](https://kiro.dev/docs/cli/experimental/checkpointing/#performance)
|
|
326
|
+
* Large files may slow down checkpoint operations
|
|
327
|
+
* Many checkpoints can consume disk space
|
|
328
|
+
* Diff operations on large changes may be slow
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
## Troubleshooting[](https://kiro.dev/docs/cli/experimental/checkpointing/#troubleshooting)
|
|
332
|
+
### Checkpointing not working[](https://kiro.dev/docs/cli/experimental/checkpointing/#checkpointing-not-working)
|
|
333
|
+
1. **Verify it's enabled** :
|
|
334
|
+
bash
|
|
335
|
+
```
|
|
336
|
+
|
|
337
|
+
kiro-cli settings chat.enableCheckpoint
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
```
|
|
341
|
+
|
|
342
|
+
2. **Initialize manually** (if not in git repo):
|
|
343
|
+
bash
|
|
344
|
+
```
|
|
345
|
+
|
|
346
|
+
/checkpoint init
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
```
|
|
350
|
+
|
|
351
|
+
3. **Check for errors** : Look for error messages in chat
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
### Cannot restore checkpoint[](https://kiro.dev/docs/cli/experimental/checkpointing/#cannot-restore-checkpoint)
|
|
355
|
+
1. **Verify checkpoint exists** :
|
|
356
|
+
bash
|
|
357
|
+
```
|
|
358
|
+
|
|
359
|
+
/checkpoint list
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
```
|
|
363
|
+
|
|
364
|
+
2. **Check file permissions** : Ensure write access to files
|
|
365
|
+
3. **Try soft restore first** : Use default restore before `--hard`
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
### Shadow repository issues[](https://kiro.dev/docs/cli/experimental/checkpointing/#shadow-repository-issues)
|
|
369
|
+
If shadow repository becomes corrupted:
|
|
370
|
+
1. **Clean and reinitialize** :
|
|
371
|
+
bash
|
|
372
|
+
```
|
|
373
|
+
|
|
374
|
+
/checkpoint clean
|
|
375
|
+
/checkpoint init
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
```
|
|
379
|
+
|
|
380
|
+
2. **Restart session** : Start a new chat session
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
## Important notes[](https://kiro.dev/docs/cli/experimental/checkpointing/#important-notes)
|
|
384
|
+
⚠️ **Checkpointing creates temporary git repositories** that are cleaned up when the session ends.
|
|
385
|
+
⚠️ **Use caution with`--hard` restore** as it permanently deletes files.
|
|
386
|
+
⚠️ **Checkpoints are session-scoped** and don't persist across sessions.
|
|
387
|
+
⚠️ **Conversation history unwinds** when restoring to maintain consistency.
|
|
388
|
+
## Related features[](https://kiro.dev/docs/cli/experimental/checkpointing/#related-features)
|
|
389
|
+
* [Experimental Features](https://kiro.dev/docs/cli/experimental)
|
|
390
|
+
* [Tangent Mode](https://kiro.dev/docs/cli/experimental/tangent-mode) - Conversation checkpoints
|
|
391
|
+
* [TODO Lists](https://kiro.dev/docs/cli/experimental/todo-lists) - Task tracking
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
## Next steps[](https://kiro.dev/docs/cli/experimental/checkpointing/#next-steps)
|
|
395
|
+
* [Enable other experimental features](https://kiro.dev/docs/cli/experimental)
|
|
396
|
+
* [Learn about custom agents](https://kiro.dev/docs/cli/custom-agents)
|
|
397
|
+
* [Configure settings](https://kiro.dev/docs/cli/reference/settings)
|
|
398
|
+
|
|
399
|
+
|
|
400
|
+
Page updated: November 18, 2025
|
|
401
|
+
[Thinking tool](https://kiro.dev/docs/cli/experimental/thinking/)
|
|
402
|
+
[Delegate](https://kiro.dev/docs/cli/experimental/delegate/)
|
|
403
|
+
On this page
|
|
404
|
+
* [Overview](https://kiro.dev/docs/cli/experimental/checkpointing/#overview)
|
|
405
|
+
* [Enabling checkpointing](https://kiro.dev/docs/cli/experimental/checkpointing/#enabling-checkpointing)
|
|
406
|
+
* [How it works](https://kiro.dev/docs/cli/experimental/checkpointing/#how-it-works)
|
|
407
|
+
* [Automatic initialization](https://kiro.dev/docs/cli/experimental/checkpointing/#automatic-initialization)
|
|
408
|
+
* [Shadow repository](https://kiro.dev/docs/cli/experimental/checkpointing/#shadow-repository)
|
|
409
|
+
* [Commands](https://kiro.dev/docs/cli/experimental/checkpointing/#commands)
|
|
410
|
+
* [/checkpoint init](https://kiro.dev/docs/cli/experimental/checkpointing/#checkpoint-init)
|
|
411
|
+
* [/checkpoint list](https://kiro.dev/docs/cli/experimental/checkpointing/#checkpoint-list)
|
|
412
|
+
* [/checkpoint expand](https://kiro.dev/docs/cli/experimental/checkpointing/#checkpoint-expand)
|
|
413
|
+
* [/checkpoint diff](https://kiro.dev/docs/cli/experimental/checkpointing/#checkpoint-diff)
|
|
414
|
+
* [/checkpoint restore](https://kiro.dev/docs/cli/experimental/checkpointing/#checkpoint-restore)
|
|
415
|
+
* [/checkpoint clean](https://kiro.dev/docs/cli/experimental/checkpointing/#checkpoint-clean)
|
|
416
|
+
* [Restore modes](https://kiro.dev/docs/cli/experimental/checkpointing/#restore-modes)
|
|
417
|
+
* [Default restore (soft)](https://kiro.dev/docs/cli/experimental/checkpointing/#default-restore-soft)
|
|
418
|
+
* [Hard restore](https://kiro.dev/docs/cli/experimental/checkpointing/#hard-restore)
|
|
419
|
+
* [Use cases](https://kiro.dev/docs/cli/experimental/checkpointing/#use-cases)
|
|
420
|
+
* [Experimenting with changes](https://kiro.dev/docs/cli/experimental/checkpointing/#experimenting-with-changes)
|
|
421
|
+
* [Comparing approaches](https://kiro.dev/docs/cli/experimental/checkpointing/#comparing-approaches)
|
|
422
|
+
* [Tracking progress](https://kiro.dev/docs/cli/experimental/checkpointing/#tracking-progress)
|
|
423
|
+
* [Recovering from mistakes](https://kiro.dev/docs/cli/experimental/checkpointing/#recovering-from-mistakes)
|
|
424
|
+
* [Conversation history](https://kiro.dev/docs/cli/experimental/checkpointing/#conversation-history)
|
|
425
|
+
* [Best practices](https://kiro.dev/docs/cli/experimental/checkpointing/#best-practices)
|
|
426
|
+
* [When to use checkpointing](https://kiro.dev/docs/cli/experimental/checkpointing/#when-to-use-checkpointing)
|
|
427
|
+
* [Checkpoint management](https://kiro.dev/docs/cli/experimental/checkpointing/#checkpoint-management)
|
|
428
|
+
* [Workflow integration](https://kiro.dev/docs/cli/experimental/checkpointing/#workflow-integration)
|
|
429
|
+
* [Limitations](https://kiro.dev/docs/cli/experimental/checkpointing/#limitations)
|
|
430
|
+
* [Session scope](https://kiro.dev/docs/cli/experimental/checkpointing/#session-scope)
|
|
431
|
+
* [File tracking](https://kiro.dev/docs/cli/experimental/checkpointing/#file-tracking)
|
|
432
|
+
* [Performance](https://kiro.dev/docs/cli/experimental/checkpointing/#performance)
|
|
433
|
+
* [Troubleshooting](https://kiro.dev/docs/cli/experimental/checkpointing/#troubleshooting)
|
|
434
|
+
* [Checkpointing not working](https://kiro.dev/docs/cli/experimental/checkpointing/#checkpointing-not-working)
|
|
435
|
+
* [Cannot restore checkpoint](https://kiro.dev/docs/cli/experimental/checkpointing/#cannot-restore-checkpoint)
|
|
436
|
+
* [Shadow repository issues](https://kiro.dev/docs/cli/experimental/checkpointing/#shadow-repository-issues)
|
|
437
|
+
* [Important notes](https://kiro.dev/docs/cli/experimental/checkpointing/#important-notes)
|
|
438
|
+
* [Related features](https://kiro.dev/docs/cli/experimental/checkpointing/#related-features)
|
|
439
|
+
* [Next steps](https://kiro.dev/docs/cli/experimental/checkpointing/#next-steps)
|