NeuralCodeDOCS
Developer reference

Backend commands

For the curious and the contributors: every Tauri command the React frontend invokes on the Rust backend. These power the features documented elsewhere.

Note
This is a developer reference. If you just want to use NeuralCode, the feature pages under Core workflow are what you want. Commands are invoked from the UI via a typed api bridge.

Projects & workspaces#

CommandPurpose
open_project(path)Validate a git repo, resolve its toplevel + base branch, add it as a project.
list_projects() / list_workspaces()Load saved projects and workspaces.
create_workspace(project, name, task, base, prefix)Create the git worktree + branch and the workspace record.
list_branches(project)Branches available as a base for a new workspace.
merge_workspace / archive_workspace / delete_workspace(id)Merge into base, archive (remove worktree), or delete entirely.

Agent runs#

CommandPurpose
send_agent_message(id, message)Append the user message and spawn claude with the right model / permission / thinking flags.
complete_agent_run(id, text, steps, durationMs, code)Persist a finished turn (text + tool steps + timing).
stop_agent(id)Kill the running agent process.
start_review(id) / set_review(id, text)Spawn the read-only self-review agent and store its result.
run_checks(id)Detect and run the project's tests, capturing pass/fail + output.

Diff, git & GitHub#

CommandPurpose
get_diff(id)Compute the unified diff + per-file change stats.
commit_workspace(id, message) / push_workspace(id)Stage + commit, and push the branch.
open_pr(id)Push and open a PR via gh pr create --fill.
github_status()Whether the gh CLI is installed and authenticated.
github_device_start() / github_device_poll(...)Drive the GitHub device-code sign-in.
list_issues(project)Open issues for the repo (for the issues → workspace flow).

Files & terminal#

CommandPurpose
list_files(id) / read_file(id, path)Walk the worktree and read a file (guarded, ~400 KB cap, no binaries, no traversal).
terminal_start(id, rows, cols)Spawn the login shell in a PTY at the worktree.
terminal_input(id, data) / terminal_resize(id, rows, cols)Send keystrokes and resize the PTY.

Settings, commands, usage & deps#

CommandPurpose
get_settings() / set_settings(s)Read and write settings (auto-saved).
list_commands() / upsert_command(c) / delete_command(id)Manage custom commands & skills.
list_slash_commands(cwd)Discover the built-in Claude Code slash commands in a directory.
record_usage(...) / list_usage()Append and read token/cost usage records.
dependency_status()Detect git and the claude CLI for the setup gate.
install_claude() / install_git() / install_gh()One-click installers for the dependencies.
google_sign_in() / get_google_account() / google_sign_out()The Google OAuth + PKCE flow.
Note
See Events & streaming for the live channels these commands feed, and Data model for the shapes they return.