Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ engine binaries. Keep managed engines separate from a user's global CLI setup.
- Do not invent live workers, successful tests, metric values or confidence.
The example project must remain visibly labelled as example data.
- A worker exit creates a review candidate, never an automatically verified change.
- Every task belongs to a goal (epic). Commit, push, pull-request creation, merge and
Update from dev happen only from explicit actions that list each step first.
Never deploy.

## Engineering

Expand All @@ -27,9 +30,11 @@ engine binaries. Keep managed engines separate from a user's global CLI setup.
- Isolate browser/artifact content from the app and its preload.
- Never interpolate prompts into shell commands. Spawn with argument arrays.
- An epic owns one Git branch. Story workers share the project checkout on that
branch and coordinate through Memtrace Fleet. Do not create per-worker branches
or worktrees. Preserve shared changes on stop/failure. Pause affected workers
and expose unresolved conflicts for a human decision.
branch, edit it at the same time and coordinate through Memtrace Fleet: declare,
edit, record. Do not create per-worker branches or worktrees, and do not add
locks or turn-taking between workers. Preserve shared changes on stop/failure.
Only a disagreement the workers involved cannot settle goes to a human, and it
holds only the contested code.
- Prefer small modules and native APIs over extra frameworks.
- Run `npm run typecheck`, `npm test`, `npm run build` and the Tauri smoke
check for relevant changes. Inspect the actual desktop UI for visual changes.
Expand Down
27 changes: 16 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,35 +3,40 @@
<p align="center"><strong>One board for the coding agents you already use.</strong></p>
<p align="center"><a href="https://www.memtrace.io/memcode#downloads">Download the desktop beta</a> &nbsp;·&nbsp; <a href="https://www.memtrace.io/memcode#walkthrough">Try the interactive demo</a> &nbsp;·&nbsp; <a href="https://www.memtrace.io/docs/memcode/getting-started">Getting started</a></p>

Give Claude Code a bug to fix while Codex works on the next feature and you review what Cursor changed. Each story keeps its conversation, diff, artifacts and review together. Open a card and you can pick up where the agent left off.
Plan the work, hand it to the coding tools you already use, and review what they did, all on your own computer. Claude Code can fix a bug while Codex builds the next feature and you review what Cursor changed. Each task keeps its conversation, changes, results and review together, so you can open a card and pick up where the worker left off.

