Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
24e9e5f
Update README.md
andyk May 31, 2024
c5bee1e
Update README.md - add screenshot
andyk Jun 21, 2024
6ed1d60
Tweaks to README.md
andyk Jul 3, 2024
084f47b
Update README.md
andyk Jul 3, 2024
15fffd5
Update README.md
andyk Jul 3, 2024
cce9090
Update README.md
andyk Jul 3, 2024
7098964
Update README.md
andyk Jul 3, 2024
cf17b60
Update README.md
andyk Jul 3, 2024
2c75aea
update README
justin-fiedler Jul 14, 2024
159c760
add basic login screen and sign out button
justin-fiedler Jul 14, 2024
c5a032a
make run-tailwind executable
justin-fiedler Jul 14, 2024
e8aaa61
extract ConnectionStatusIcon into dedicated component
justin-fiedler Jul 14, 2024
105142c
extract HeadlongIcon into dedicated component
justin-fiedler Jul 14, 2024
7211058
extract PlayPauseIcon into dedicated component
justin-fiedler Jul 14, 2024
2d9f41e
simplify component imports
justin-fiedler Jul 14, 2024
aa789db
improve SignOutButton styles
justin-fiedler Jul 14, 2024
22780eb
default to supabaseAnonKey, remove supabaseServiceRoleKey
justin-fiedler Jul 14, 2024
8a2d275
Merge remote-tracking branch 'origin/main' into auth
justin-fiedler Jul 14, 2024
5cd0ee3
separate code and instructions in README
justin-fiedler Jul 14, 2024
da7be6a
minor README cleanup
justin-fiedler Jul 14, 2024
ddd0fe4
minor README cleanup
justin-fiedler Jul 14, 2024
dd184eb
add react-router, new screens for login & reset-password, session che…
justin-fiedler Jul 17, 2024
4ff1a3b
reset password entry state on supabase error during submit
justin-fiedler Jul 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 36 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
Headlong is a framework for human users to create and curate high quality chain-of-thought datasets and use them in AI Agents.
<img src="https://github.com/andyk/headlong/assets/228998/2ef972f0-95d1-4dcf-b1c0-4e76247916fb" alt="screenshot of Headlong webapp" align="right" style="width:500px">


## Architectural Parts

The webapp frontend is in `packages/webapp` - it's a vite Typescript project.

Expand All @@ -11,25 +15,47 @@ The environment uses GPT4 function calling to use tools, including a `terminalSe
The webapp communicates with the environment via a Supabase `thoughts` table and Supabase's realtime system.


## install and run
## Install and run

### == ht ==
Download the latest `ht` binary from https://github.com/andyk/ht/releases/latest
and add it to your `PATH`.

### == thought server ==
1. You need `python >= 3.10` since we use the `match` syntax.
2. Create or get a copy of `thinkers.yaml` and put it into `packages/thought_server/`
3. Then in a new terminal run:
```shell
cd packages/thought_server
virtualenv venv
. ./venv/bin/activate
pip install -r requirements.txt
. ./launch.sh
```

### == headlong UI webapp ==
By default, your webapp will connect to the main env running in EC2
via supabase realtime. If you want to override that and use a local
env, then you'll need to run the terminalServer and env locally.
We strongly recommend you run these in a docker instance.

```shell
cd packages/webapp
npm install
npm run dev
```

# in a new terminal
cd packages/thought_server
virtualenv env
./venv/bin/activate
python thought_server.py

# in a new terminal
### == terminal server ==
In a new terminal run:
```shell
cd packages/env
npm install
npm run thoughtServer
npm run terminalServer
```

# in a new terminal
### == env daemon ==
In a new terminal run:
```shell
cd packages/env
npm run env
```
Loading