mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-02-08 15:34:56 +08:00
Major OpenCode integration overhaul: - llms.txt: Comprehensive OpenCode documentation for LLMs (642 lines) - .opencode/plugins/ecc-hooks.ts: All Claude Code hooks translated to OpenCode's plugin system - .opencode/tools/*.ts: 3 custom tools (run-tests, check-coverage, security-audit) - .opencode/commands/*.md: All 24 commands in OpenCode format - .opencode/package.json: npm package structure for opencode-ecc - .opencode/index.ts: Main plugin entry point - Delete incorrect LIMITATIONS.md (hooks ARE supported via plugins) - Rewrite MIGRATION.md with correct hook event mapping - Update README.md OpenCode section to show full feature parity OpenCode has 20+ events vs Claude Code's 3 phases: - PreToolUse → tool.execute.before - PostToolUse → tool.execute.after - Stop → session.idle - SessionStart → session.created - SessionEnd → session.deleted - Plus: file.edited, file.watcher.updated, permission.asked, todo.updated - 12 agents: Full parity - 24 commands: Full parity (+1 from original 23) - 16 skills: Full parity - Hooks: OpenCode has MORE (20+ events vs 3 phases) - Custom Tools: 3 native OpenCode tools The OpenCode configuration can now be: 1. Used directly: cd everything-claude-code && opencode 2. Installed via npm: npm install opencode-ecc
1.5 KiB
1.5 KiB
description, agent
| description | agent |
|---|---|
| Import instincts from external sources | build |
Instinct Import Command
Import instincts from a file or URL: $ARGUMENTS
Your Task
Import instincts into the continuous-learning-v2 system.
Import Sources
File Import
/instinct-import path/to/instincts.json
URL Import
/instinct-import https://example.com/instincts.json
Team Share Import
/instinct-import @teammate/instincts
Import Format
Expected JSON structure:
{
"instincts": [
{
"trigger": "[situation description]",
"action": "[recommended action]",
"confidence": 0.7,
"category": "coding",
"source": "imported"
}
],
"metadata": {
"version": "1.0",
"exported": "2025-01-15T10:00:00Z",
"author": "username"
}
}
Import Process
- Validate format - Check JSON structure
- Deduplicate - Skip existing instincts
- Adjust confidence - Reduce confidence for imports (×0.8)
- Merge - Add to local instinct store
- Report - Show import summary
Import Report
Import Summary
==============
Source: [path or URL]
Total in file: X
Imported: Y
Skipped (duplicates): Z
Errors: W
Imported Instincts:
- [trigger] (confidence: 0.XX)
- [trigger] (confidence: 0.XX)
...
Conflict Resolution
When importing duplicates:
- Keep higher confidence version
- Merge application counts
- Update timestamp
TIP: Review imported instincts with /instinct-status after import.