Skip to content

feat: add init slash command#11

Merged
boggedbrush merged 4 commits into
mainfrom
feat/agents-init-slash-command
Apr 29, 2026
Merged

feat: add init slash command#11
boggedbrush merged 4 commits into
mainfrom
feat/agents-init-slash-command

Conversation

@boggedbrush
Copy link
Copy Markdown
Owner

Summary

This PR adds a new /init slash command to the composer so users can quickly create the harness instruction file for their current provider.

  • Codex users get AGENTS.md
  • Claude users get CLAUDE.md

If both harnesses are enabled and installed, /init also offers to create the counterpart file as a symlink so both harnesses can share the same instructions without duplication.

What’s included

  • Added /init to slash command parsing and command menu
  • Added harness-aware guide file creation based on the currently selected provider
  • Added symlink prompt flow when both harnesses are available
  • Added a safe workspace symlink RPC on the server
  • Added tests for:
    • slash command parsing
    • init command helper logic
    • workspace symlink creation
    • websocket RPC routing

Why

Both Codex and Claude already support repo-level instruction files, so this makes setup faster and more discoverable directly inside Kodo Code. The symlink option also helps avoid maintaining duplicate instructions in repos that use both harnesses.

Verification

  • bun fmt
  • bun lint
  • bun typecheck
  • Targeted web and server Vitest coverage for the new /init flow and symlink support

Notes

  • /init is idempotent for existing files and avoids creating duplicate guide files when the counterpart already exists.
  • Symlink creation stays inside the workspace root and is handled through typed workspace RPCs rather than shelling out.

@boggedbrush boggedbrush merged commit 3766ae7 into main Apr 29, 2026
2 checks passed
@boggedbrush boggedbrush deleted the feat/agents-init-slash-command branch May 18, 2026 23:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant