Skip to content

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 25 Oct 19:36
· 516 commits to main since this release
da373cf

The chat runs on the coding agent you already use, projects are files on your computer, and the agent now takes a board from placement to the last routed connection, designs an enclosure for it, checks stock and cost at three assembly houses and lays lines at a set impedance.

Chat and agents

  • Chat through your coding agent: Claude Code, GitHub Copilot CLI or OpenCode, run by the local server on your own plan or company login, with only the 4k7 tools. Each of them can also import datasheets.
  • API keys for more services: OpenAI, OpenRouter, Google Gemini, a local model (Ollama, LM Studio) or any OpenAI- or Anthropic-compatible address, beside Anthropic; one key per service (Settings → API keys).
  • The model button under the chat box picks the agent or service and its model, with favourites (★), the effort level and web lookups. Switch in the middle of a conversation: the design stays.
  • Settings → Coding agents shows the program each agent runs and its version, takes the path of another one, and Look again finds an agent installed after the server started.
  • Rebuild a schematic from a picture: drop, paste or attach a picture or PDF of a schematic, and the agent reads it, zooming in on values and pin numbers, and rebuilds the circuit.
  • The agent sees your view: each message says which sheet or board you are looking at and, zoomed in, the area and the parts in it, so "improve this area" needs no coordinates.
  • Keep the conversation in the project file (opt-in, Settings → General → Conversation): every message, tool call and decision, with the attached pictures and PDFs. Earlier sessions show read-only at the top of the chat.
  • Drag the edge of the chat or of the side panel to resize it.
  • The chat box starts five lines tall, an empty chat just asks "What do you want to build today?", and the suggestion chips are gone.
  • The offline demo is gone; a new chat starts on Claude Code.

Projects and settings

  • Projects are files on your computer: one <name>.twd.json per project in ~/Documents/4k7 (or the folder set as "projectsDir" in ~/.4k7/server.json), saved as you work; imported parts, artwork and datasheets go to ~/.4k7. What 0.1 kept in the browser becomes files the first time each browser opens this version. Without the server the header says "not saved", and the changes are written once it is back.
  • Settings shows one section at a time. General holds the project (its file, Show folder, Save copy as…), Open… and New.
  • Notes for the agent in your own words, sent with every request: for the schematic drawing, the board layout and the enclosure (in Settings).
  • The resistor logo in the app, and browsers now show its icon.

Schematic

  • The agent places parts and draws the sheet: it puts symbols where it wants them (place_symbol), chooses a wire or a net label for each connection (wire, label, erase), or hands a sheet back to the automatic layout (auto_draw). Once it arranges a sheet, the drawing is kept and follows the netlist: removed parts leave, renamed nets follow, new parts go to a free spot, and a connection the drawing does not show gets a label, so none is ever left out.
  • The agent arranges a symbol's pins as the datasheet draws them (set_symbol), and the arrangement goes back to the library part.
  • Supplies point up and ground points down, always; a divider on an IC pin is one column; pull-ups stand and pull-downs hang.
  • Wires stay tidy as the agent draws: no loops, no runs drawn twice, no humps beside lying parts (a 21-part buck: 144 wire segments down to 87).
  • Drawing checks (SCH.*: crossings, jogs, detours, overlapping text, dangling wires…), each set to Must fix, Warn, Note or Off in Settings → Schematic drawing. ✦ Optimize judges how a drawing reads, and the agent looks once more at the drawing warnings its change brought before it finishes.

