Skip to content

Instantly share code, notes, and snippets.

@roninjin10
roninjin10 / delegation-chain.md
Created July 4, 2026 21:50
delegation-chain.md

Refined prompt: Delegation Chain

Goal

Build delegation-chain, a first-class smithers workflow where stronger models recursively decompose, de-risk, and delegate work to weaker models — plus a live n8n-style UI — with every piece shipped as a reusable standard-library module. Its first production workload: a slow, docs-driven migration of ../plue (closed-source Go) into this repo's apps/* / packages/*, covering source code, infra-as-code, end-user docs, and (approval-gated) internal docs.

The workflow, phase by phase

Phase 0 — Goal refinement. An agent takes the user's ambiguous goal and forecasts the minimum set of questions needed to make it unambiguous. It asks only genuine user-preference questions (implementation decisions are made by the chain itself) and skips unlikely ones. Each question ships with a prefilled recommended default. The smart agent emits questions as JSON; a fast, cheap agent renders each question's form UI in a separate task, optimistically staying ~10 questions ahead of the user so

@roninjin10
roninjin10 / prompt.md
Created July 2, 2026 00:25
Smithers prompt example

› Can you start over? I think it will just one shot this. Really? Yeah. So there is a lawyer and then his associate. and basically I want when they have meetings for the m4a file to fall in a centralized place, where then Claude or Codex can see those files and then create a meeting summary. The meeting summary should have a summary of what happened, next steps, key takeaways, et cetera. and then from there be able to split the next steps into notion where they're basically keeping all their project management stuff.

I want you to make a UI that shows me the progress of how we are building this

Ask me 10 clarifying questions about what we are building

Read smithers.sh/llms-full.txt to understand smithers first

@roninjin10
roninjin10 / smithers-incur.md
Last active May 24, 2026 23:24
Claude smithers incur suggestions

Features Incur Could Add to Help Smithers

Smithers is incur's most demanding consumer — every one of its 59 CLI commands is built on incur. Reading the actual integration code (apps/cli/src/index.js), there are documented "Findings" where Smithers works around incur limitations. These translate directly into features.

Tier 1: Eliminate existing workarounds (high impact, directly unblock Smithers)

1. Per-command exit code mapping

Smithers has elaborate workaround code for Finding #1: incur hardcodes exit code 4 for validation errors, but Smithers devtools commands need exit code 1. Smithers pre-validates argv before incur sees it and remaps exit codes after cli.serve() returns. Incur should let commands declare their own exit code table:

@roninjin10
roninjin10 / whatwebuilt.md
Created May 22, 2026 16:54
What we built

What We've Built

A concise but complete inventory of all work Will (fucory) has built

The three repos

Repo GitHub Layer Stack
plue (private) github.com/codeplaneapp/plue Code hosting + execution substrate: sandboxes, workspaces, agent sessions, git/jj protocol, billing, .jjhub workflows Go API + Rust jj-FFI + SolidJS UI + Postgres + gVisor / Freestyle VMs
smithers github.com/smithersai/smithers Declarative orchestration engine: workflows, scheduler, agent adapters, time-travel, gateway, observability TypeScript + Effect.io + SQLite + JSX-DSL
@roninjin10
roninjin10 / lionlispysmithering.md
Created May 7, 2026 20:19
Lion lispy smithering

Here’s the useful answer: yes, this is technically plausible, and Lion should target Smithers’ Effect API first, not JSX text generation as the long-term path. Smithers now has a documented React-free Effect authoring surface specifically suitable for generated workflow definitions: Smithers.createWorkflow(...).build(($) => ...), $.step, $.sequence, $.parallel, $.match, $.loop, $.approval, and $.component. The docs explicitly say this API uses the same Smithers runtime as JSX and is appropriate when you “need a React-free API for generated workflow definitions.” ([Smithers][1])

Lion is also a good fit because its programs are valid JSON, arrays are Lisp-style function-call expressions, objects evaluate recursively, and custom environments can inject ordinary JS values/functions/classes. ([Lionlang][2]) That means a Lion front-end can be a real AST compiler rather than another string DSL. The old TOON research is the strongest precedent: TOON compiled declarative workflows into Smithers’ b

@roninjin10
roninjin10 / hijackrpc.md
Created May 1, 2026 16:37
Hijack over rpc question

Yes to both. Here's the full picture with code from the actual test harness:


hijackRun via RPC

hijackRun is a real RPC method — run:admin scope — that creates an elevated operator handoff session:

// packages/gateway/src/rpc/index.ts:123-132 type HijackRunRequest = { runId: string; options?: Record<string, unknown> }; type HijackRunResponse = { runId: string; status: "hijack-ready"; sessionId: string };

@roninjin10
roninjin10 / zigbreaking.md
Last active April 28, 2026 19:53
Zig 0.16.0

Zig 0.15.x

Language / type system

  • usingnamespace keyword removed entirely; refactor to explicit imports / conditional expressions (the mixin pattern now uses zero-bit fields plus @fieldParentPtr("name", m)).
  • async and await keywords removed; @frameSize builtin removed. To be replaced by stdlib I/O-based implementations.
  • Packed union fields no longer accept align attributes (matches packed structs).
  • New rules for undefined: only operators that cannot trigger illegal behavior accept
@roninjin10
roninjin10 / smithersfeedback.md
Created April 16, 2026 20:55
Smithers Feedback

Smithers: Biggest Issues, Opportunities, and Hardening Plan

Date: 2026-04-16
GeneratedBy: Chat GPT Pro Audience: Smithers / JJHub maintainers
Basis: full read of smithers.sh/llms-full.txt, current codeplaneapp/smithers repo structure, JJHub docs, the uploaded field report, and the uploaded Live Run DevTools UI spec.


Executive summary

@roninjin10
roninjin10 / issue.md
Created April 6, 2026 01:42
Child processes not killed on workflow cancel

Child processes not killed on workflow cancel

Problem

Cancelling running workflows does not kill grandchild processes. When a user cancels workflows (e.g. via Ctrl-C or the cancel API), only the direct child process gets SIGTERM/SIGKILL — but any processes that child spawned (Claude agents, git, npm, etc.) survive and keep running. This leads to unbounded process accumulation.

@roninjin10
roninjin10 / airlock.md
Created April 2, 2026 19:24
Airlock ticket

<Sandbox> — remote task execution via Airlock bundles

Revision Summary

  • Reframed the plan around a shared child-workflow execution primitive instead of assuming the current JSX <Subflow mode="childRun"> runtime already does this.
  • Split delivery into phases: local/mock transport first, remote transports second, streaming/signals/diff review after that.
  • Added prerequisites on transactional writes, bundle validation, and task heartbeats.