Skip to content

v0.5.0

Choose a tag to compare

@github-actions github-actions released this 01 Nov 21:40
· 392 commits to main since this release
511ab6d

A schematic is now yours to put right: F and R work on every symbol, and names, values, power symbols and whole nets go where you want them. Wires join a pin from any side and go round the parts in their way, and Issues hold only what is wrong with the circuit. Editing a big design is several times faster, and the Codex CLI can answer the chat.

Issues

  • Issues are about the circuit: how a wire or a part is drawn no longer counts as an issue. The Issues list, the counts in the top bar and on a changeset, and the design document now hold what is wrong with the design: electrical checks, ratings and values, pins against footprints. So the list is far shorter on a design you know, with nothing in it changed: on one of 124 parts, 2 entries where there were 42. The drawing checks still guide the agent, and Settings → Schematic drawing sets how much; one you set to Must fix shows under Issues if the agent leaves it open, apart from the four the layout keeps to by itself (power symbols up, ground symbols down, straight wires, no loose ends). The app no longer lists the drawing findings: ask the agent, or press Optimize.

Schematic by hand

  • F mirrors every symbol: a transistor, optocoupler, relay, TL431 or bridge is drawn turned over, where F used to do nothing but mark it as yours. A resistor, capacitor or diode swaps its ends where it stands, and a load drawn on a transistor swaps its ends too, where it used to slide down the page on each press. A design you pressed F in stays as it is drawn when you open it. F goes by the symbol's own frame, so a transistor you turned flips up and down on screen. See also Known problems below.
  • R turns every symbol: a crystal, transistor, relay, IC or connector goes round by quarter turns with its pins, and four presses bring it back to exactly where it stood. A turned IC's pin names run along its pins. A tall IC can land on its neighbours, which leaves some of its connections as labels, and a redraw of a sheet of functional blocks with auto_draw drops the turn.
  • R keeps which end of a two-pin part is which: turning it twice gives back what was there. It used to come back with pin 1 on top, its wires drawn round to the other end.
  • Dragging, turning and mirroring a symbol are about five times faster on a big sheet. Working out a small part's new drawing takes about a quarter of a second on a design of 124 parts, where a drag took 1.4 s in 0.4.0, and an RP2040's under two seconds, where a drag took five.
  • Move a power symbol: drag a rail or ground symbol to another spot on its page. It stands there on a wire from the pin or wire it stood on, still pointing its own way, so you can clear it off a wire or a name. A click still selects its net. A spot on a part or on another net is refused. The agent can do the same (move_supply). The spot is not kept when the symbol's block is redrawn or its part turned or mirrored: it goes back to the pin.
  • Drag a name or value to move it: only that text moves, in steps of 25 mils, and with Shift its partner goes along. A click on it still selects the part. A part given a new symbol or drawn afresh gets its text back in the usual place.
  • Label or wire, per net: select a net, and its panel has a label row. label · no wires puts a label or power symbol at every pin and takes the wires away; a label can land on a neighbour on a tight connector, where dragging or swinging it clears it. no label · wires joins the pins by wires, however they have to run, keeping a label only where no wire can go (another page or sheet, no clear path), and a power net keeps one symbol. automatic draws the net afresh, wired where that is clean; Undo is what brings back the earlier drawing. The choice holds when parts move or a block is redrawn, and the agent keeps to it. As with any hand edit, the sheet then stays as drawn instead of being redrawn after every change.
  • Remove an empty sheet: a sheet with nothing on it has an × on its tab, so it no longer has to stay as a blank page in the printout. Undo brings it back.

How a schematic is drawn

  • A wire joins a pin from any side: a wire along the top of a standing part now ends on its top pin, or runs on through it with a dot, instead of hopping over the pin to come down onto it. The agent can draw these straight, and a part you drag or place is wired in more places where it used to fall back to labels. Hops already in a drawing come out when it opens, unless the agent drew that wire through corners of its own: ask it to draw the wire again.
  • A wire no longer stays hidden behind a part: put a part down on a wire, by dragging it or through the agent, and the wire goes round it. Only the stretch behind the part moves, and what it connects stays connected. Wires already behind a part come out when the drawing opens. One that cannot get round, because a pin of its own lies under the part, stays until you move the part off it.
  • A wire no longer turns into labels by running over a pin of a part drawn off the wire's grid: it now goes round that pin.
  • A wire no longer runs through a label or a power symbol, and labelling a pin no longer deletes a straight wire to another pin that carries a label.
  • A part's name and value keep off the wires: where a sheet is drawn by the layout they now step aside by themselves when they would run into a wire, a part or a label, going side by side where a stack does not fit between two wires. On a sheet you or the agent arranged nothing moves until you ask: Text stays readable now looks at names and values too, so the agent knows of them and can clear them.
  • Power symbols on neighbouring pins no longer pile up: where a drawing leaves a part's power pins without their symbols, after a new pin layout for example, neighbouring pins on one rail now share one symbol on a short wire along the pins, as the layout draws them, and a symbol steps clear of what else stands there. On an RP2040, six symbols on one column, with a +1V1 stem along a +3V3 one that read like a short, become one of each. It shows as soon as the design opens, and nothing in the file changes until you draw something there yourself: drag the symbol, or have the agent wire the pins.
  • A connector shows its pins' names: an imported connector such as a USB-C receptacle now draws each pin's name in its symbol, next to the number, as an IC does. A plain numbered header or a single test point stays as it was. Names on the top or bottom run along the pins, and those pins move aside to make room, so the symbol is wider when you open the design; the wires that hang only on those pins go with them, so a bar joining the grounds stays one bar. A wire that also reaches another part is cut back, and that connection shows as a label.

Coding agents

  • Chat through the Codex CLI: OpenAI's Codex can answer the app's chat on your ChatGPT plan or API key, next to Claude Code, GitHub Copilot CLI and OpenCode. Pick it with the model button under the chat box. It gets only the 4k7 tools, like the others: no shell, no files, and your own MCP servers stay out of it. A few of Codex's own tools cannot be switched off and have nothing to act on here, and your ~/.codex/AGENTS.md is still read. It needs Codex 0.158 or newer, and Settings shows an older one as too old. It shows its answers a whole message at a time, and it can also drive the app from its own chat (see the README).
  • Codex is new, so tell us how it goes on GitHub: so far the real Codex program has run against a stand-in for OpenAI's service, not with a real model, and on Windows only a stand-in program has run.
  • The agent can start a design over: ask it to, with or without some parts, and clear_sheet takes a sheet's parts off in one step, with their connections and constraints and what stood on them on the board; keep names what stays. Copper on the nets that stay remains on the board, shown as dangling, until the agent erases it. remove_sheet takes an empty sheet away, and the agent now does so itself when it moves the last parts off a sheet. As with any change, you review it first, and Undo brings it all back.
  • The agent can describe a part's pins: ask it to fill in or correct what the pins of a part in your design do, and it writes them on the part with set_pin_descriptions, no new import needed. You review them with the rest of the change; once accepted they are in the Parts view and in your library for later designs. An imported MCU's alternate functions stay. It writes descriptions, not pin names or types, and only on a part the open design uses. Generic parts such as a pin header take none, because one card serves all of them.
  • Optimize can fix power symbols: the agent used to report overlapping power symbols on a part you placed as something it was not allowed to touch. It was told it could only move parts, though the kernel let it do more. It now knows that it may wire, label and erase at any pin in the area, and move power symbols. On a design with open errors the agent is still told its change is refused until those are fixed, though the review card appears.
  • The agent can fine-tune names and values: place_text puts a part's name and value on any side, stacked or side by side, at exact spots, or with auto moves only what runs into something. It does this as the last step on a sheet it arranged, and it leaves the text you dragged alone.
  • The agent can turn symbols and sees which way round they are: place_symbol rotate does what R does, get_schematic shows mirrored and rotated, and the result says where a small symbol's pins went or that nothing changed. Asking for a crystal mirrored when it already was changed nothing and said nothing, so the agent went round it with a worse drawing. A set_symbol layout refused for a crystal or transistor now points at mirror, and a part you placed stays marked as yours when the agent gives it another symbol.
  • A wire going round a part is not a detour: the agent was told a wire "turns back on itself" wherever it formed a U, even with parts between its ends that it had to go round, and spent its time on them. It now hears only of a hump with nothing in the way, one that could run straight.
  • The model list on a first start: on a new computer the list of OpenCode's models stayed empty until the server started again.

Layout

  • A part dragged is settled in a third of the time: the board is ready again about half a second after the drop on a design of 124 parts with drawn copper, where it took a second and a half. The Layout view opens in half the time too.
  • A click selects, whatever the zoom: a hand that wobbled by one pixel on a click could move the part and add a step to undo when the board was zoomed out. Now a press only becomes a drag after a few pixels, as on the schematic.
  • ⌘R reloads the page again with a part selected, where it turned the part; ⌘L no longer locks it either.
  • A drag that is refused goes back at once, where it stayed where it was dropped for five seconds. The same for a silkscreen graphic and a panel's tab.
  • The errors and warnings in the header count the board's checks too, once the board is laid. A click there opens the list they are in.

Running 4k7

  • npm run dev no longer touches your designs: what runs from a checkout now keeps to itself, with an access key of its own, projects in ~/Documents/4k7-dev, libraries in ~/.4k7-dev (a copy of yours the first time, separate after that) and a port other than 7777. Half-done code cannot change a real design, and npm run dev and the app, or npm start, run side by side in any order. Open the link npm run dev prints, as the old address is refused. To try a design in development, open it there: Settings → General → Open file… copies it in.
  • The app opens beside another 4k7 server: a server with a different access key on the same computer no longer counts as the app's own. Opening the app used to show a page refusing its link; it now starts its own server.

Known problems

  • F can draw a connection that is not there: on a two-pin part in a tight spot, such as two resistors stacked pin on pin, F can land the wrong end or its wire on another part's pin, so that pin looks connected to the other net. On a real design of 124 parts, 7 of the 124 presses did this. F also keeps the wires at the part's ends, which then change net, so one can stay behind as a long lead. Only the drawing is wrong, not the connections, and Undo takes it back.
  • Some new agent tools are untried in a real chat: move_supply, a net's draw_as and clear_sheet have only been called directly in testing, so how well a model picks them by itself is still to be seen.
  • OpenCode 2 does not work yet, on any system, as in 0.3.0 and 0.4.0: a run stops with Agent not found. Until that is fixed, use Claude Code, Copilot CLI, Codex or an API key.
  • Windows has still run only on GitHub's test machines, not on a desktop PC, and no agent has answered a real chat there. If you try it, tell us how it goes on GitHub.

What's Changed

  • Site and README: the Windows download by @hoihu in #120
  • Site: the features open on the page itself, not in a dialog by @hoihu in #122
  • Schematic: a wire joins a pin from any side by @hoihu in #124
  • Chat through the Codex CLI by @hoihu in #123
  • Schematic: F mirrors and R turns every symbol, and the agent sees how by @hoihu in #125
  • Schematic: a wire a part is put down on goes round it by @hoihu in #127
  • Schematic: a part's name and value move clear of the wires by @hoihu in #128
  • Schematic: drag a power symbol, and force a net to labels or wires by @hoihu in #126
  • Editors: faster edits on big designs, and the biggest units split up by @hoihu in #129
  • Schematic: a connector shows its pins' names, and the agent can describe a part's pins by @hoihu in #131
  • Site: new wording for the four feature sections by @hoihu in #130
  • Site: the page as a long read, over a sky without the resistor by @hoihu in #132
  • Schematic: neighbouring power pins share a symbol, and Optimize can fix overlapping ones by @hoihu in #133
  • Schematic: an × on an empty sheet, and the agent can clear and remove sheets by @hoihu in #134
  • Schematic: Issues are about the circuit, and a wire going round a part is no detour by @hoihu in #135
  • Server: what runs from source keeps to itself, so npm run dev and the app run side by side by @hoihu in #136
  • Version 0.5.0 by @hoihu in #137

Full Changelog: v0.4.0...v0.5.0