NHacker Next
  • new
  • past
  • show
  • ask
  • show
  • jobs
  • submit
▲Show HN: AgentRun: DSL to turn agents into workflows (github.com)
JustFinishedBSG 2 hours ago [-]
I'll study it as I am toying with "what should a workflow definition language look like".

My current vision, and prototype, is that it should be as close as possible to a "real" language as possible so that both the user and the agent know immediately how to use it and how it functions.

So for `pi` it means using typescript.

Then the UI is derived from the AST / code as much as possible and for things that aren't neatly possible like that I eventually add small semantic helpers that define the UI.

For example "plan -> execute" is:

      await flow.unroll(
      remaining.map(point => ({
          key: point.id,
          label: point.objective,
      })),
      async () => {
          for (const point of remaining) {
          await flow.item(point.id, async () =>
              await flow.agent(executePoint, {
              title: `Point ${point.id}`,
              prompt: point.objective,
              }));
          }
      },
      { title: `Plan r${planRevision}` },
      );
( simplified code ) in my implementation and `unroll` is only there to have a nice

      ● Plan r1 · 1/3 · active
       1. Inspect parser behavior
      ● 2. Add empty-input coverage
      ○ 3. Run focused checks
UI instead of a plain "Plan · 1/3" UI with no detail (which would happen if I just used a for loop, yes it works)
dummydummy1234 2 minutes ago [-]
How are you thinking about state management when you handle things? I have been playing around this and the state gets messy fast.
frank_clover 2 hours ago [-]
[dead]
lubosPetorvic 9 hours ago [-]
[dead]
ethan1998 6 hours ago [-]
[dead]
Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact
Rendered at 20:39:59 GMT+0000 (UTC) with Wasmer Edge.