bespex

Tutorial

Plan and drafts: the Workbench

Purpose: You see in the plan what's next in your project, look through the AI's drafts and decide which of them go into the project.

Not everything that comes about while working with the AI belongs in the project right away. A session sketches an interface, writes a concept to look at or creates a test script. And besides the single turn there is the bigger question of what’s next. You find both in the Workbench tab: at the top the plan of your project, below it the AI’s drafts.

The plan

The plan comes from two files in your project: ROADMAP.md and TODO.md. CodeDeck reads them and shows you what’s coming up. You don’t have to change anything in CodeDeck for this. You keep the files up to date yourself or let the AI do it.

The Plan card from ROADMAP.md: the stage "M2 · Limits per client" in progress, "1 of 4 done", below it the tasks T9 struck through and "done", T11 with the chip "next", T12 and T13, at the bottom the note on dragging and the line "Also in progress: 2 stages", "TODO: 1 open question · 4 tasks" and "4 ideas"

In ROADMAP.md you divide a larger piece of work into stages. Each stage is a heading such as ## M2: Limits per client with a line Status: in progress and its tasks below it as a list with check boxes. TODO.md holds all tasks, open questions and ideas with their details. A task carries the same ID in both files, for example T11; that is how CodeDeck finds it in both.

The card shows the current stage with its tasks. Tasks that are done are struck through and say done, the next open one carries the chip next. At the top right you see how many tasks are already done.

You decide the order yourself: drag a task with the mouse to another place, or choose Make it next when you point at it. CodeDeck writes the new order into ROADMAP.md. When you point at a task you also find Copy reference. With it you put the task with its ID and its stage on the clipboard and give it to a session in the chat, for example with “Implement this:” in front of it.

The line at the bottom of the card unfolds further parts: other stages that are also in progress, the open questions and tasks from TODO.md and the ideas. Ideas are drafts for later: none of them is built without your go-ahead.

You also see the next task without opening the Workbench: the line Next up at the top of the deck shows the current stage with its progress and the next task. A click on it opens the plan and highlights the task.

The drafts

When an AI session creates something for you to look at, a sketch, a concept or a trial page, it puts it in the folder .scratch/ of your project. The start rules that CodeDeck gives every session tell it to. Git ignores this folder, so none of it ends up in a commit by accident. Every subfolder in .scratch/ is a draft.

The Drafts card with 5 entries, pinned ones first: "Limiter: Grenzen je Client" with a pin and limiter-sketch.html, "Werkbank neu: drei Zonen" with the label NEW, a thumbnail and the files index.html, variante-b.html and Zonen.tsx, "Icons" with four SVG files

Each draft stands as an entry with a title CodeDeck takes from its content, with its age and its folder. Below it are the files you are meant to open, each with the program it opens in. A double click opens a file for viewing, the middle mouse button for editing. Whatever else is in the folder is summed up in one line. Drafts you haven’t seen yet carry the label new, and a dot on the Workbench tab shows you that there is something new.

For each draft you decide what becomes of it:

  • Pin keeps it at the top of the list. CodeDeck never clears away pinned drafts by itself.
  • Move into the project… takes it over into your project. CodeDeck shows you the folder tree of your project and suggests a suitable place. You can also simply drag a draft into the Files column.
  • Move to trash throws it away. You can get it back from there.

Everything else CodeDeck clears away by itself after a while. When that happens is shown on the draft, for example “tidied up in 3 days”. You set how long which kind of file stays in the settings.

Some sessions also publish a page elsewhere, for example as a shared page on the web. Then the draft of the same session shows ↗ published with the link. If there is no draft for it, the page appears as an entry of its own with ↗ only published.

Whatever else came up

Below the drafts, a footer sums up whatever else came up. You unfold each line with a click.

The footer of the drafts: "Handovers and reviews 1 · in .scratch/, written by CodeDeck", "Loose files 5 · scripts, data and outputs; they expire by the rules" with "Tidy up…" and "Outside the project 1 · written by AI sessions elsewhere, e.g. in /tmp; fetch what you want to keep"

  • Handovers and reviews are the tasks CodeDeck wrote for a second opinion or a relief, with their results.
  • Loose files are files that lie directly in .scratch/ instead of in a draft folder, for example scripts, test data or outputs. Tidy up… suggests what can go, what you should look at first and what stays. Whatever you tick goes to the trash.
  • Outside the project lists files that sessions put elsewhere, for example in /tmp. With Into scratch you copy what you want to keep into your project; the original stays where it is. With Forget you take an entry off the list.

Try it out

Create a file ROADMAP.md with one stage and three tasks in your project, or ask your session to do it. Open the Workbench and look at the plan. Drag the last task to the top and look at how ROADMAP.md has changed. Then ask a session to draft a small HTML sketch for you. As soon as it appears under Drafts, open it with a double click and pin it.

More on this

  • Workbench: the scratch folder, findings and “new” in detail.
  • Settings: how long files stay in the scratch folder.