Guides
Short workflows for common coding tasks.
Start with a task below, then adapt the commands to your repository.
Choose a Workflow
// Start with the job, not the command
Choose a guide for the task you need to complete.
Install, sign in, and run a first task.
Plan, implement, and verify a feature.
Diagnose a failure, then verify the fix.
Run tasks in CI with JSON output.
Set project instructions and permissions.
Find fixes for common runtime issues.
Build a Feature
// Plan → implement → verify
Give LucentraCode a concrete objective and a definition of done. Keep planning, implementation, and verification as separate steps when the change affects multiple files or systems.
lucentracode run --agent plan "plan a user invitation flow and identify the files, tests, and risks"lucentracode run --agent build "implement the user invitation flow from the plan"lucentracode run "run the relevant tests, typechecks, and lint checks for the invitation flow"lucentracode run --agent review "review the current changes for correctness, security, and missing tests"Debug a Failing Test
// Diagnose before editing
Give LucentraCode the failure output, the affected area, and the expected behavior. Ask for a root-cause analysis first when the failure could have multiple causes.
lucentracode run --agent review "inspect the failing test output, identify the root cause, and propose the smallest fix"lucentracode run "fix the root cause and run the focused tests for this failure"lucentracode run --format json "run the full test suite and report any remaining failures"Run LucentraCode in CI
// Machine-readable repository automation
CI jobs should authenticate through secret-managed environment variables, target a known directory, request JSON output, and fail visibly when verification does not complete.
- name: Verify generated changes
env:
LUCENTRACODE_API_KEY: ${{ secrets.LUCENTRACODE_API_KEY }}
run: |
lucentracode run \
--dir ./ \
--format json \
"run the relevant tests and report failures without changing unrelated files"Add an MCP Tool
// Extend the CLI with a trusted integration
lucentracode mcp listlucentracode mcp addlucentracode mcp authlucentracode run "use the configured MCP tool to inspect the issue and report what it found"- •Confirm what data the server can read.
- •Confirm which actions it can perform.
- •Use a separate credential or account when possible.
- •Remove stored credentials when the integration is no longer needed.
