Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: clarify nested slashdo reference resolution

[._.]/ Adam Eivyc923c65c71fd
diff --git a/AGENTS.md b/AGENTS.md
index 4dac92276f..c3a889086a 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -125,7 +125,7 @@ Client- and server-specific conventions live in nested memory files that load wh
PortOS bundles [slashdo](https://github.com/atomantic/slashdo) as a git submodule at `lib/slashdo`, providing slash commands (`/do:next`, `/do:review`, `/do:pr`, `/do:push`, `/do:release`, …) without a separate global install. The `.claude/commands/do/` symlinks expose them as project-level slash commands. `/do:next` claims the next PLAN.md item (or GitHub issue with `--issues`) in an isolated worktree and ships a PR. CoS agents use the shared slashdo renderer: file-tool hosts receive a short entrypoint with supporting files read by phase; `loadSlashdoCommand(name)` from `server/services/subAgentSpawner.js` remains the eager, self-contained form for other consumers.
-Project command symlinks expose slashdo source directly. In that source, `!read lib/<name>.md` means read `lib/slashdo/lib/<name>.md` when the named phase applies; resolve nested library references (including `~/.claude/lib/<name>.md` tokens) against that same bundled package root. These are required reads, not shell commands. Do not preload every phase or depend on a global slashdo installation. Staged CoS bundles instead use paths relative to their entrypoint.
+Project command symlinks expose slashdo source directly. In that source, `!read lib/<name>.md` means read `lib/slashdo/lib/<name>.md` when the named phase applies; resolve nested library references (including `~/.claude/lib/<name>.md` tokens) against that same bundled package root. These are required reads, not shell commands. Do not preload every phase or depend on a global slashdo installation. Staged CoS bundles instead resolve each reference relative to the file containing it.
## Module Organization
diff --git a/server/lib/slashdoInvocation.js b/server/lib/slashdoInvocation.js
index d6d83b247b..ea72a9c1ba 100644
--- a/server/lib/slashdoInvocation.js
+++ b/server/lib/slashdoInvocation.js
@@ -437,7 +437,7 @@ export function buildSlashdoSection(resolved, body = null, {
}
if (body && bodyPath) {
lines.push('', oversizedBodyPointer(bodyPath, body),
- 'Resolve supporting-file paths relative to that file. Read each required reference only when its phase or condition applies; do not preload the bundle.');
+ 'Resolve each supporting-file path relative to the file containing that reference. Read each required reference only when its phase or condition applies; do not preload the bundle.');
} else if (body) {
lines.push(
'',
diff --git a/server/lib/slashdoInvocation.test.js b/server/lib/slashdoInvocation.test.js
index 6450d49902..26b20a5fae 100644
--- a/server/lib/slashdoInvocation.test.js
+++ b/server/lib/slashdoInvocation.test.js
@@ -290,7 +290,7 @@ describe('buildSlashdoSection — inline budget vs file pointer', () => {
const section = buildSlashdoSection(codex(), small, { bodyPath: PATH });
expect(section).not.toContain(small);
expect(section).toContain(PATH);
- expect(section).toContain('relative to that file');
+ expect(section).toContain('relative to the file containing that reference');
});
it('inlines an over-budget body when no path is offered (an api provider has no file tools)', () => {
diff --git a/server/services/agentPromptBuilder.test.js b/server/services/agentPromptBuilder.test.js
index 47409894e0..3b2f3f55fc 100644
--- a/server/services/agentPromptBuilder.test.js
+++ b/server/services/agentPromptBuilder.test.js
@@ -3382,7 +3382,7 @@ describe('buildAgentPrompt — slashdo prompt-size controls', () => {
{ providerType: 'cli', providerId: 'codex' });
expect(writeResolvedSlashdoBody).toHaveBeenCalledWith('review', body, { files });
expect(prompt).toContain('/install/data/cos/slashdo-resolved/review.md');
- expect(prompt).toContain('relative to that file');
+ expect(prompt).toContain('relative to the file containing that reference');
expect(prompt).not.toContain(body);
expect(prompt).toContain('--review-with codex');
});