What we have right now

  1. Good local only experience for writing general code
  2. Good mobile experience for writing general code with bad setup

First thrust: we need to make mobile experience setup easier

Second thrust: we need to “close the loop”: make deploying and testing easier

Goals

  1. Setup as easy as signing up for a Web2 site (e.g. Replit).
  2. Closed-loop experience on mobile or desktop:
    1. Prompt agent with issue (in the Github sense),
    2. Agent reads issues, code, docs, etc. to understand context and create plan of attack,
    3. Agent iteratively:
      1. Writes/edits files to accomplish issue,
      2. Lints, compiles, tests to get feedback about state of code,
    4. Agent "outputs": dumps to local file storage or commits & pushes to a repo branch,
    5. Agent deploys: if appropriate, new state of project should be usable as an end-user would use it. For a package, this looks like deployment on a node.
  3. APIs are as easy as libs. Just like agents today can "just use" libraries, Kibitz should be able to consume API docs and make use of them in programs it creates. It should also be able to interact with an API provider to smoothly acquire API keys and place them in the proper place so that they can be used. This may involve exchange of money, so it should have access to a cryptocurrency wallet and have the ability to spend.
  4. Onchain is as tightly integrated as BE/FE.

Commentary on goals

Paths forward

General vs Hyperware-specific code

First decision that must be taken is: are we designing for general code or Hyperware-specific code?

Argument for general:

LLMs are only going to become more powerful. We shouldn't build infrastructure that paints us into a corner in the future. Therefore we should build Kibitz as generally-as-possible to take advantage of improving LLMs.

Argument for Hyperware-specific:

We don't have any advantage in the general-code domain, and, in fact, we're significantly behind other projects here. The space is too crowded and we need a differentiator, so we need to double-down on our strengths. Therefore, we must double-down on Hyperware.

Back to general vs Hyperware-specific:

Ultimately, we can't achieve many of our goals without Hyperware. However, we do want the ability to produce work products other than Hyperware packages. E.g., libraries, smart contracts, ...

Can we wrap these general work products into Hyperware packages for testing? Maybe. E.g., an examples/ dir within a library.

My concern here is that we are overoptimizing of a specific case and risk losing the real value here.

Perhaps what we should do is: create an MCP server that our agent can use to do things like deployment when it is appropriate. In this way we avoid coercing the agent to turn everything into a package, but give it the ability to work with packages.

Specific action items

  1. Scope deployment MCP,
  2. Implement it (as a process?),
  3. Test it: does agent properly use it in general (i.e. don't use it) and Hyperware-package (i.e. do use it) case?

LLM-targeted Hyperware docs

We need to develop LLM-targeted docs. These docs are a distilled subset of the "app developer" docs for humans, which are a combination of:

Specific action items

  1. Develop a way to programmatically extract the relevant parts of process_lib docs. This probably looks like function signatures, methods, etc., without tons of prose. We may be able to make use of cargo doc or some existing tool, but I haven't had success with them yet. Work product here looks like a script that can be run with process_lib as input and short, well-formatted markdown file as output.
  2. Split Hyperware Book into two documents:
    1. Core developer guide. This document targets developers who want to contribute to Hyperdrive or build their own runtime.
    2. App developer guide. This document targets developers who want to write userspace applications for the Hyperware stack.
  3. Determine if App developer guide is good enough to just plug into agent, or if it needs further refinement. Determination based on size and effectiveness of agent prompted with it + process_lib at one-shotting packages and issues on existing packages.
    1. Good enough? Done.
    2. Further refinement? Refine.

Incorporating onchain with packages

We can currently do onchain reads reasonably well. We still need, minimally:

  1. Kimap writes,
  2. Onchain writes, generally,
  3. TBA integration.

Split Kibitz into a proper front/backend Hyperdrive package

Make Kibitz frontend more maintainable

Original gist on GitHub