Skip to content

feat(agent): harness adapter — miner-auto-dev profile + driving loop (#781) - #850

Merged
JSONbored merged 1 commit into
mainfrom
feat/agent-harness-autodev-781
Jun 18, 2026
Merged

feat(agent): harness adapter — miner-auto-dev profile + driving loop (#781)#850
JSONbored merged 1 commit into
mainfrom
feat/agent-harness-autodev-781

Conversation

@JSONbored

Copy link
Copy Markdown
Owner

Closes #781

What & why

Phase 2 (#770) — final piece. Extends init-client into a first-class auto-dev profile that wires the miner's local harness (Claude Code/Codex/Cursor) to the gittensory MCP + the plan→implement→push driving loop. With this, Phase 2 is complete.

How

New miner-auto-dev agent profile in the published CLI (packages/gittensory-mcp/bin/gittensory-mcp.js). Unlike the existing human-approved-only profiles, it is gate-throttled:

Boundary

Every GitHub write is run by the miner's own harness with its own credentials via a write-tool's returned command — gittensory supplies content + the gate only, never performs the write, never sees source.

Tests

The new profile round-trip (Phase-2 tools wired, driving loop present + gate-throttled, local-execution boundary + note, no token leakage). Existing profile tests unchanged (the new profile is intentionally not in the human-approved-only set). Full suite green (2118); CLI smoke + node --check ok.

Note: the published MCP CHANGELOG is regenerated at mcp-release time (not a per-PR gate), so it's intentionally untouched here.

…781)

Phase 2: extend init-client into a first-class auto-dev profile that wires the
miner's local harness (Claude Code/Codex/Cursor) to the gittensory MCP + the
plan→implement→push driving loop. Closes out Phase 2.

- packages/gittensory-mcp/bin/gittensory-mcp.js: new `miner-auto-dev` agent
  profile. Unlike the human-approved-only profiles, it is GATE-THROTTLED: it
  wires the new Phase-2 tools (run_local_scorer #782, build_plan/plan_status/
  record_step_result #783, open_pr/file_issue/apply_labels/post_eligibility_
  comment/create_branch/delete_branch #780) plus preflight/slop/predict-gate,
  and carries a 5-step driving loop — select reward-optimal work (respect the
  open-PR gate, credibility floor, time-decay) → plan a step DAG → harness
  implements locally → gate-check (scorer + slop + preflight) → push via the
  local write-tools only when the gate passes. formatAgentProfile renders the
  driving loop; the init-client note for an auto-dev profile reflects local
  execution after the gate (not the human-approved framing).

Tests: the new profile round-trip (Phase-2 tools wired, driving loop present +
gate-throttled, local-execution boundary + note, no token leakage). Existing
profile tests unchanged (the new profile is intentionally NOT in the
human-approved-only set). Full suite green (2118); CLI smoke + node --check ok.

Note: the published MCP CHANGELOG is regenerated at mcp-release time (not a
per-PR gate).
@dosubot dosubot Bot added the size:XS label Jun 18, 2026
@ghost

ghost commented Jun 18, 2026

Copy link
Copy Markdown

Note

Gittensory Gate skipped

PR closed before full evaluation. No late first comment was created.

Signal Result Evidence Action
Gate result ⚠️ Skipped #850 is no longer open. No action.

💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →.

Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers.

@ghost ghost added the gittensory:reviewed label Jun 18, 2026
@superagent-security

Copy link
Copy Markdown
Contributor

Superagent didn't find any vulnerabilities or security issues in this PR.

@codecov

codecov Bot commented Jun 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.68%. Comparing base (e111622) to head (eabc696).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #850   +/-   ##
=======================================
  Coverage   96.68%   96.68%           
=======================================
  Files         108      108           
  Lines       14609    14609           
  Branches     5288     5288           
=======================================
  Hits        14125    14125           
  Misses        105      105           
  Partials      379      379           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@JSONbored
JSONbored merged commit 134b0c3 into main Jun 18, 2026
20 checks passed
@JSONbored
JSONbored deleted the feat/agent-harness-autodev-781 branch June 18, 2026 00:48
@ghost

ghost commented Jun 18, 2026

Copy link
Copy Markdown

gittensory · advisory review

Reviewed 2 changed file(s) — two independent AI reviewers.

Changed files: packages/gittensory-mcp/bin/gittensory-mcp.js, test/unit/mcp-cli-basics.test.ts

Suggested action:Safe to merge — both reviewers found no blocking issues.

Reviewer A · gpt-oss-120b — recommends ✅ merge
This PR adds a new "miner-auto-dev" agent profile with a detailed driving loop and updates CLI output to reflect its gate‑throttled local execution, plus a test verifying the new behavior.

Suggestions

  • Confirm that the TypeScript type for agent profiles includes the new optional fields (drivingLoop, boundaries) to avoid compile errors.
  • Update any documentation or README that lists available agent profiles to mention the new miner-auto-dev profile.
  • Consider adding a test for a profile without a drivingLoop to ensure the CLI note fallback still works as expected.

Worth double-checking

  • Potential TypeScript type mismatch if the profile interface is not extended for the new fields.
  • Public output must continue to avoid forbidden terms; verify that the new description does not introduce any.

Reviewer B · mistral-small-3.1-24b-instruct — recommends ✅ merge
This PR adds a new agent profile 'miner-auto-dev' to the Gittensory MCP CLI. The profile includes detailed instructions for a plan-implement-push loop, recommended tools, and safety boundaries. The changes are well-documented and include corresponding tests.

Suggestions

  • Consider adding a brief description of the new profile in the README or documentation to inform users about its purpose and usage.
  • Ensure that the new profile's driving loop and safety boundaries are clearly communicated in any related documentation or user guides.

Worth double-checking

  • Verify that the new profile does not introduce any security risks, especially regarding the handling of GitHub writes and credentials.
  • Ensure that the new profile's driving loop and safety boundaries are thoroughly tested to prevent any unintended behavior or security vulnerabilities.

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.

feat(agent): harness adapter ('connect a Claude/Codex subscription') + driving loop

1 participant