Skip to content

PRD to beads skill make wrong file system bash calls when making beads in Opencode #151

@nimitbhardwaj

Description

@nimitbhardwaj

System Information

ralph-tui: unknown
runtime: bun 1.3.6
os: darwin 25.2.0 (arm64)
agent: opencode v1.1.25
tracker: beads
global-config: no
project-config: yes
templates: default.hbs, json.hbs, beads.hbs, beads-bv.hbs

Steps to reproduce

Hi,
I was refactoring my codebase, and hence first came up with prompt as below

ok so I hvae to refactor my code and documentations in such a way that code is easier to understand and its split rightfullyy in files as its now getting bigger and bigger, also documentation and agents.md file seems to be kinda out dated, I use tools of ruff, mypy, pytest etc usnig uv for package management I want to be explicit on it as well, the code refactoring should for now be purely on the basis of ease of code redability and management, but it can also include refactoring where functionality remains same but gets improved in some way using refactoring. Also its important to refactor the unit tests as well, they would follow same folder structure for src code

Now using ralph-tui-prd skill to create prd document for above usecase I am highlighting

Based on it and after some questions, it made the required PRD document correctly, this was done in planning mode in opencode. Then after that I asked it to create the beads for the PRD using ralph-tui-create-beads skill with below prompt
cool now using ralph-tui-create-beads tool to create the beads for this

When it was try to create beads, there were many error and after 2 or 3 retries only it was able to create the beads but the context inside the beads provided was not consistent with the format of beads required by ralph-tui for proper rendering of information, the beads created initially had errors like below


**Input:**

{
  "command": "cd /Users/nimitbhardwaj/Programs/Projects/dotman && bd create --parent=dotman-nba --title=\"US-004: Refactor CLI status and list commands into separate module\" --description=\"As a developer, I want the status and list commands extracted from cli.py into their own module for better organization.\n\n## Acceptance Criteria\n- [ ] Create `src/dotman/cli/commands/status.py` with `status()` and `list_packages()` functions\n- [ ] Update `src/dotman/cli.py` to import and use these functions\n- [ ] All existing tests for status and list continue to pass\n- [ ] Update test files to match new structure\n- [ ] uv run ruff check . passes\n- [ ] uv run ruff format --check . passes\n- [ ] uv run mypy . passes\n- [ ] uv run pytest passes\" --priority=4 --labels=\"ralph,task\" 2>&1",
  "description": "Create US-004 bead"
}

**Output:**

zsh:1: no such file or directory: src/dotman/cli/commands/status.py
zsh: parse error near `()'
zsh:1: parse error in command substitution


Tool: bash

**Input:**

{
  "command": "cd /Users/nimitbhardwaj/Programs/Projects/dotman && bd create --parent=dotman-nba --title=\"US-005: Refactor CLI watch and history commands into separate module\" --description=\"As a developer, I want the watch and history commands extracted from cli.py into their own module.\n\n## Acceptance Criteria\n- [ ] Create `src/dotman/cli/commands/watch.py` with `watch()` function\n- [ ] Create `src/dotman/cli/commands/history.py` with `history()` and `rollback()` functions\n- [ ] Update `src/dotman/cli.py` to import and use these functions\n- [ ] All existing tests for watch and history continue to pass\n- [ ] Update test files to match new structure\n- [ ] uv run ruff check . passes\n- [ ] uv run ruff format --check . passes\n- [ ] uv run mypy . passes\n- [ ] uv run pytest passes\" --priority=5 --labels=\"ralph,task\" 2>&1",
  "description": "Create US-005 bead"
}


**Output:**

zsh:1: no such file or directory: src/dotman/cli/commands/watch.py
zsh: parse error near `()'
zsh:1: parse error in command substitution



I have attached the logs for whole of discussion I had in session with opencode for creating required beads for ralph to work on
session-ses_42bc.md

Relevant logs / terminal output

I have provided the logs in above detail about the bug.

Configuration (if relevant)

# Ralph TUI Configuration
# Generated by setup wizard
# See: ralph-tui config help

configVersion = "2.1"
tracker = "beads"
agent = "opencode"
maxIterations = 10
autoCommit = false

[trackerOptions]
beadsDir = ".beads"
labels = "ralph"

[agentOptions]

Additional context

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions