Skip to content

Captain Code v0.3.6

Choose a tag to compare

@romainPellerin romainPellerin released this 04 Oct 13:14
· 20 commits to main since this release

Euclid search

  • Workers can search files and code. captain euclid search, captain euclid code, and the MCP search / file_search tools. Default documents exclude journals. include_journals adds them. Config search returns tracked paths and no file values.
  • CodeIntel is behind code search. Euclid asks CodeIntel for declaration hits and fuses them into the code lane. The chain stops at four nested MCP launches. A config file cannot reset that count. CodeIntel's MCP endpoint rejects a callback into Euclid.
  • A failed search is an error. It is not reported as zero matches. If CodeIntel is slow or down, Euclid keeps its local hits.
  • Plain -rr refuses a mismatch. If CAPTAIN_EUCLID_MCP_CONFIG is set and the revision has no EngineSearchOptions, the launcher stops before it replaces the binary or stops the brain. Use -rr --checkout only for a reviewed working tree.

OpenShell

  • Confirm the sandbox from the prompt. If CAPTAIN_OPENSHELL_ALLOWED or CAPTAIN_OPENSHELL_VERIFY is unset, the sandbox does not start. Captain prints the files the task cites that exist at HEAD, and a test command detected from the repo. You start the run by prefixing the task: confirm allowed=file.go verify=["go","test","./..."]. A path only a model added is not accepted. CAPTAIN_OPENSHELL_PREPARED and CAPTAIN_OPENSHELL_PILOT stay machine settings.
  • A strict cap prices the director. The reservation is $0.05 per planner call (CAPTAIN_OPENSHELL_DIRECTOR_USD). It is taken out of the worker budget before the sandbox starts. /team /openshell is no longer refused only because the planner call had no price.
  • Shield's committed spend is charged. When the provider bill is incomplete and every started worker has a Shield budget, that committed amount is the ledger charge. A complete bill still wins. An incomplete bill with no Shield budget stays unknown.
  • A strict-capped run can resume. Spent commitments and the director reservation are subtracted from the saved cap. The remainder is split across the stages that are left.
  • A crash mid-stage reruns that stage. A stage that finished but whose checkpoint is stale is reused. A stage that was still running, and does not revalidate, is set aside and rerun. The crashed directory is not the verified export. Deleting a completed stage's run.json still refuses the resume.

Docs

  • The M3.7 sections of docs/ROADMAP.md say shipped in v0.3.0, not unreleased.

Still open: mixed host and sandbox stages, and the upstream VM-driver vouch (NVIDIA OpenShell discussion #4079, PR #3940 still closed).

Install or update: go install github.com/lemma-ventures/captaincode/cmd/captaincode@latest.

If the module proxy still serves an older tag, use GOPROXY=direct go install github.com/lemma-ventures/captaincode/cmd/captaincode@v0.3.6.