xonecas.io
64875
Mc

mini-coder / commit f48d61d

chore: cleanup

xonecas2026-03-08 f48d61d2cca3e7e4b4794c61698b33b4e19be110 parent 1c45800

3 files changed

TODO.md+0−14
@@ -1,19 +1,5 @@
11 # TODO
22
3-Agents keep having to resort to rg, something is wrong with our grep implemenation:
4-
5-```
6- ? grep formatSubagentLabel *.ts i
7- · no matches
8- $ rg formatSubagentLabel src/
9- ✔ 0
10- │ src/agent/subagent-runner.ts:import { formatSubagentLabel } from "../cli/output.ts";
11- │ src/agent/subagent-runner.ts: const laneLabel = formatSubagentLabel(laneId, parentLabel);
12- │ src/cli/tool-render.ts:export function formatSubagentLabel(
13- │ src/cli/tool-render.ts: const labelStr = formatSubagentLabel(laneId, parentLabel, worktreeBranch);
14- │ src/cli/output.ts: formatSubagentLabel,
15-```
16-
173 ## Write blog posts
184
195 - Codex being big dumb and lazy without strong guidance in system prompt/instructions
ralph-jscpd.md+0−21
@@ -1,21 +0,0 @@
1-# Agent Task: Resolve JSCPD Clones
2-
3-Your goal is to eliminate all code duplication reported by `jscpd` in the `src/` directory.
4-
5-## Instructions:
6-1. Run `bun run jscpd` to identify code clones.
7-2. Pick **one** duplication issue reported by the tool.
8-3. Refactor the code to eliminate the clone. This might involve:
9- - Extracting shared logic into a common utility function.
10- - Using loops or higher-order functions.
11- - Abstracting classes or types.
12-4. Run `bun run knip && bun run typecheck && bun run format && bun run lint && bun test` to ensure your changes did not break the project.
13-5. If the tests or checks fail, fix them before moving on.
14-6. Re-run `bun run jscpd`.
15-7. Repeat steps 2-6 until `bun run jscpd` reports 0 clones.
16-8. When 0 clones are reported, state "All jscpd clones resolved." and finish the loop.
17-
18-**Important rules**:
19-- Keep your refactoring clean and targeted. Do not rewrite large chunks of unaffected code.
20-- Ensure you do not leave dead code behind.
21-- Respect existing project style and architecture.
src/cli/status-bar.ts+3−1
@@ -56,7 +56,9 @@ export function renderStatusBar(opts: {
5656 const right: string[] = [];
5757 if (opts.inputTokens > 0 || opts.outputTokens > 0) {
5858 right.push(
59- c.dim(`↑${fmtTokens(opts.inputTokens)} ↓${fmtTokens(opts.outputTokens)}`),
59+ c.dim(
60+ `↑ ${fmtTokens(opts.inputTokens)} ↓ ${fmtTokens(opts.outputTokens)}`,
61+ ),
6062 );
6163 }
6264 if (opts.contextTokens > 0) {