Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
Coding in the AI era
/
Agent context management
An indexed excerpt and the current file disagree just before an edit. What should the age…
from Agent context management
Node 24
beginner
2 min
An indexed excerpt and the current file disagree just before an edit. What should the agent do?
Treat the index as a locator, reread the file and applicable contract, then recompute the edit
Use the indexed excerpt because retrieval ranked it highly
Combine both versions line by line so neither is lost
Ask the model which version looks more idiomatic
Check
Ask AI about this kata
Report an error
next kata
A test fails in `checkout()`, and the assertion concerns jurisdiction rounding. Which exp…
Quiz
A new version is available
Reload