spacehub

surshar / claude-code

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

Built by Anthropic · github.com/anthropics

agents-md: the truncated-read tests laid out as the formatter lays themBrowse files
poteat authored on Sep 23, 2026 · Alice T'Poteat committed 28 days ago parent 653d32f · commit 684ffc4da0ea
1 changed file+11 -2compared with 653d32f
Mmods/agents-md/tests/register.test.ts
@@ -93,8 +93,13 @@
9393 ],
9494 ['an incomplete line range', {}, { content: '# head', numLines: 1 }, true],
9595 ['a complete read', {}, {}, false],
96- ['an explicit limit', { limit: 1 }, { content: '# head', numLines: 1 }, true],
9796 [
97+ 'an explicit limit',
98+ { limit: 1 },
99+ { content: '# head', numLines: 1 },
100+ true,
101+ ],
102+ [
98103 'an explicit offset',
99104 { offset: 2 },
100105 { content: 'follow the tail rule', numLines: 1, startLine: 2 },
@@ -133,7 +138,11 @@
133138 : 'read',
134139 }))
135140
136- const direct = await $.tool.call({ tool: 'Read', file_path: path, ...args })
141+ const direct = await $.tool.call({
142+ tool: 'Read',
143+ file_path: path,
144+ ...args,
145+ })
137146 const source = { tool: 'Read', file_path: `${dir}/source.ts` } as const
138147 const after = await $.tool.call(source)
139148 const repeated = await $.tool.call(source)