Skip to content

fix: repair main build drift + feat: sin-code research command (issue #384) - #408

Merged
Delqhi merged 1 commit into
mainfrom
feat/research-report-clean
Jun 18, 2026
Merged

fix: repair main build drift + feat: sin-code research command (issue #384)#408
Delqhi merged 1 commit into
mainfrom
feat/research-report-clean

Conversation

@Delqhi

@Delqhi Delqhi commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator

This PR delivers the autonomous research-report feature (issue #384) and repairs a set of build breaks that accumulated on main from parallel-agent WIP drift.

Build repairs included:

  • Remove stale unused toolretrieval import in chat_mcp.go
  • Fix literal-newline syntax errors in chat_tools.go toolBash
  • Restore extraSpecs() function structure in chat_tools_extra.go
  • Fix fmt.Sscanf error handling in browser_interaction.go
  • Add repetitionThreshold / repetitionWindow fields and CLI flags to chat_cmd.go
  • Wire agentloop.Loop.LoopDetector with hooks.LoopDetected event

Feature:

  • Add cmd/sin-code/research_cmd.go with sin-code research <topic>
  • Register NewResearchCmd in main.go
  • Add research__* permission defaults (dry_run/list allow, run ask, catch-all ask)

Verification: go build ./cmd/sin-code/... and go test ./cmd/sin-code/internal/agentloop/... -race -count=1 pass.

Closes #384. Supersedes/closes #401.

@vercel

vercel Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
sin-code Ready Ready Preview, Comment, Open in v0 Jun 18, 2026 7:16pm

@github-actions

Copy link
Copy Markdown

🏆 CEO Audit — A+ (100.0/100)

Metric Value
Grade A+
Score 100.0/100
Critical findings 0
High findings 0
Profile QUICK
Min grade gate B

📥 Download full report (Markdown)
📊 Download SARIF (for Code Scanning)

Run ~/.config/opencode/skills/ceo-audit/scripts/audit.sh . --profile=QUICK locally to reproduce.

@github-actions

Copy link
Copy Markdown

🏆 CEO Audit — A+ (100.0/100)

Metric Value
Grade A+
Score 100.0/100
Critical findings 0
High findings 0
Medium findings 0
Profile QUICK
Min grade gate B

📥 Download full report (Markdown)

Run ID: 27783473224 · Commit: ${github.sha}

Run ~/.config/opencode/skills/ceo-audit/scripts/audit.sh . --profile=QUICK locally to reproduce.

@Delqhi
Delqhi merged commit 98c4282 into main Jun 18, 2026
9 of 12 checks passed
}

func WriteReport(outDir, slug, body string) (string, int, error) {
if err := os.MkdirAll(outDir, 0o755); err != nil {
}
path := filepath.Join(outDir, slug+".md")
data := []byte(body)
if err := os.WriteFile(path, data, 0o644); err != nil {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Autodev/Autoresearch: Autonomous research report generation

2 participants