diff --git a/PLAN.md b/PLAN.md new file mode 100644 index 0000000..d96071e --- /dev/null +++ b/PLAN.md @@ -0,0 +1,128 @@ +# Collab Club — Plan + +A collaborative coding club building **positive, non-commercial, open-source software**. +This document is the living plan: the vision, the operating principles, how we work, +and how we keep improving the harness (the pi agent and this project itself) over time. + +This is the start of a long thread. It is meant to grow — more people join, ideas +accrue, the plan gets revised. Treat this as a shared, living document, not a spec. + +--- + +## 1. Vision + +We are a group of people who like to build software together, in the open, for its +own sake. No VC, no monetization pressure, no corporate agenda. The output is +open-source software that is useful, well-built, and fun to build. + +We are also a *coding club* in the strongest sense: we want to get good at making +software collaboratively — and that includes getting good at the tools we use to +make it. Chief among those tools is the **AI harness** (currently pi) that mediates +the club's shared coding sessions. The harness is first-class project material. + +### Principles + +- **Positive.** We build things that help people. If a project would cause real harm, + we don't build it. +- **Non-commercial.** No ads, no selling user data, no licensing tricks, no lock-in. + License everything under permissive/OSI-approved licenses (or copyleft where the + team agrees it's right for the project). +- **Open source.** The code is visible and, wherever possible, contributions are + welcome. Nothing proprietary that we can avoid. +- **Collaborative.** We review, we share, we credit. The thread is the clubhouse; + git history is the record of our work. + +--- + +## 2. The environment (how we work) + +This is the **pi-collab** harness, described in detail in `README.md`. Quick summary +for newcomers: + +- Multiple people chat in a shared terminal room; identity is your **atproto DID**, + so we know who said what and handles can change without breaking attribution. +- A pi (AI coding agent) joins the conversation as a participant and does actual work: + reading, editing, and writing code in this repository. +- Each "turn" of work is **committed to git** by the host's `watch.mjs` — the agent + deliberately has **no git access**. Versioning is done on the host, so the agent + can't tamper with history or hide changes. +- The agent runs **sandboxed**: no internet except through a proxy, no git, a + read-only rootfs. This keeps the working session confined and auditable. + +**Decision recorded:** the agent must never have git (or general network) access. +Versioning and release is a human/host responsibility. This was decided in-thread +and is enforced in the sandbox `Dockerfile` (git removed) and in `.gitignore`. + +--- + +## 3. The two bodies of work + +We actually have two things we're building, and it's important to keep both: + +### A. The club's outward projects +The positive non-commercial open-source software we make for the world. These will +live in their own repos as they spin up. Candidates and ideas live in [ideas](#5-ideas). + +### B. The harness itself +The tool we use to do (A) — pi, pi-collab, this workspace, the sandbox, the proxy. +Improving the harness is an ongoing, first-class activity: +- making the agent smarter and safer, +- improving the collaborative workflow, +- hardening the sandbox and the permission model, +- making the environment easier for new members to join. + +Both feed each other: we use the harness to build the projects, and building real +projects teaches us what the harness needs. + +--- + +## 4. Operating principles + +- **Commits are the record.** Each turn closes with a commit carrying the author's + DID. Never rewrite history silently; if history is wrong, fix it in a new commit. +- **The agent has no git.** If you find the agent running git, that's a bug to fix. +- **Nothing is written without attribution.** Every change is tied to a member's DID. +- **New members are welcome.** Joining should be as easy as logging in with an + atproto account and running `npm run client -- --nick yourname`. +- **Safe by default.** The sandbox contains the agent; the proxy gates egress; the + agent never sees the API key. This is a feature, not a limitation. +- **Plan in the open.** Bigger changes to the harness or a project start with a plan + update (like this file) or a short thread note, then code. + +--- + +## 5. Ideas + +A place for potential projects (the "positive, non-commercial, open source" pile). +These are seeds, not commitments. + +- *(empty for now — this is where the club adds its first real project ideas.)* + +### Harness improvements (this repo) — always open +- Improve agent safety: expand what the sandbox blocks, add audit logging of every + tool call, and make the permission model richer than all-or-nothing. +- Make joining easier: one-command client, clearer onboarding, possibly a web client. +- Better turn recording: more granular change summaries in commit messages. +- Self-documenting: keep the harness docs (README/PLAN) in sync with reality. + +--- + +## 6. Rules for code review / decision making + +- Small, reviewable changes. Big things come as a series of small commits. +- Attribute work to DIDs; display names/nicks are cosmetic. +- The whole thread is the audience — assume we'll read the history later. +- Disagreements settle by conversation in the thread; the record shows who said + what, so we can be accountable to each other. + +--- + +## 7. How to contribute to THIS plan + +Anyone in the room can propose changes to the plan by asking the agent to edit +this file, or by writing out the change in the thread. Since turns are committed, +every edit to the plan is part of the permanent record. + +--- + +*Draft 1 — initial framing. This will change; that's the point.* \ No newline at end of file diff --git a/data/pi/sessions/2026-09-03T18-41-00-408Z_pi-collab.jsonl b/data/pi/sessions/2026-09-03T18-41-00-408Z_pi-collab.jsonl index 9fe3e4d..7de56ba 100644 --- a/data/pi/sessions/2026-09-03T18-41-00-408Z_pi-collab.jsonl +++ b/data/pi/sessions/2026-09-03T18-41-00-408Z_pi-collab.jsonl @@ -167,3 +167,6 @@ {"type":"message","id":"8bbd4699","parentId":"ff2f36fa","timestamp":"2026-09-03T19:37:58.087Z","message":{"role":"toolResult","toolCallId":"call_259aa487f9994a6bbe2d8e44","toolName":"bash","content":[{"type":"text","text":"total 656\ndrwxr-xr-x 6 root root 4096 Sep 3 19:23 .\ndrwxr-xr-x 3 root root 4096 Sep 3 19:23 ..\n-rw-r--r-- 1 root root 544664 Sep 3 19:23 CHANGELOG.md\n-rw-r--r-- 1 root root 32862 Sep 3 19:23 README.md\ndrwxr-xr-x 11 root root 4096 Sep 3 19:23 dist\ndrwxr-xr-x 3 root root 4096 Sep 3 19:23 docs\ndrwxr-xr-x 4 root root 4096 Sep 3 19:23 examples\ndrwxr-xr-x 83 root root 4096 Sep 3 19:23 node_modules\n-rw-r--r-- 1 root root 59437 Sep 3 19:23 npm-shrinkwrap.json\n=== dist? ===\nbun\nbundle\ncli\ncli.d.ts\ncli.d.ts.map\ncli.js\ncli.js.map\nclient\nconfig.d.ts\nconfig.d.ts.map\n"}],"isError":false,"timestamp":1788464278087}} {"type":"message","id":"ae1f2d4a","parentId":"8bbd4699","timestamp":"2026-09-03T19:37:59.901Z","message":{"role":"assistant","content":[{"type":"thinking","thinking":"I have access to the pi package installed at `/usr/local/lib/node_modules/@earendil-works/pi-coding-agent/`. It has README, docs, examples, dist (bundled JS). So I have access to the pi source code (at least the bundled JS and docs). \n\nNow, the user wants to start a plan document for a collaborative coding club doing positive non-commercial open source software, and constantly improve the AI harness. The user wants to involve other people.\n\nLet me create a plan document in the workspace. Let me write a PLAN.md (or plan doc). I'll create something thoughtful.\n\nLet me answer the question about pi source access clearly, then create the plan doc.\n\nRegarding the pi source: The package is installed globally and readable. It contains bundled dist JS, README, docs, examples. That's the pi source code (compiled/bundled). I can read and study it to improve the harness.\n\nLet me create a plan document. I'll write it to /workspace/PLAN.md or maybe a docs folder. Let me create it in the workspace root as PLAN.md.\n\nLet me write a good initial plan document that captures the vision, goals, operating principles, structure, roadmap, and how it relates to pi harness development.","thinkingSignature":"reasoning_content"},{"type":"text","text":"Yes — I have access to the installed pi package at `/usr/local/lib/node_modules/@earendil-works/pi-coding-agent/`. It includes the `README.md`, `docs/`, `examples/`, and the bundled source in `dist/`. So I can read and study it to improve the harness (the bundled JS isn't the original TypeScript source, but it's fully readable and studyable).\n\nLet me draft an initial plan document for"},{"type":"toolCall","id":"call_a2ca24c5008e4b37ad8794ad","name":"bash","arguments":{"command":"cd /workspace && ls -d docs 2>/dev/null || echo \"no docs dir yet\"; ls *.md"}}],"api":"openai-completions","provider":"greenpt","model":"deepseek-v4-flash-0731","usage":{"input":534,"output":425,"cacheRead":25088,"cacheWrite":0,"reasoning":263,"totalTokens":26047,"cost":{"input":0,"output":0,"cacheRead":0,"cacheWrite":0,"total":0}},"stopReason":"toolUse","timestamp":1788464278089,"responseId":"bbdc9eb0709e461c960cae9dc10f9465","rawStopReason":"tool_calls"}} {"type":"message","id":"fb663a4f","parentId":"ae1f2d4a","timestamp":"2026-09-03T19:37:59.916Z","message":{"role":"toolResult","toolCallId":"call_a2ca24c5008e4b37ad8794ad","toolName":"bash","content":[{"type":"text","text":"no docs dir yet\nREADME.md\n"}],"isError":false,"timestamp":1788464279916}} +{"type":"message","id":"9c336375","parentId":"fb663a4f","timestamp":"2026-09-03T19:38:06.496Z","message":{"role":"assistant","content":[{"type":"thinking","thinking":"Let me create a PLAN.md document. I'll write a comprehensive initial plan for the collaborative coding club.","thinkingSignature":"reasoning_content"},{"type":"text","text":"I'll create a plan document in the workspace.\n\n"},{"type":"toolCall","id":"call_67b23a13d38b485b91d18f69","name":"write","arguments":{"path":"/workspace/PLAN.md","content":"# Collab Club — Plan\n\nA collaborative coding club building **positive, non-commercial, open-source software**.\nThis document is the living plan: the vision, the operating principles, how we work,\nand how we keep improving the harness (the pi agent and this project itself) over time.\n\nThis is the start of a long thread. It is meant to grow — more people join, ideas\naccrue, the plan gets revised. Treat this as a shared, living document, not a spec.\n\n---\n\n## 1. Vision\n\nWe are a group of people who like to build software together, in the open, for its\nown sake. No VC, no monetization pressure, no corporate agenda. The output is\nopen-source software that is useful, well-built, and fun to build.\n\nWe are also a *coding club* in the strongest sense: we want to get good at making\nsoftware collaboratively — and that includes getting good at the tools we use to\nmake it. Chief among those tools is the **AI harness** (currently pi) that mediates\nthe club's shared coding sessions. The harness is first-class project material.\n\n### Principles\n\n- **Positive.** We build things that help people. If a project would cause real harm,\n we don't build it.\n- **Non-commercial.** No ads, no selling user data, no licensing tricks, no lock-in.\n License everything under permissive/OSI-approved licenses (or copyleft where the\n team agrees it's right for the project).\n- **Open source.** The code is visible and, wherever possible, contributions are\n welcome. Nothing proprietary that we can avoid.\n- **Collaborative.** We review, we share, we credit. The thread is the clubhouse;\n git history is the record of our work.\n\n---\n\n## 2. The environment (how we work)\n\nThis is the **pi-collab** harness, described in detail in `README.md`. Quick summary\nfor newcomers:\n\n- Multiple people chat in a shared terminal room; identity is your **atproto DID**,\n so we know who said what and handles can change without breaking attribution.\n- A pi (AI coding agent) joins the conversation as a participant and does actual work:\n reading, editing, and writing code in this repository.\n- Each \"turn\" of work is **committed to git** by the host's `watch.mjs` — the agent\n deliberately has **no git access**. Versioning is done on the host, so the agent\n can't tamper with history or hide changes.\n- The agent runs **sandboxed**: no internet except through a proxy, no git, a\n read-only rootfs. This keeps the working session confined and auditable.\n\n**Decision recorded:** the agent must never have git (or general network) access.\nVersioning and release is a human/host responsibility. This was decided in-thread\nand is enforced in the sandbox `Dockerfile` (git removed) and in `.gitignore`.\n\n---\n\n## 3. The two bodies of work\n\nWe actually have two things we're building, and it's important to keep both:\n\n### A. The club's outward projects\nThe positive non-commercial open-source software we make for the world. These will\nlive in their own repos as they spin up. Candidates and ideas live in [ideas](#5-ideas).\n\n### B. The harness itself\nThe tool we use to do (A) — pi, pi-collab, this workspace, the sandbox, the proxy.\nImproving the harness is an ongoing, first-class activity:\n- making the agent smarter and safer,\n- improving the collaborative workflow,\n- hardening the sandbox and the permission model,\n- making the environment easier for new members to join.\n\nBoth feed each other: we use the harness to build the projects, and building real\nprojects teaches us what the harness needs.\n\n---\n\n## 4. Operating principles\n\n- **Commits are the record.** Each turn closes with a commit carrying the author's\n DID. Never rewrite history silently; if history is wrong, fix it in a new commit.\n- **The agent has no git.** If you find the agent running git, that's a bug to fix.\n- **Nothing is written without attribution.** Every change is tied to a member's DID.\n- **New members are welcome.** Joining should be as easy as logging in with an\n atproto account and running `npm run client -- --nick yourname`.\n- **Safe by default.** The sandbox contains the agent; the proxy gates egress; the\n agent never sees the API key. This is a feature, not a limitation.\n- **Plan in the open.** Bigger changes to the harness or a project start with a plan\n update (like this file) or a short thread note, then code.\n\n---\n\n## 5. Ideas\n\nA place for potential projects (the \"positive, non-commercial, open source\" pile).\nThese are seeds, not commitments.\n\n- *(empty for now — this is where the club adds its first real project ideas.)*\n\n### Harness improvements (this repo) — always open\n- Improve agent safety: expand what the sandbox blocks, add audit logging of every\n tool call, and make the permission model richer than all-or-nothing.\n- Make joining easier: one-command client, clearer onboarding, possibly a web client.\n- Better turn recording: more granular change summaries in commit messages.\n- Self-documenting: keep the harness docs (README/PLAN) in sync with reality.\n\n---\n\n## 6. Rules for code review / decision making\n\n- Small, reviewable changes. Big things come as a series of small commits.\n- Attribute work to DIDs; display names/nicks are cosmetic.\n- The whole thread is the audience — assume we'll read the history later.\n- Disagreements settle by conversation in the thread; the record shows who said\n what, so we can be accountable to each other.\n\n---\n\n## 7. How to contribute to THIS plan\n\nAnyone in the room can propose changes to the plan by asking the agent to edit\nthis file, or by writing out the change in the thread. Since turns are committed,\nevery edit to the plan is part of the permanent record.\n\n---\n\n*Draft 1 — initial framing. This will change; that's the point.*"}}],"api":"openai-completions","provider":"greenpt","model":"deepseek-v4-flash-0731","usage":{"input":208,"output":1419,"cacheRead":25856,"cacheWrite":0,"reasoning":22,"totalTokens":27483,"cost":{"input":0,"output":0,"cacheRead":0,"cacheWrite":0,"total":0}},"stopReason":"toolUse","timestamp":1788464279920,"responseId":"054730f34e684a6eafd858c032e32d35","rawStopReason":"tool_calls"}} +{"type":"message","id":"7f5e5055","parentId":"9c336375","timestamp":"2026-09-03T19:38:06.503Z","message":{"role":"toolResult","toolCallId":"call_67b23a13d38b485b91d18f69","toolName":"write","content":[{"type":"text","text":"Successfully wrote 5678 bytes to /workspace/PLAN.md"}],"isError":false,"timestamp":1788464286502}} +{"type":"message","id":"97031b92","parentId":"7f5e5055","timestamp":"2026-09-03T19:38:08.542Z","message":{"role":"assistant","content":[{"type":"text","text":"I've created **`/workspace/PLAN.md`** — a living plan document for the collaborative coding club.\n\n## Highlights\n\n**Vision & principles:** positive, non-commercial, open-source software built together. Explicit commitments to permissive licensing, real collaboration, and credit/attribution by DID.\n\n**How we work:** summarized the pi-collab harness — DID-based identity, the sandboxed agent with no git/network, and host-side versioning. I recorded the **decision that the agent must never have git** (as we just enforced) as a permanent principle.\n\n**Two bodies of work** (the key framing for your idea):\n1. The club's outward projects (the positive OSS we ship).\n2. **The harness itself** — improving pi/pi-collab is first-class work, not an afterthought. Building real projects and improving the tool feed each other.\n\n**Structure:** operating principles, review/decision rules, an open **Ideas** section for the first real project, and a standing list of harness-improvement opportunities (sandbox hardening, audit logging, easier onboarding, better turn recording).\n\n**Living doc:** framed explicitly as a draft meant to be edited and grow as people join the thread.\n\nOn your question about pi source: **yes, I have access** to the installed pi package (`README.md`, `docs/`, `examples/`, and bundled `dist/` source) — so I can read and study it to work on improving the harness, as you want.\n\nWant me to tighten any section, or shall I leave it as a draft for the thread to react to?"}],"api":"openai-completions","provider":"greenpt","model":"deepseek-v4-flash-0731","usage":{"input":1653,"output":335,"cacheRead":25856,"cacheWrite":0,"reasoning":1,"totalTokens":27844,"cost":{"input":0,"output":0,"cacheRead":0,"cacheWrite":0,"total":0}},"stopReason":"stop","timestamp":1788464286505,"responseId":"ed5be8dd8da245f8a2be075d824af8ff","rawStopReason":"stop"}}