Board

  • The agent places the board: it decides where the main parts go and the placer arranges the small parts round them (Propose placement). try_placements measures 2–8 arrangements against each other (ratsnest length, crossings, board size, a trial routing) without changing the design and explores round the best one; refine_placement untangles the small parts.
  • Who placed what: the parts you place are your decisions and stay where you put them; the agent's choices show dashed, yours solid. Continue layout ✦ hands the board back to the agent.
  • Routing to completion: the router keeps going until nothing is open (a 128-part, 2-layer board: 8 open connections down to 0), and every open connection says why (the nets in the way, the parts nearby). The agent does not hand over a board with open connections without saying why. Routing is drawn live, Stop keeps the best pass so far, and a routed board is saved with the project, so it opens routed.
  • Incremental routing: after a change the copper that still holds stays, and only what is open is routed again (most small moves in 0.3–1.5 s instead of 2–7 s).
  • Drawn copper (opt-in per project, Layout → Copper): the agent lays the tracks and vias itself, each checked as it is drawn, and a part that moves takes its tracks along. The router becomes a helper that routes the connections the agent names around its copper, and suggest_moves finds small part moves that close open connections.
  • Planes and vias: split planes on inner layers (+5V across a layer, +3V3 under the MCU), local pours on the outer layers (GND only round a regulator), plane styles (gaps, thermal reliefs or solid joints), and vias placed on purpose: thermal vias in an exposed pad, stitching grids and fences, and drop vias for high-current pads, each on its own stub.
  • Lines at a set impedance: a stack-up per board (JLCPCB and PCBWay presets, or imported from your fab's page) and impedance rules per net or differential pair; a 2D field solver works out each layer's track width and gap. The agent draws pairs side by side and fences RF lines with ground vias, and the IMP.* checks hold the copper to it: width, an unbroken reference plane, pair gap and skew, a ground via beside each signal via. It follows a guide for fast interfaces and RF lines.
  • STEP export (Layout → Files): the assembled board for your mechanical CAD, with its outline, holes and the part bodies as solids, each part a component named by its designator.
  • Silkscreen text from a stroke font, mirrored on the bottom side so it reads from below.
  • Slotted holes and pads with several pins, in the Gerbers, the drill file, the 3D view and the STEP model.
  • A part you or the agent place may go right up to the board edge, such as a USB-C connector flush with it.
  • A Dimensions layer: the board's size and the mounting holes' positions and diameters, also drawn in the design document.
  • Pads and planes follow their copper layer's colour and checkbox.
  • Smooth zoom and pan in Safari (zooming a 252-part board: about 130 ms a frame down to 17 ms).
  • The board actions moved from the tool bar to the side panel (Placement, Copper, Files); click a check to read its whole message.

Enclosure (new)

  • A box for the board, a new step after Layout: the agent agrees a brief with you, writes the box as an OpenSCAD script around the board, renders it with the OpenSCAD on your computer and fixes what the checks find (a part in the way, a blocked opening, no room under the lid, the board not held on its holes) until it is clean. Connectors know which way they are plugged from.
  • Ready to print: one 3MF plate with every piece turned onto the bed, or an STL per piece; warnings for steep overhangs, wide ceilings, thin walls and pieces that may warp.
  • Labels and logos on the box: engraved, raised or inlaid in a second colour, from your artwork library.
  • A cut you move through the box, along x, y or z or across an opening, with the slider or by dragging it. The agent knows where the cut is, so "this wall is too thin" needs no coordinates.
  • Enclosure notes for your printer, material and fasteners (Settings → Enclosure); hide the board to see how the box holds it; plug paths in the Layout's 3D view.

Sourcing and cost

  • Pick the assembly house (Layout → Sourcing): JLCPCB, Eurocircuits or PCBWay. The checks, the Inspector, the agent and the BOM in the fab files follow it.
  • Live stock from JLCPCB itself, read by the local server; stock that is not known shows as unknown, never as 0.
  • Check stock for the number of boards you build: what stops the order (out of stock, too few, gone, not the part the design asks for), what wants a look, the fees, and in-stock replacements one click away. At PCBWay, which buys every part for the order, Check BOM says what it could not buy.
  • Check cost: the order with every assembly fee (JLCPCB's Economic and Standard assembly as a range, Eurocircuits' fees from the price table its calculator runs on, PCBWay's live quote) and the bare board's surcharges, with savings one click away.
  • Values check: cheaper ways to make each resistor and capacitor value, such as 31.6 kΩ as 30 kΩ + 1.5 kΩ in series, both Basic parts at JLCPCB.
  • Optimize cost with the agent ✦ goes through the design part by part, following a cost guide, and asks before a change you may care about.

Parts and datasheets

  • Design with the datasheet: an import notes the pages with the typical application, the design procedure and the layout guidelines. The agent starts from them and cites the page each choice comes from; the Parts view links to them.
  • A part with only a link to its datasheet gets the PDF downloaded on the first read.
  • Imports catch a package family that contradicts the package name, and AGND, PGND, AVSS and DVSS count as grounds.

Fixes

  • GitHub Copilot in VS Code left out the design_edit and read_datasheet tools.
  • Saving an imported part failed with "The object can not be cloned" once a second-pass value was picked.
  • Accept and Reject could end up under the layout's tool bar.
  • Datasheet text could not be read in Safari (search, page text, the pin-row highlight).
  • Pours were drawn wrong: only their thermal spokes showed on free-form outlines, and on rectangular boards the clearances round tracks were filled in.
  • A graphic made of many dots failed with "Maximum call stack size exceeded".
  • The chat box was clipped and showed a scrollbar.

What's Changed

  • README: alpha notice on top, bring-your-own-AI section, drop prototype links by @hoihu in #39
  • Tool schemas: give tuples an items schema so VS Code Copilot keeps design_edit by @hoihu in #40
  • README: spell out the Copilot MCP setup and the link flow by @hoihu in #41
  • README: spell out the Claude Code MCP setup by @hoihu in #42
  • README: split Bring your own AI into API-key and harness workflows by @hoihu in #43
  • check-package: tolerate build output before npm pack JSON by @hoihu in #44
  • Use the resistor logo in the app by @hoihu in #45
  • Fix clipped chat textarea by @hoihu in #46
  • Remove the offline demo from the app by @hoihu in #47
  • Chat through Copilot CLI or OpenCode, or any API with your own key by @hoihu in #48
  • Explain the dev ports in the distribution doc by @hoihu in #50
  • Pick the chat's agent and model under the chat box by @hoihu in #51
  • Choose the coding agents' programs in Settings (and agent effort) by @hoihu in #53
  • Make the chat box five lines tall by @hoihu in #54
  • Drop the chat provider settings the chat box now covers by @hoihu in #55
  • Remove the suggestion chips under the chat box by @hoihu in #56
  • Make browsers show the resistor favicon by @hoihu in #57
  • Greet an empty chat with one line by @hoihu in #58
  • Drop the title and agent chip from the chat header by @hoihu in #59
  • Layout: smooth zoom and pan in Safari, pours show their real shape by @hoihu in #60
  • Layout: pads and planes follow their copper layer's colour and toggle by @hoihu in #61
  • Keep projects as files on this computer by @hoihu in #62
  • Settings: one section at a time, a clearer General page by @hoihu in #63
  • Chat: drop, paste or attach a schematic and the agent rebuilds it by @hoihu in #64
  • Schematic: upright supplies, an editable ruleset, and the agent places parts by @hoihu in #65
  • Parts import: saving after picking a pass-2 value no longer fails to clone by @hoihu in #69
  • Schematic drawing: your own notes and a list of checks instead of the ruleset text by @hoihu in #66
  • Schematic: the agent's drawing is stored and kept, in step with the netlist by @hoihu in #67
  • Schematic: the agent decides wire or label (wire, label, erase) by @hoihu in #68
  • Schematic: the agent arranges symbol pins, wires stay tidy by @hoihu in #70
  • Board: the agent sees your view, arranges parts and routes to 100 % by @hoihu in #71
  • Layout: a Dimensions layer (board size, mounting hole positions) by @hoihu in #72
  • Site: add an empty previews block so branch builds can run wrangler preview by @hoihu in #73
  • Web: fix spacing and sizing in the sheet tab bar by @hoihu in #74
  • Board: agent-led placement, routing to completion, layout notes, split planes by @hoihu in #75
  • Board: a part the user places may go right up to the edge by @hoihu in #76
  • Layout: export the board in 3D as a STEP file for mechanical CAD by @hoihu in #77
  • Board: who placed what, planes planned before routing, the agent says which part belongs with which by @hoihu in #78
  • Enclosure: the agent designs the box in OpenSCAD, renders it with the user's OpenSCAD and checks it by @hoihu in #79
  • Enclosure follow-ups: hide the PCB, enclosure notes, 3MF print plate, printability checks, plug paths in Layout 3D by @hoihu in #80
  • Project: keep the AI conversation that led to the design in its file (opt-in) by @hoihu in #82
  • Resizable chat and side panel by @hoihu in #81
  • Router: stop when every open connection is closed off by pads, keep-outs or the edge by @hoihu in #83
  • Design with the datasheet; thermal and stitching vias, local pours by @hoihu in #84
  • Board: plane drops sized for the current (several vias per power pad) by @hoihu in #85
  • Enclosure 3D: pieces shaded like the Layout's 3D view by @hoihu in #86
  • Enclosure: labels and logos on the box by @hoihu in #87
  • Board: incremental routing, placement first, vias asked for where a current flows by @hoihu in #88
  • Layout: expand checks to show full message text by @hoihu in #89
  • Board: silkscreen text from a stroke font by @hoihu in #90
  • Enclosure: warn when pieces may warp by @hoihu in #91
  • Board: drop vias placed by the agent, each on its own stub (no bar) by @hoihu in #92
  • Schematic: pull-ups stand, pull-downs hang; agent reviews once by @hoihu in #93
  • Footprint: slotted holes and pads with multiple pins by @hoihu in #94
  • Board: drawn copper (agent lays the copper, router as a helper) and suggest_moves by @hoihu in #96
  • Layout: move the board actions from the tool bar to the side panel by @hoihu in #97
  • Cost: the agent optimises cost part by part; values check, board surcharges, cost guide by @hoihu in #99
  • Enclosure: a cut the user moves through the box, instead of a fixed one per opening by @hoihu in #100
  • Sourcing and cost: live JLCPCB stock, stock and cost checks, the agent optimising cost by @hoihu in #98
  • Sourcing: Eurocircuits and PCBWay beside JLCPCB by @hoihu in #101
  • Impedance: lines at a set impedance from the board's stack-up by @hoihu in #102
  • Version 0.2.0, and a changelog on 4k7.dev by @hoihu in #103

Full Changelog: v0.1.0...v0.2.0