[![MemCode walkthrough showing a mobile menu story moving from the board into implementation and code review](docs/media/memcode-tour.gif)](https://www.memtrace.io/memcode#walkthrough)
[![MemCode walkthrough showing a mobile menu task moving from the board into implementation and code review](docs/media/memcode-tour.gif)](https://www.memtrace.io/memcode#walkthrough)

### From a story to a change you can ship
### How it works

1. **Write the outcome.** “Pressing Escape should close the mobile menu and return focus to the button.” Add the story to an epic. Group stories into a cycle when you want to track what shipped.
2. **Pick a worker, or let MemCode route it.** Memtrace measures complexity in the relevant code and traces what a change could affect. Inspect the suggested model and effort, or choose your own. Workers on one epic coordinate edits on its branch. Another epic can run alongside it in its own Git worktree.
3. **Review what changed.** Move the story to **Code review**. Open a finding at the source, compare complexity before and after, and see which checks ran on this change. Ask the reviewer a question, send a follow-up to the worker, or accept the story.
1. **Say what you want.** Choose **New work** or press **C**: “Pressing Escape should close the mobile menu and return focus to the button.” Your connected worker reads the code and plans it. A small fix becomes a quick change, bigger work becomes a goal with a few tasks, and separate outcomes become separate goals. If a goal is already changing the same code, the new work joins it. Check the plan, change anything you like, then add it, or add it and start.
2. **Let the workers run.** Each task goes to a worker picked for how complex its code is, or to the worker and model you choose. Tasks in a goal run side by side and stay coordinated, so they don't step on each other.
3. **Review what changed.** Move a finished task to **Code review**. Open a finding at its line, compare the code before and after, and see which checks ran. Ask the reviewer a question, send fixes back to the worker, or accept the task.
4. **Ship the goal.** When a goal's tasks are reviewed, ship them together. MemCode shows every step before it runs and does nothing until you click.

A **goal** is an outcome you want, like “Customers can export reports”. A **task** is one piece of work a worker does. **Quick changes** are small tasks that ship together. **Cycles** are optional timeboxes that can hold work from many goals.

Under the hood, each goal gets its own branch and workspace and ships as one pull request. [How goals work](docs/goals.md) covers branches, shipping and keeping goals up to date.

### Smart routing and measured code review

**Give each story the model it needs.** MemCode measures complexity and nesting in the relevant code, traces what the change could affect, and selects a model and reasoning effort from your connected coding agents. Straightforward changes can use lighter models; complex work gets stronger reasoning. Inspect the recommendation or choose your own worker and model.
**Give each task the model it needs.** MemCode measures complexity and nesting in the relevant code, traces what the change could affect, and picks a model and reasoning effort from your connected workers. Straightforward changes can use lighter models; complex work gets stronger reasoning. Check the recommendation or choose your own worker and model.

**See what the change did to code quality.** Memtrace parses the actual source and compares the same functions before and after: maintainability, cognitive and cyclomatic complexity, and nesting. Review findings include source locations, detector evidence and affected code. Recorded checks stay tied to the reviewed source snapshot. Open a finding, ask the reviewer about it, or send selected fixes back to the worker before accepting the story. The review keeps measurement coverage visible and final acceptance in your hands.
**See what the change did to code quality.** Memtrace parses the actual source and compares the same functions before and after: maintainability, cognitive and cyclomatic complexity, and nesting. Review findings include source locations, detector evidence and affected code. Recorded checks stay tied to the reviewed source snapshot. Open a finding, ask the reviewer about it, or send selected fixes back to the worker before accepting the task. The review keeps measurement coverage visible and final acceptance in your hands.

### Start building

| | Available in the open beta |
|---|---|
| Desktop | macOS 13.5+ on Apple Silicon · Windows 10/11 on x64 |
| Coding agents | Claude Code · Codex · Cursor Agent, using your existing provider accounts |
| Coding workers | Claude Code · Codex · Cursor · GitHub Copilot · DeepSeek Harness, using your existing provider accounts |
| Team projects | Share the board, comments and published results. Each developer runs workers locally and exchanges code through Git. |

Install MemCode, sign in to Memtrace, choose your project folder and connect a coding agent. The installer includes Memtrace. The noncommercial beta includes unlimited local Memtrace analysis. Your coding provider handles model usage. The shared live agent browser currently runs on Windows.
Install MemCode, sign in to Memtrace, choose your project folder and connect a worker. The installer includes Memtrace. The noncommercial beta includes unlimited local Memtrace analysis. Your coding provider handles model usage. The shared live agent browser currently runs on Windows.

**On the roadmap** · Linear and other issue and sprint tracker integrations, so teams can bring work from the boards they already use.

[Set up a team](docs/team-quickstart.md) · [Run parallel epics](docs/parallel-epics.md) · [Read a code review](docs/story-code-review.md) · [How routing works](docs/routing-measurement.md)
[Set up a team](docs/team-quickstart.md) · [How goals work](docs/goals.md) · [Read a code review](docs/story-code-review.md) · [Keyboard shortcuts](docs/keyboard-shortcuts.md) · [How routing works](docs/routing-measurement.md)

<details>
<summary><strong>Run MemCode from source</strong></summary>
Expand Down
16 changes: 8 additions & 8 deletions docs/PLANNING.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ MemCode implements its own domain model and UI; no itsaplan source is incorporat

| Reference workflow | MemCode implementation |
| --- | --- |
| Kanban, table, timeline, calendar | Four views over the same local stories; each board lane scrolls independently |
| Kanban, table, timeline, calendar | Four views over the same local tasks; each board lane scrolls independently |
| Saved views and filters | Named views with mode, grouping, sorting and filters |
| Cycles and carryover | Planned/active/completed cycles, scope, points, capacity and explicit carryover |
| Cycles and carryover | Planned/active/completed cycles with a short Focus line, scope, points, capacity and explicit carryover; one cycle can hold work from many goals |
| Custom states and fields | Named lanes bound to execution stages; advisory WIP limits; text, number and choice fields |
| Labels and relationships | Labels, parent/child hierarchy, existing prerequisites, related stories and duplicate links |
| Labels and relationships | Labels, parent/child hierarchy, existing prerequisites, related tasks and duplicate links |
| Bulk organization | Atomic changes and archive/restore, honoring active worker constraints |
| Delivery dashboards | Burndown, burnup, recorded Done transitions, scope/state breakdowns and conditional pace projections |
| Initiative direction | Existing Now/Next/Later epic roadmap, epic branches and dogfood backlog |
| Initiative direction | Now/Next/Later roadmap of goals, one branch per goal and the dogfood backlog |

Account management, SSO, team permissions, general document canvases, and broad
import/template systems remain separate product decisions for this local prototype.
Expand All @@ -23,16 +23,16 @@ import/template systems remain separate product decisions for this local prototy

The inspected reference delivery curve is a burnup. MemCode provides burnup and
the requested burndown, using recorded cycle snapshots. An accessible daily table
exposes chart values. Estimates are manual story points, not Memtrace complexity
exposes chart values. Estimates are manual points, not Memtrace complexity
or time predictions.

On upgrade, existing stories become a present-day baseline. Earlier chart dates
On upgrade, existing tasks become a present-day baseline. Earlier chart dates
are unknown. Each transition into Done counts as recorded delivery; reopening and
accepting again produces another transition. The chart is labelled **Done
transitions**, not unique delivered stories. Future actuals remain unknown.
transitions**, not unique delivered tasks. Future actuals remain unknown.

A baseline is captured when a cycle starts. Closing captures final scope before
moving unfinished stories. Closing metrics remain frozen even when carried stories
moving unfinished tasks. Closing metrics remain frozen even when carried tasks
change later. Developers explicitly retain unfinished work, move it to backlog, or
carry it to an unfinished cycle. Active workers must finish or stop first.

Expand Down
34 changes: 21 additions & 13 deletions docs/PRODUCT.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
# MemCode: Fleet Agentic Worker Suite

MemCode is an independent local Tauri app built around a scrum-inspired work
board. A work item owns its brief, runbook, conversation, worker attempt, changes
and artifacts. Memtrace provides the understanding underneath the experience.
MemCode is an independent local Tauri app for planning work and running coding
agents. You say what you want; your connected worker plans it into **goals**
(outcomes you want) and **tasks** (one piece of work each). A task owns its brief,
runbook, conversation, worker attempt, changes and artifacts. Memtrace provides the
understanding underneath the experience.

## Two starting points

**Existing code:** choose a folder, analyze it with Memtrace, describe an outcome,
then run coordinated story workers on one shared epic branch.
**Existing code:** choose a folder, analyze it with Memtrace and say what you want.
Your worker plans it: a small fix becomes a quick change, bigger work becomes a goal
with a few tasks, and work that touches code an open goal is already changing joins
that goal. Tasks in a goal run side by side and stay coordinated.

**New idea:** choose a location, describe the project, create the initial brief and
runbook, then iteratively turn that into working software. Dictation is another
Expand All @@ -21,24 +25,28 @@ service owns project files, persistence, process launches and Memtrace MCP.
Installed harnesses own model execution; the app normalizes their observable output.
The browser never receives the desktop bridge.

An epic owns a branch. Its story workers share the project folder on that branch.
Memtrace Fleet supplies intent, scope reservations, conflict classification and
escalation. Unresolved overlaps pause the fleet and enter the human decision queue.
Changes remain in place; recording a decision does not reset files or automatically
resume a worker. A project switches epic branches only when its fleet is quiet and
the existing changes have been handled.
Each goal owns a branch and an isolated workspace (a Git worktree under MemCode's
profile), started from the team's integration branch. Its task workers share that
workspace and edit it at the same time; nothing is locked. Memtrace Fleet supplies
intent, conflict classification and the referee for disagreements. An overlap is
merged by the workers as they go. A disagreement the workers involved cannot settle
enters the human decision queue with what each of them wants, and holds only the
contested code. Changes remain in place; a decision does not reset files, and the
workers involved hear it at once. Commit, push, pull request, merge and
Update from dev happen only from explicit actions that list each step first. See
[How goals work](goals.md).

There is no mandatory cloud service and no MemCode account. Cloud model use is
optional through a user's harness. Transcription uses a loopback speech server.

## Dogfood loop

Open the MemCode repository as a project. Use Memtrace to examine it. Improve the
app through small work items, inspect the produced change, and record what the
app through small tasks, inspect the produced change, and record what the
iteration taught us. Keep the experience useful while gradually strengthening its
evidence and execution contracts.

Suggested next work items:
Suggested next tasks:

1. Extract the heaviest UI and IPC functions using measured source impact.
2. Add host-run verification receipts bound to candidate revisions.
Expand Down
23 changes: 13 additions & 10 deletions docs/account-and-workers.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Switch runs the official `memtrace auth logout` command before starting
started by MemCode. A failed or cancelled login is not presented as a completed switch.

This changes the shared Memtrace CLI session for the current OS user, across local
projects. It does not delete local MemCode projects, sign Codex/Claude/Cursor out
projects. It does not delete local MemCode projects, sign your coding tools out
of their providers, or delete saved Team membership. Verified Teams lock locally
until the intended Memtrace person confirms the account in the browser again.
Older invitation-preview memberships stay separate. The browser's memtrace.io
Expand All @@ -63,7 +63,7 @@ After changing the session, restart MemCode before starting more workers. Restar
any Memtrace workspace running separately as well: CLI logout removes saved
credentials but does not replace an already-running daemon's cached authentication.
MemCode does not terminate external workspace daemons. The worker guard applies
to direct starts and automatic queued follow-ups for all three adapters.
to direct starts and automatic queued follow-ups for every adapter.

MemCode records only a non-secret explicit signed-out flag in its local profile,
so refreshing or reopening the app cannot turn a cached owner's old `Valid` status
Expand Down Expand Up @@ -107,11 +107,13 @@ The user opens Connect, reviews the execution and context scope, checks the
approval box and explicitly approves. The host validates an existing sign-in
using read-only commands:

| Adapter | Read-only check |
| ------------ | ---------------------------- |
| Codex | `codex login status` |
| Claude Code | `claude auth status` |
| Cursor Agent | `agent status --format json` |
| Adapter | Read-only check |
| ---------------- | -------------------------------------------------------- |
| Codex | `codex login status` |
| Claude Code | `claude auth status` |
| Cursor Agent | `agent status --format json` |
| GitHub Copilot | Model catalog probe; the CLI confirms access on first use |
| DeepSeek Harness | Model catalog probe; the CLI confirms access on first use |

Configured local Codex inference does not require a cloud login. The consent
receipt contains only adapter, executable path, approval time, auth category,
Expand All @@ -120,7 +122,7 @@ in the receipt. Changing the runtime path requires a new approval. Automatic
routing considers only approved installed runtimes; manual starts validate their
specific adapter and path.

Connecting does not start a coding task. Sending a task authorizes work. To
Connecting does not start a coding task. Starting a task authorizes work. To
disconnect an adapter, first stop its active workers; disconnect then prevents
future starts without signing the user out of their provider. Local Fleet
coordination and provider permission rules still apply; these consent records
Expand All @@ -129,5 +131,6 @@ are not hard filesystem write fencing.
The connection tests use real short fixture processes to verify that only the
documented status commands run, approval is explicit, paths are bound, secrets
are omitted and Memtrace sign-in opens only the official claim host. Actual
installed status checks on the Windows development machine confirmed all three
CLIs had existing provider authentication, without granting production consent.
installed status checks on the Windows development machine confirmed the Codex,
Claude Code and Cursor CLIs had existing provider authentication, without granting
production consent.
Loading