What we have right now
- Good local only experience for writing general code
- 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
- Setup as easy as signing up for a Web2 site (e.g. Replit).
- Closed-loop experience on mobile or desktop:
- Prompt agent with issue (in the Github sense),
- Agent reads issues, code, docs, etc. to understand context and create plan of attack,
- Agent iteratively:
- Writes/edits files to accomplish issue,
- Lints, compiles, tests to get feedback about state of code,
- Agent "outputs": dumps to local file storage or commits & pushes to a repo branch,
- 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.
- 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.
- Onchain is as tightly integrated as BE/FE.
Commentary on goals
- 1 requires architecting and infrastructure work.
- 2 a-d are general coding tasks.
- The agent needs to be able to understand the framework it is working in.
- It needs to be able to reference docs as appropriate.
- It needs to be able to move about and work in a filesystem.
- It needs to be able to lint, compile, and run tests.
- 2 e requires a publicly-accessible Hyperware.
- 3 is abstract, relies on "network effects" that don't exist, and needs a specific usecase to be compelling. What is an API people will actually want to use this for? MVP must make incorporating that API Just Work.
- 4 Can likely make profitable use of
kitfake nodes and fake chain, since testing deployment end-to-end will be important here. There is a ton of infra work related to deployment here that will need to be made easy for the agent to do. We need to experiment with this by-hand to figure out the flows and the conventions fortba/(is that too specific?) included with packages.
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
- Scope deployment MCP,
- Implement it (as a process?),
- 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:
process_libdocs.- A subset of the Hyperware Book.
Specific action items
- Develop a way to programmatically extract the relevant parts of
process_libdocs. This probably looks like function signatures, methods, etc., without tons of prose. We may be able to make use ofcargo docor some existing tool, but I haven't had success with them yet. Work product here looks like a script that can be run withprocess_libas input and short, well-formatted markdown file as output. - Split Hyperware Book into two documents:
- Core developer guide. This document targets developers who want to contribute to Hyperdrive or build their own runtime.
- App developer guide. This document targets developers who want to write userspace applications for the Hyperware stack.
- 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_libat one-shotting packages and issues on existing packages.- Good enough? Done.
- Further refinement? Refine.
Incorporating onchain with packages
We can currently do onchain reads reasonably well. We still need, minimally:
- Kimap writes,
- Onchain writes, generally,
- TBA integration.
Split Kibitz into a proper front/backend Hyperdrive package
- Currently, Kibitz is nearly entirely frontend.
- Want to split out all state, interaction with APIs, etc, into backend.
- Allows cross-device persistence, as expected by user.
- Opens door to possible alternative methods of interacting with agent (e.g. different frontends; Apple Watches; etc).
- Improve maintainability.
Make Kibitz frontend more maintainable
- Frontend is nearly entirely LLM-generated
- After splitting out backend, should probably rewrite frontend from scratch
- Should we redesign parts of interface? What is functional? What could be improved?