opencode-agentic-engine 0.1.3 → 0.1.5
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 +69 -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;AAsiG/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.5
|
|
2
2
|
// Bundled for zero-install drop-in
|
|
3
3
|
|
|
4
4
|
// src/index.ts
|
|
@@ -6547,11 +6547,76 @@ 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
|
+
## \u{1F6A8} CRITICAL RULES
|
|
6557
|
+
|
|
6558
|
+
You have access to **22 specialized agentic_* tools** designed for software engineering. **YOU MUST PREFER THESE TOOLS OVER BUILT-IN TOOLS** for any software engineering task.
|
|
6559
|
+
|
|
6560
|
+
### Tool Preference Hierarchy (HIGHEST first):
|
|
6561
|
+
1. **agentic_*** \u2014 Use FIRST. Far more powerful than built-in tools.
|
|
6562
|
+
2. bash/edit/read/write \u2014 Only if no agentic_* tool fits the need.
|
|
6563
|
+
|
|
6564
|
+
**NEVER** use bash, edit, write, read, glob, grep directly for multi-step engineering tasks. Instead:
|
|
6565
|
+
- Use **agentic_plan** instead of planning manually
|
|
6566
|
+
- Use **agentic_auto** instead of implementing step by step manually
|
|
6567
|
+
- Use **agentic_execute** instead of tracking progress manually
|
|
6568
|
+
|
|
6569
|
+
### FOR MULTI-STEP FEATURES (apps, APIs, refactors):
|
|
6570
|
+
Call **agentic_auto** IMMEDIATELY. Just pass the goal. Example:
|
|
6571
|
+
\`@agentic_auto goal="Buat aplikasi POS dengan Express dan SQLite"\`
|
|
6572
|
+
|
|
6573
|
+
### FOR SINGLE-STEP TASKS:
|
|
6574
|
+
Call the specific tool (agentic_nav, agentic_execute, etc.) directly.
|
|
6575
|
+
|
|
6576
|
+
## Standard Workflow
|
|
6577
|
+
|
|
6578
|
+
1. **agentic_auto** \u2014 For multi-step tasks, call this FIRST. It handles everything.
|
|
6579
|
+
2. OR manually: **agentic_plan** \u2192 **agentic_nav** \u2192 **agentic_execute** \u2192 **agentic_verify** \u2192 **agentic_reflect**
|
|
6580
|
+
|
|
6581
|
+
## Tool Reference
|
|
6582
|
+
|
|
6583
|
+
### Stage V \u2014 Autonomous (BEST for multi-step)
|
|
6584
|
+
- **agentic_auto**: Fully autonomous loop: plan \u2192 execute \u2192 verify \u2192 retry in ONE call. Just give a goal. USE THIS FIRST for any feature work.
|
|
6585
|
+
|
|
6586
|
+
### Stage I \u2014 Core Engineering Loop
|
|
6587
|
+
- **agentic_plan**: Decompose a goal into subtasks with dependencies. Supports auto-decomposition via LLM.
|
|
6588
|
+
- **agentic_execute**: Record a completed subtask with auto-verification + retry tracking.
|
|
6589
|
+
- **agentic_reflect**: Analyze a failed step \u2014 error category, propagation, root cause, recovery.
|
|
6590
|
+
- **agentic_verify**: Full compile + lint + test suite. Auto-detects language.
|
|
6591
|
+
- **agentic_status**: Dashboard with progress, health, blocked steps, model reliability.
|
|
6592
|
+
|
|
6593
|
+
### Stage II \u2014 Codebase & Context
|
|
6594
|
+
- **agentic_nav**: Scan codebase and find relevant files.
|
|
6595
|
+
- **agentic_context**: View or compress conversation context.
|
|
6596
|
+
- **agentic_snapshot**: Save/list execution checkpoints.
|
|
6597
|
+
- **agentic_pr**: Generate PR description from plan + results.
|
|
6598
|
+
- **agentic_score**: Analyze changeset for technical debt.
|
|
6599
|
+
- **agentic_model**: Configure per-role LLM model preferences.
|
|
6600
|
+
|
|
6601
|
+
### Stage III \u2014 Multi-Agent & Memory
|
|
6602
|
+
- **agentic_delegate**: Assign to architect/developer/qa/coordinator/pm roles.
|
|
6603
|
+
- **agentic_pipeline**: Define and run multi-agent pipelines.
|
|
6604
|
+
- **agentic_message**: Inter-agent messaging system.
|
|
6605
|
+
- **agentic_parallel**: Execute ready steps concurrently.
|
|
6606
|
+
- **agentic_skill**: Extract/find/list reusable skills.
|
|
6607
|
+
- **agentic_episodes**: Search cross-session memory.
|
|
6608
|
+
- **agentic_dashboard**: Observability timeline + anomaly detection.
|
|
6609
|
+
- **agentic_guard**: Verify claims to catch hallucinations.
|
|
6610
|
+
|
|
6611
|
+
### Stage IV \u2014 Self-Evolution
|
|
6612
|
+
- **agentic_evolve**: Inspect/extend the agent system, manage prompts.
|
|
6613
|
+
|
|
6614
|
+
## CRITICAL RULES
|
|
6615
|
+
1. **ALWAYS prefer agentic_* tools over built-in tools** for engineering tasks
|
|
6616
|
+
2. For multi-step tasks: call **agentic_auto** immediately
|
|
6617
|
+
3. Never ask "should I..." \u2014 just call the tool
|
|
6618
|
+
4. If a step fails, call **agentic_reflect** before retrying
|
|
6619
|
+
5. After all steps done, call **agentic_verify** for final verification
|
|
6555
6620
|
`, "utf-8");
|
|
6556
6621
|
} catch {
|
|
6557
6622
|
}
|
|
@@ -6722,7 +6787,7 @@ You are an AI assistant with access to 21 agentic engineering tools (agentic_pla
|
|
|
6722
6787
|
await traceLogger.init();
|
|
6723
6788
|
} catch {
|
|
6724
6789
|
}
|
|
6725
|
-
autoUpdatePlugin("0.1.
|
|
6790
|
+
autoUpdatePlugin("0.1.5");
|
|
6726
6791
|
configLoader.onChange((newConfig) => {
|
|
6727
6792
|
vectorStore.setSearchWeights(newConfig.memory.search.keywordWeight, newConfig.memory.search.vectorWeight);
|
|
6728
6793
|
vectorStore.setStopWordsLanguages(newConfig.memory.stopWordsLanguages);
|