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

mods: tests and the README quote in ASCII onlyBrowse files
poteat authored on Sep 11, 2026 parent 9d61370 · commit a5b0e0c19832
6 changed files+12 -12compared with 9d61370
Mmods/README.md
Mmods/diff/tests/boot-probe.test.ts
Mmods/diff/tests/command.test.ts
Mmods/diff/tests/pane.test.ts
Mmods/sec-default/tests/sec-default.test.ts
Mmods/telemetry/tests/telemetry.test.ts
@@ -52,7 +52,7 @@
5252 origin: { kind: 'composer' },
5353 })
5454
55- expect(text).toContain('isn’t in a git repository')
55+ expect(text).toMatch(/isn.t in a git repository/)
5656 expect(opened).toEqual([])
5757 })
5858 ```
@@ -46,13 +46,13 @@
4646 const ran = $.command.run(DIFF)
4747 await clock.advance(0)
4848
49- expect(probes, 'the boot’s probe, which /diff joined').toHaveLength(1)
49+ expect(probes, 'the boot probe, which /diff joined').toHaveLength(1)
5050
5151 await clock.advance(GIT_TIMEOUT_MS)
5252 await booting
5353
5454 expect(await ran).toEqual({
55- text: expect.stringContaining('isn’t in a git repository'),
55+ text: expect.stringMatching(/isn.t in a git repository/),
5656 })
5757 expect(probes, 'then one more of its own').toHaveLength(2)
5858 })
@@ -37,11 +37,11 @@
3737 await $.session.start(SESSION)
3838 const { text } = await $.command.run(DIFF)
3939
40- expect(text).toContain('isn’t in a git repository')
40+ expect(text).toMatch(/isn.t in a git repository/)
4141 expect(opened).toEqual([])
4242 })
4343
44-test('a git that never answers is not “no repository”', async ($, on) => {
44+test('a git that never answers is not "no repository"', async ($, on) => {
4545 on('session.start', ($, e) => ({ cwd: e.cwd }))
4646 on('command.register', ($, e) => ({ value: { command: e.name } }))
4747 on('process.run', () => ({
@@ -51,7 +51,7 @@
5151 await $.session.start(SESSION)
5252 const { text } = await $.command.run(DIFF)
5353
54- expect(text).toContain('git didn’t answer')
54+ expect(text).toMatch(/git didn.t answer/)
5555 })
5656
5757 test('with the built-in holding /diff, the plugin stands down', async ($, on) => {
@@ -121,7 +121,7 @@
121121 return { runs, opened, closed }
122122 }
123123
124-test('/diff opens the pane over the session’s changes', async ($, on) => {
124+test('/diff opens the pane over the changes in the session', async ($, on) => {
125125 const world = inRepository(on)
126126
127127 await $.session.start(SESSION)
@@ -158,7 +158,7 @@
158158 }
159159 })
160160
161-test('Claude’s first edit opens the pane on a wide terminal', async ($, on) => {
161+test('the first edit Claude makes opens the pane on a wide terminal', async ($, on) => {
162162 const world = inRepository(on)
163163 on('tool.call', () => ({ result: 'edited' }))
164164
@@ -142,7 +142,7 @@
142142 )
143143
144144 test(
145- 'with no allowlist, the person’s plugin adds its tool',
145+ 'with no allowlist, a plugin the person installed adds its tool',
146146 { plugins: [registering('mine')] },
147147 async ($, on) => {
148148 on('settings.read', () => ({ value: NO_ALLOWLIST }))
@@ -168,7 +168,7 @@
168168 )
169169
170170 test(
171- 'the organization’s tools are listed as its tiers listed them',
171+ 'the organization tools are listed as its tiers listed them',
172172 { plugins: [relabeling, listing] },
173173 async ($, on) => {
174174 on('settings.read', () => ({ value: ALLOWLIST }))
@@ -184,7 +184,7 @@
184184 )
185185
186186 test(
187- 'a prompt section continues past the person’s plugins, not the organization’s',
187+ 'a prompt section skips the plugins the person installed, never the organization ones',
188188 { plugins: [dropping, signing] },
189189 async ($, on) => {
190190 on('prompt.section', ($, e) => ({ text: e.text }))
@@ -74,7 +74,7 @@
7474 }
7575
7676 test(
77- 'a plugin’s $.telemetry.log posts one first-party row',
77+ 'a $.telemetry.log call from a plugin posts one first-party row',
7878 { plugins: [recording] },
7979 async ($, on) => {
8080 memoryEnv(on, { USER_TYPE: 'ant' })