Elffuss BraidHub

kikocis/continue public

main · 3.5 KiBSourceRawPermalink

cn

Overall development goals

Fight to keep cn simple. This is an active process. The default is that cn will become disastrously complicated.

Maintainability

Maintain minimal code (avoid new features unless there is overwhelming demand or they remove a clear blocker for many users). If someone offers up a feature you should seek to understand what they actually want and then decide as a maintainer of cn whether this can fit into some larger concept in a simple way. If someone asks to make something configurable, you should probably consider just changing the default.

Don't write code by hand

Use cn for everything. You should very rarely need to write code by hand. If you find yourself doing this outside of small tweaks, you should ask what about the codebase is causing cn to be unable to make the change.

If we build a system that allows us to entrust all changes to cn then it will be more reliable than us writing the code. Not because we can't write better code, but because cn is consistently thorough + it will force us to build the right systems around the code.

Do not test by hand

If you find yourself using npm run start to test that existing functionality is still working, this means that you are missing a test. A green check mark from npm test should be full proof that the code can be shipped. See our testing strategies here.

For new features you obviously need to run them yourself to apply your taste. cn can't match that right now.

Minimize the number of concepts

The spec for cn (if it were to be fully written out) should be relatively short. This helps keep the code / spec consistent. It also allows us to keep the docs short and makes it easier for users to understand.

Low tolerance

Tolerance for the following should be very close to zero:

If we are inundated then we should build a system to solve that. For example, if it is tiresome to address all AI code reviews, then set up a trigger to have cn automatically address them.

Start with a spec

High level concepts / features should have a spec when possible. Good examples of this are modes, permissions, OTLP metrics, and wire format. Like code, the spec can and should be largely auto-generated.

Codebase Design