Something went wrong. Try again.
:3
Something went wrong. Try again.
An attempt to see what happens when you take an agent and throw it in a container with free access on itself and a slightly adversarial personality.
REDESIGN.md contains the original plans used for the current design, but they're a bit out of date.
File tree:
docker-compose.yml: an example docker-compose for the containeralex: the main project
alex:
Uses bun.
apis: implementations of globals available in theexecutetool.prompts: all initial text files needed for the agent to set itself up.src: the main source code.context.ts: manages the agent's wake-up status.credits.ts: handles the agent's run-time limitscycle.ts: handles running a cycleexecute.ts: dispatcher for the execute tool and slight sandboxinglifecycle.ts: the main sleep-launch-wakeup loopmain.ts: main entrypoint for one cycle. Makes sure the agent is not locked, configuration is set, etc.session.ts: handles the API callsstate.ts: manages cross-cycle state like cycle counts and wake-up timestools.ts: implementations of all toolsutils.ts: utility functions used throughout the project
Dockerfile: the dockerfile used to build the container. Uses Nix so that the agent can install programs.entrypoint.sh: loads up the right Nix profile so that commands happen in the right environment.flake.nix: the default installed things we needpackage.json: dependencies for typescriptsetup.ts: a script to create an agent and set it uptsconfig.json: typescript configuration
Future work: there's a few TODOs in the code. Something useful in the future would be some processes running in the background for 2-way communication, with APIs or something.
Separate from the alex folder, so that alex really only talks about the agent and interacts via files.