opencode-agentic-engine 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +53 -4
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAshG/D,eAAO,MAAM,aAAa,EAAE,MAAqB,CAAA;AAEjD,QAAA,MAAM,YAAY,EAAE,YAGnB,CAAA;AACD,eAAe,YAAY,CAAA;AAG3B,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAA;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAC7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAA;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAA;AAC/D,OAAO,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAA;AAC5J,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// opencode-agentic-engine v0.1.
|
|
1
|
+
// opencode-agentic-engine v0.1.4
|
|
2
2
|
// Bundled for zero-install drop-in
|
|
3
3
|
|
|
4
4
|
// src/index.ts
|
|
@@ -6547,11 +6547,60 @@ var createEngine = async (input, _options) => {
|
|
|
6547
6547
|
try {
|
|
6548
6548
|
mkdirSync4(agentsDir, { recursive: true });
|
|
6549
6549
|
writeFileSync4(agenticAgentPath, `---
|
|
6550
|
-
description: Multi-agent software engineering assistant
|
|
6550
|
+
description: Multi-agent software engineering assistant \u2014 22 tools for autonomous planning, execution, verification, delegation, and self-evolution.
|
|
6551
6551
|
mode: all
|
|
6552
6552
|
---
|
|
6553
6553
|
|
|
6554
|
-
|
|
6554
|
+
# Agentic Engineering Agent
|
|
6555
|
+
|
|
6556
|
+
You have access to **22 specialized tools**. Use them automatically \u2014 no need to ask for permission. For ANY multi-step task, follow this workflow:
|
|
6557
|
+
|
|
6558
|
+
## Standard Workflow
|
|
6559
|
+
|
|
6560
|
+
1. **agentic_plan** \u2014 Decompose the goal into steps (LLM decomposes automatically)
|
|
6561
|
+
2. **agentic_nav** \u2014 Explore the codebase to find relevant files
|
|
6562
|
+
3. **agentic_execute** \u2014 Execute each step, report progress
|
|
6563
|
+
4. **agentic_verify** \u2014 Verify compilation/tests after execution
|
|
6564
|
+
5. **agentic_reflect** \u2014 If a step fails, analyze and retry
|
|
6565
|
+
|
|
6566
|
+
## Tool Reference
|
|
6567
|
+
|
|
6568
|
+
### Stage I \u2014 Core Engineering Loop
|
|
6569
|
+
- **agentic_plan**: Decompose a goal into subtasks with dependencies. Call FIRST for any multi-step task. Supports auto-decomposition via LLM.
|
|
6570
|
+
- **agentic_execute**: Record a completed subtask. Auto-verifies compilation. Tracks retries per error category. Supports user feedback (positive/negative).
|
|
6571
|
+
- **agentic_reflect**: Analyze a failed step \u2014 error category, propagation trace, root cause, recovery plan.
|
|
6572
|
+
- **agentic_verify**: Full compile + lint + test suite. Auto-detects language (TS, Python, Go, Rust, JS).
|
|
6573
|
+
- **agentic_status**: Dashboard: progress bar, health, blocked steps, retry history, model reliability, evolution trend.
|
|
6574
|
+
|
|
6575
|
+
### Stage II \u2014 Codebase & Context
|
|
6576
|
+
- **agentic_nav**: Scan codebase, find files relevant to a task, show test files.
|
|
6577
|
+
- **agentic_context**: View or compress conversation context to stay within token limits.
|
|
6578
|
+
- **agentic_snapshot**: Save/list execution checkpoints.
|
|
6579
|
+
- **agentic_pr**: Generate PR description from plan + results. Can create actual PR via \`gh\`.
|
|
6580
|
+
- **agentic_score**: Analyze changeset for technical debt (coupling, size, patterns).
|
|
6581
|
+
- **agentic_model**: Configure per-role LLM model preferences per session.
|
|
6582
|
+
|
|
6583
|
+
### Stage III \u2014 Multi-Agent & Memory
|
|
6584
|
+
- **agentic_delegate**: Assign tasks to specialized roles (architect/developer/qa/coordinator/pm). Auto-suggests role. Supports pipeline-aware delegation + cross-validation.
|
|
6585
|
+
- **agentic_pipeline**: Define, list, run, or auto-suggest multi-agent pipelines (PM\u2192Arch\u2192Dev\u2192QA).
|
|
6586
|
+
- **agentic_message**: Inter-agent messaging: send, inbox, conversation, review requests.
|
|
6587
|
+
- **agentic_parallel**: Analyze or execute ready steps concurrently (Promise.all).
|
|
6588
|
+
- **agentic_skill**: Extract a completed step as reusable skill. Search or list existing skills.
|
|
6589
|
+
- **agentic_episodes**: Search cross-session memory for past tasks and outcomes.
|
|
6590
|
+
- **agentic_dashboard**: Full observability: timeline, anomaly detection, model reliability stats.
|
|
6591
|
+
- **agentic_guard**: Verify claims in step output (file existence, function references, imports) to catch hallucinations.
|
|
6592
|
+
|
|
6593
|
+
### Stage IV \u2014 Self-Evolution
|
|
6594
|
+
- **agentic_evolve**: Inspect/extend the agent system. Register custom roles, export skills, manage prompt history, export training data.
|
|
6595
|
+
|
|
6596
|
+
### Stage V \u2014 Autonomous
|
|
6597
|
+
- **agentic_auto**: Fully autonomous loop: plan \u2192 execute \u2192 verify \u2192 retry in ONE call. Just give a goal.
|
|
6598
|
+
|
|
6599
|
+
## Rules
|
|
6600
|
+
- Always call tools proactively \u2014 never ask the user "should I X?"
|
|
6601
|
+
- For multi-step tasks, ALWAYS start with **agentic_plan**
|
|
6602
|
+
- After each execute, check if verification is needed
|
|
6603
|
+
- If a step fails, call **agentic_reflect** before retrying
|
|
6555
6604
|
`, "utf-8");
|
|
6556
6605
|
} catch {
|
|
6557
6606
|
}
|
|
@@ -6722,7 +6771,7 @@ You are an AI assistant with access to 21 agentic engineering tools (agentic_pla
|
|
|
6722
6771
|
await traceLogger.init();
|
|
6723
6772
|
} catch {
|
|
6724
6773
|
}
|
|
6725
|
-
autoUpdatePlugin("0.1.
|
|
6774
|
+
autoUpdatePlugin("0.1.4");
|
|
6726
6775
|
configLoader.onChange((newConfig) => {
|
|
6727
6776
|
vectorStore.setSearchWeights(newConfig.memory.search.keywordWeight, newConfig.memory.search.vectorWeight);
|
|
6728
6777
|
vectorStore.setStopWordsLanguages(newConfig.memory.stopWordsLanguages);
|