Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
9e72706
Return the UI to GPUI and bring over everything added on Rune
m4rocks Nov 21, 2026
6a22371
Run every session as an ACP agent in a chat view instead of a terminal
m4rocks Nov 21, 2026
2b9766d
Review each turn's changes, pick up outside sessions, hand work to an…
m4rocks Nov 21, 2026
0b34e67
Run Claude Code sessions through the Claude Agent SDK
m4rocks Nov 21, 2026
cada7eb
Add skills.sh control plane, Harnesses settings, Welcome launcher, an…
m4rocks Nov 21, 2026
c96d818
Share one message box, collapse tool runs, let agents switch models
m4rocks Nov 21, 2026
d72257e
Give the keyboard back to the message box when a picker closes
m4rocks Nov 22, 2026
078ce5d
Show only the user's message after a hand-off
m4rocks Nov 22, 2026
71d5132
Remember each session's model and effort
m4rocks Nov 22, 2026
c8e86de
Turn Review changes off when there is nothing to review
m4rocks Nov 22, 2026
32364f9
Group skills by repository, list repo skills, update installed skills
m4rocks Nov 22, 2026
3d3ea4c
Stop agents asking about effort, and let them suggest a new session
m4rocks Nov 22, 2026
5c565d0
Hide compaction summaries and agent hand-off messages in the chat
m4rocks Nov 22, 2026
e7bc8c8
Fold thinking into the run of tool calls
m4rocks Nov 22, 2026
6a8f0b2
Use less accent color in the chat
m4rocks Nov 22, 2026
5f267d4
Give every workspace dropdown arrow-key navigation
m4rocks Nov 22, 2026
2909981
Navigate the slash command menu with the arrow keys
m4rocks Nov 22, 2026
7f53726
Tick every model by default
m4rocks Nov 22, 2026
a8229df
Say that a hand-off is under way while the new agent starts
m4rocks Nov 22, 2026
7a0ed8e
Trim Claude Code's extras per session, and hide commands Claudiu covers
m4rocks Nov 22, 2026
47b1e6f
Show a new worktree on the Welcome screen while git creates it
m4rocks Nov 22, 2026
76ae681
Comment on lines in editor mode with a button beside them
m4rocks Nov 22, 2026
ce03cac
Rename CLAUDE.md to AGENTS.md and add rules for spending fewer tokens
m4rocks Nov 22, 2026
f014588
Split workspace_view.rs into files named for what they draw
m4rocks Nov 22, 2026
6fc5dd2
Move Act and its dispatch to app/act.rs
m4rocks Nov 22, 2026
d992330
Split headless tests, ACP and store modules
m4rocks Nov 22, 2026
6b95ca4
Rename to m4code, monochrome theme, harness-agnostic sessions & UX fixes
m4rocks Nov 22, 2026
4a0f171
Add shared subagent tools, provider session resume on handoff and man…
m4rocks Nov 22, 2026
b61bdb7
Send subagent reports to the parent chat and mark subagent views
m4rocks Nov 22, 2026
cdd48c7
Fold subagent reports into the steps and finished subagents in the si…
m4rocks Nov 22, 2026
b1210fa
Start m4code's helpers from the original path after a rebuild
m4rocks Nov 22, 2026
8b67b16
List native subagents in the Subagents card
m4rocks Nov 22, 2026
047bb40
Stop asking to confirm session and model tools; let start_code_sessio…
m4rocks Nov 22, 2026
1591561
Replace Ctrl-hold shortcut hints with a Settings keyboard page
m4rocks Nov 22, 2026
8fd28de
Prepare v0.10.0 release
m4rocks Nov 22, 2026
6664825
Answer only real m4code tool prompts yes, and keep subagent reports f…
m4rocks Nov 22, 2026
238b84c
Check that the compaction test really compacts, and put send's doc co…
m4rocks Nov 22, 2026
36fcb25
Keep the start_code_session test's fake model list out of the shared …
m4rocks Nov 22, 2026
d837a81
Build on Windows again: only terminal sessions have a process id to r…
m4rocks Nov 22, 2026
b50cdc2
Give the subagent test's waits their own, longer deadlines for slow C…
m4rocks Nov 22, 2026
9c20ec5
Remove the Windows clipboard bitmap helper nothing uses since session…
m4rocks Nov 22, 2026
c26f74e
Keep test files LF on Windows: no autocrlf in snapshot test repos, no…
m4rocks Nov 22, 2026
023e2b2
Say what the parent and child hold when the subagent report test time…
m4rocks Nov 22, 2026
cf2d55b
End a turn behind the agent's last updates, so a subagent's report ca…
m4rocks Nov 22, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,12 @@ jobs:
with:
components: clippy
- uses: Swatinem/rust-cache@v2
- name: System libraries (Linux; Rune's Wayland and keyboard backends, and Vulkan)
- name: Metal toolchain (macOS; GPUI compiles shaders)
if: runner.os == 'macOS'
run: xcrun -f metal >/dev/null 2>&1 || xcodebuild -downloadComponent MetalToolchain
- name: System libraries (Linux; GPUI's X11, Wayland and font backends)
if: runner.os == 'Linux'
run: sudo apt-get update && sudo apt-get install -y libwayland-dev libxkbcommon-dev libvulkan1 zlib1g-dev
run: sudo apt-get update && sudo apt-get install -y libfontconfig-dev libwayland-dev libx11-xcb-dev libxcb1-dev libxkbcommon-x11-dev libvulkan1 zlib1g-dev
- name: Build
run: cargo build --locked
- name: Install just
Expand Down
26 changes: 14 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: release

# Push a tag like v0.2.0 to publish installers and the auto-update feed to GitHub Releases.
# Installed copies of Claudiu check this repository's releases (Velopack GithubSource) and update themselves.
# Installed copies of m4code check this repository's releases (Velopack GithubSource) and update themselves.
on:
push:
tags: ["v*"]
Expand Down Expand Up @@ -34,8 +34,8 @@ jobs:
shell: pwsh
run: |
New-Item -ItemType Directory -Force dist/publish | Out-Null
Copy-Item target/release/claudiu.exe dist/publish/
vpk pack --packId Claudiu --packVersion "${{ steps.ver.outputs.version }}" --packDir dist/publish --mainExe claudiu.exe --packTitle Claudiu --icon assets/claudiu.ico --outputDir dist/releases
Copy-Item target/release/m4code.exe dist/publish/
vpk pack --packId m4code --packVersion "${{ steps.ver.outputs.version }}" --packDir dist/publish --mainExe m4code.exe --packTitle m4code --icon assets/m4code.ico --outputDir dist/releases
- uses: actions/upload-artifact@v4
with:
name: releases-win
Expand All @@ -56,6 +56,8 @@ jobs:
dotnet-version: 8.x
- name: Install Velopack CLI
run: dotnet tool install -g vpk
- name: Metal toolchain (GPUI compiles shaders; newer Xcodes ship it as a download)
run: xcrun -f metal >/dev/null 2>&1 || xcodebuild -downloadComponent MetalToolchain
- name: Version from tag
id: ver
run: echo "version=${GITHUB_REF_NAME#v}" >> "$GITHUB_OUTPUT"
Expand All @@ -64,15 +66,15 @@ jobs:
cargo build --release --locked --target aarch64-apple-darwin
cargo build --release --locked --target x86_64-apple-darwin
mkdir -p dist/publish
lipo -create -output dist/publish/claudiu target/aarch64-apple-darwin/release/claudiu target/x86_64-apple-darwin/release/claudiu
codesign --force --sign - dist/publish/claudiu # lipo invalidates the per-arch signatures
lipo -create -output dist/publish/m4code target/aarch64-apple-darwin/release/m4code target/x86_64-apple-darwin/release/m4code
codesign --force --sign - dist/publish/m4code # lipo invalidates the per-arch signatures
- name: Icon
run: scripts/make-icns.sh dist/claudiu.icns
run: scripts/make-icns.sh dist/m4code.icns
- name: Fetch previous release (for delta updates)
continue-on-error: true
run: vpk download github --repoUrl "${{ github.server_url }}/${{ github.repository }}" --token "${{ secrets.GITHUB_TOKEN }}"
- name: Pack
run: vpk pack --packId Claudiu --packVersion "${{ steps.ver.outputs.version }}" --packDir dist/publish --mainExe claudiu --packTitle Claudiu --icon dist/claudiu.icns --bundleId com.m4rocks.claudiu --signAppIdentity - --outputDir dist/releases
run: vpk pack --packId m4code --packVersion "${{ steps.ver.outputs.version }}" --packDir dist/publish --mainExe m4code --packTitle m4code --icon dist/m4code.icns --bundleId com.m4rocks.m4code --signAppIdentity - --outputDir dist/releases
- uses: actions/upload-artifact@v4
with:
name: releases-osx
Expand All @@ -91,21 +93,21 @@ jobs:
dotnet-version: 8.x
- name: Install Velopack CLI
run: dotnet tool install -g vpk
- name: System libraries (Rune's Wayland and keyboard backends, and Vulkan)
run: sudo apt-get update && sudo apt-get install -y libwayland-dev libxkbcommon-dev libvulkan1 zlib1g-dev
- name: System libraries (GPUI's X11, Wayland and font backends)
run: sudo apt-get update && sudo apt-get install -y libfontconfig-dev libwayland-dev libx11-xcb-dev libxcb1-dev libxkbcommon-x11-dev libvulkan1 zlib1g-dev
- name: Version from tag
id: ver
run: echo "version=${GITHUB_REF_NAME#v}" >> "$GITHUB_OUTPUT"
- name: Build
run: |
cargo build --release --locked
mkdir -p dist/publish
cp target/release/claudiu dist/publish/
cp target/release/m4code dist/publish/
- name: Fetch previous release (for delta updates)
continue-on-error: true
run: vpk download github --channel linux --repoUrl "${{ github.server_url }}/${{ github.repository }}" --token "${{ secrets.GITHUB_TOKEN }}"
- name: Pack
run: vpk pack --packId Claudiu --packVersion "${{ steps.ver.outputs.version }}" --packDir dist/publish --mainExe claudiu --packTitle Claudiu --icon assets/claudiu.png --channel linux --outputDir dist/releases
run: vpk pack --packId m4code --packVersion "${{ steps.ver.outputs.version }}" --packDir dist/publish --mainExe m4code --packTitle m4code --icon assets/m4code.png --channel linux --outputDir dist/releases
- uses: actions/upload-artifact@v4
with:
name: releases-linux
Expand All @@ -126,5 +128,5 @@ jobs:
run: |
version="${GITHUB_REF_NAME#v}"
for channel in win osx linux; do
vpk upload github --channel "$channel" --repoUrl "${{ github.server_url }}/${{ github.repository }}" --outputDir "releases-$channel" --merge --publish --releaseName "Claudiu $version" --tag "${{ github.ref_name }}" --token "${{ secrets.GITHUB_TOKEN }}"
vpk upload github --channel "$channel" --repoUrl "${{ github.server_url }}/${{ github.repository }}" --outputDir "releases-$channel" --merge --publish --releaseName "m4code $version" --tag "${{ github.ref_name }}" --token "${{ secrets.GITHUB_TOKEN }}"
done
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@
/dist
/mod/tsconfig.json
/mod/.claude-plugin/types/

# The Claude Agent SDK, when installed in the bridge folder by hand.
bridge/node_modules/
30 changes: 26 additions & 4 deletions CLAUDE.md → AGENTS.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
# CLAUDE.md
# AGENTS.md

Claudiu is a native Rust + Rune desktop app that manages sessions around the user's existing `claude` CLI.
m4code is a native Rust + GPUI desktop app that manages sessions around the user's existing `claude` CLI.

## Where things live

- `src/main.rs`: app startup, menus and assets. `src/app/keymap.rs` holds the key bindings and the list Settings → Keyboard shows.
- `src/app/`: workspace state and behavior. `act.rs` dispatches actions; the other files group methods by task. `headless.rs` and `headless/` exercise the workspace on GPUI's test platform.
- `src/panels/`: workspace rendering. `workspace_view.rs` is the root view; `home.rs`, `overlays.rs`, `workspace_pickers.rs` and `settings_view.rs` draw its main sections.
- `src/harness/` and `src/thread/`: agent launch and ACP sessions, and the conversation view.
- `src/claude/`: Claude Code integration, accounts, usage, configuration and custom subagents. `acp/` handles custom subagent conversations, configuration and messages.
- `src/store.rs`: persisted app state and writes. `src/store/` holds state types and reconciliation with external sessions.
- `src/git/` and `src/github/`: local Git operations and the GitHub pane.
- `src/terminal/`: shell terminal, input and rendering. `src/lsp/` handles language servers.
- `src/skills/` manages skills; `src/visual/` renders visual output. `src/files.rs`, `src/datadir.rs`, `src/platform.rs` and `src/updater.rs` cover their named responsibilities.

## Settings

- Tracker: GitHub issues in m4rocks/claudiu
- Tracker: GitHub issues in m4rocks/m4code
- Tests: when a cheap test seam exists
- Commits: only when the maintainer says
- Pushes and pull requests: only when the maintainer says
Expand All @@ -28,6 +40,16 @@ When the m4 skills are installed, route requests through them even when phrased

Work inline; spawn subagents only as the settings allow, except the plan review in m4:shape, because they spend tokens the maintainer wants to spend deliberately.

## Tokens

Every tool call re-reads the whole conversation, so the number of calls and the length of the conversation set the cost. One session here made 472 calls on a context that averaged 208k tokens, and 251 of those calls were reads, mostly three or more in a row.

- Put every `sed -n`, `grep` and `wc` you need next into one command. Find a function with `grep -n` and read just that function, rather than reading a file in slices; `src/panels/workspace_view.rs` alone is about 1,900 lines.
- The shell is zsh, which fails the whole command when an unquoted glob matches nothing. Quote globs, as in `--include='*.rs'`.
- Run the check in the same command as the edit it checks, such as an edit followed by `cargo build`. Build, clippy and the unit tests can share one command too.
- Look up the fields and signatures new code uses before writing it, so the first build passes.
- In a batch of features, commit each one as it passes. Once the conversation passes about 150k tokens, finish the current feature and continue the rest in a fresh session, since the commits and the tracker carry everything over.

## Code

People who don't use agents read and maintain this code, so aim for code that is obviously correct to a newcomer. Rank choices by correctness, then how easily the code reads and tests, then size; a one-liner that needs decoding is not simple.
Expand All @@ -42,7 +64,7 @@ Leave nothing behind but the change: no summary files, commented-out code, debug

## Boundaries

Claudiu types into a session's terminal in one place. In editor mode, moving the keyboard to the terminal while lines are selected pastes `@path#L12-30: ` into Claude Code's input box, and leaving without typing erases it again (`terminal/view/typing.rs`, `app/selection_reference.rs`). It does this only while the cursor is in that input box. It stays a deliberate exception: messages, settings changes and every other request reach Claude Code through the mod, not the terminal. Any further typing into a PTY needs the maintainer's decision first.
Agents run as ACP servers and show in m4code's chat view (`harness/`, `thread/`); no agent runs in a PTY. The shell panel (Ctrl+J and the welcome screen's shell) is the only PTY, and m4code never types into it. In editor mode, the comment button beside the selected or hovered line adds `@path#L12-30: comment` to the chat's message box, or sends it with Cmd/Ctrl+Enter (`app/line_comment.rs`). Running an agent in a PTY, or typing into the shell, needs the maintainer's decision first.

## Enforced rules

Expand Down
Loading
Loading