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
1 change: 1 addition & 0 deletions apps/vscode-extension/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
- A function the agent writes from scratch gets a new floor, built in front of you when the step plays.
- Resting the pointer on a floor names its function, its lines and how many times it was read and written.
- Line data comes from Claude Code's edit and read results and from the Code-XR IDE's agent locations; a step without it lights the whole building, as before.
- Sub-agent hangar: when the agent delegates, its UFO docks on the control tower and coordinates; each sub-agent waits in a hangar beside it, takes off on its first step, stays linked to the tower by a radio line and lands back in its bay when done. The hangar and the tower have their own pinnable cards.
- The timeline is time travel: at any step the city shows the project as it was then, and playing forward builds each change.
- Files created, deleted, moved or renamed appear and disappear in their step, whatever tool did it: shell commands (`rm`, `git rm`, `mv`, `git mv`, `cp`, `touch`, `> file`, `tee`, `sed -i` and their PowerShell and cmd forms), Codex patches (including moves) and the IDE's agents.
- A function the agent deletes keeps its floor until that step, then the floor comes down.
Expand Down
2 changes: 1 addition & 1 deletion apps/vscode-extension/templates/components/COMPONENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ its parts directory. Manual harnesses load assembled copies from
- `codexr/agent-flow/agentFlowRuntime.js` (loads right after the dependency graph runtime)
- Owns the Agent Flow mode (#319): an AI coding agent's session replayed or followed live on the table. See `docs/features/AGENT_FLOW_XR.md`.
- Registers `codexr-city`, Code-XR's own city chart (layout and look modeled on babia-boats from BabiaXR, GPL-3.0): nested folder plates and instanced buildings, with an API (`getBuildingTop`, `setBuildingHeight`, `addScaffold`, `setRoofTint`, `demolish`, `raise`, `setFoundation`, `setHazard`, ...) that the worker and effect layer goes through instead of reaching into entities.
- Draws one worker per actor (the main agent and each sub-agent), their actions (scan, radar, scaffold and crane, test tower, permission sign), the timeline and the controller view `agent-flow`. Persistent marks are recomputed from the playhead, so seeking is exact; live effects are capped at 40 and workers at 12; reduced motion draws everything static.
- Draws one worker per actor (the main agent and each sub-agent), their actions (scan, radar, scaffold and crane, test tower, permission sign), the sub-agent airfield (control tower dock, hangar bays, radio links; airfield.js), the timeline and the controller view `agent-flow`. Persistent marks are recomputed from the playhead, so seeking is exact; live effects are capped at 40 and workers at 12; reduced motion draws everything static.
- Room messages: `agent-flow-sources-request`, `agent-flow-open`, `agent-flow-close` -> `agent-flow-sources`, `agent-flow-error`; shared entity `agent-flow`. Pinned by `test/analysis/agentFlowRuntime.test.cjs` and the harness `test/runners/run-agent-flow-harness.cjs`.
- `codexr/drill-down/drillDownRuntime.js` (loads right after the Agent Flow runtime)
- Owns the drill-down navigation (#333): pick a building or a district of a boats chart, choose Analyze, and the table switches in place to the analysis of that file or folder, on the same server. See `docs/features/DRILL_DOWN_XR.md`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -302,19 +302,6 @@
});
}

/** The main worker hands work over: a bright beam to the newborn worker. */
function delegateBeam(v, from, to, color, durationMs) {
var T = three();
var curve = new T.QuadraticBezierCurve3(
new T.Vector3(from.x, from.y + 0.05, from.z),
new T.Vector3((from.x + to.x) / 2, Math.max(from.y, to.y) + 0.18, (from.z + to.z) / 2),
new T.Vector3(to.x, to.y + 0.05, to.z)
);
var beam = new T.Mesh(new T.TubeGeometry(curve, 20, 0.004, 6, false),
new T.MeshBasicMaterial({ color: color, transparent: true, opacity: 0.95, depthWrite: false, blending: T.AdditiveBlending }));
addEffect(v, beam, durationMs, function (t) { beam.material.opacity = 0.95 * (1 - t * t); });
}

/** One-shot effects when a worker arrives for a step (motion only). */
function spawnArrivalEffects(v, step, durationMs, spot) {
if (!step || !state.motion) { return; }
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,18 @@
c.baseY[index] = (c.outside[index] ? 1 : containingDepth(file, c.districts)) * PLATE_STEP;
}
});
c.zero = new T.Matrix4().makeScale(0.00001, 0.00001, 0.00001);
// An InstancedMesh starts every instance at the identity matrix: a 1 m box at
// the city's origin. A file with no height at the opened step (deleted by the
// session, or not created yet) is never written by setBuildingHeight, so it
// would stand there as a huge block. Every building starts hidden instead.
for (var b = 0; b < count; b += 1) { mesh.setMatrixAt(b, c.zero); }
if (!c.files.length) { mesh.count = 0; }
c.buildings = mesh;
// Roof tints: a thin cap per building, hidden (zero scale) until tinted.
var roofs = new T.InstancedMesh(track(c, new T.BoxGeometry(1, 1, 1)), track(c, new T.MeshBasicMaterial({ color: '#ffffff' })), count);
roofs.name = 'agentFlowRoofs';
roofs.instanceMatrix.setUsage?.(T.DynamicDrawUsage);
c.zero = new T.Matrix4().makeScale(0.00001, 0.00001, 0.00001);
for (var i = 0; i < count; i += 1) { roofs.setMatrixAt(i, c.zero); roofs.setColorAt(i, c.color.set('#ffffff')); }
c.group.add(roofs);
c.roofs = roofs;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@
var TIMELINE = { width: 4.4, height: 0.5, x: 0, y: 0.13, z: 1.66, tilt: -58 };
// Front-left corner: commands are about the whole project, not one file.
var CONSOLE_PILLAR = { x: -2.78, z: 1.2, height: 0.36, radius: 0.07 };
// The sub-agents' hangar, beside the tower (the tower doubles as the control
// tower the main agent coordinates them from): a vaulted shed along x with
// its mouth to the city (+x) and launch pads on the apron in front. Its
// width grows with the bays (one per sub-agent out at the same time, 1-4);
// its front edge (+z) stays clear of the tower.
var HANGAR = { x: -2.86, frontZ: 0.98, length: 0.4, height: 0.15, bayWidth: 0.13, margin: 0.06, apron: 0.28, maxBays: 4 };
var TRAIL_HOPS = 24;
var HOP_SAMPLES = 10;
var BASE_STEP_MS = 900;
Expand Down
Loading
Loading