IN PROGRESS
Technical summary
Native NEXUS plugin that unifies plugin commands, fixed replies and macros in the / autocomplete used in task comments. The /ia command combines threat intelligence, DNS/HTTP context and OpenCode analysis in an asynchronous worker, publishing a readable verdict and falling back to local analysis when the LLM does not return a useful answer.
Executed scope
backend.phpbackend (1275 lines): priority resolution infastr_execute— quick response → macro →/ia→ plugin command; dispatch viaPluginManager::dispatchApiActionwithstatic_params,pass_task_id(injectstask_id/id) and dynamicarg_key.fastr_ensure_schema()creates thefastr_quick_responses(command UNIQUE, response_text, created_by) andfastr_custom_commands(command UNIQUE, plugin_command, arg_value, description) tables — DDL from the plugin itself, noinstall.sql.fastr_load_plugin_commands()scans active plugins and reads eachfastr.jsonat catalog/execution time (supportsarg_required,arg_name,arg_key,pass_task_id,static_params,arg_suggest_action/arg_suggest_paramsfor argument autocomplete).- Human markdown formatting per plugin:
fastr_format_result()with dedicated formatters (virustotal,safebrowsing,urlhaus,kaspersky-tip,opencnpj,docker-api) and a generic key/value fallback; support for readyfastr_md(slash catalogs) and· cacheindicator. /iacommand:fastr_parse_ia_request(validates the tool against the catalog and forbids/iaas a tool),fastr_run_tool,fastr_web_context(DNS viagethostbynamel, HTTP HEAD via cURL with 4s timeout, rDNS for IPs),fastr_call_opencodepreferring local API127.0.0.1:8081/v1/chat/opencode→ satellites with recent pulse (≤2 days, node lock 60s/120s) → local CLI with short budget (3–20s viafastr_run_local_opencode_budget).- Async worker
fastr_ia_async.php(CLI, stdin JSON with task_id/value/pending_comment_id,@set_time_limit(120), restores the spawner session,comment_deleteof the pending one andcomment_addwith the node persona or automatic verdict). - 7 API actions via
PluginManager::registerApiAction—fastr_catalog,fastr_quick_save,fastr_quick_delete,fastr_custom_save,fastr_custom_delete,fastr_execute,fastr_ia— mapped in the coreapi.phpto thenexus-fast-responsesplugin; all require an authenticated session or Bearer + CSRF. - Alpine.js UI (
tab.php385 lines): "Respostas Rápidas" tab with counters in the header and three panes (Plugins / Respostas / Macros) with tables and CRUD; integration withassets/nexus-core.js(intercepts/, inline argument prompt, Ctrl+C cancels,fastr_executecall with per-task state) andassets/nexus-editor.js(autocomplete with Plugins/Respostas/Macros sections andwindow.nexusRefreshFastrCatalog). - Own
fastr.jsonmanifest publishes/ia(arg_required,pass_task_id: true).
Stack and tooling
- PHP 8 (no framework)
- MySQL 8 (
fastr_quick_responsesandfastr_custom_commandstables) - Alpine.js + Tailwind CSS
- cURL (context HTTP HEAD, OpenCode-compatible chat completions HTTP POST)
- OpenCode (local API
127.0.0.1:8081,oci_ai_endpoints/oci_nodessatellites and local CLI with short budget) - NEXUS plugin system (
PluginManager+nx_secure_exec_bgin thenx-exec.phpcore)
Operational tags
- Productivity
- Slash Commands
- Automation
- AI
- Threat Intelligence
Operational outcome
- Unified NEXUS one-off queries into a single
/catalog: plugin commands, fixed responses and macros with autocomplete in the comment editor — without triggering the whole Intelligence Hub for a simple lookup. /iaturns IOC queries into readable AI verdicts, with background execution (CLI worker) that bypasses Cloudflare HTTP 524 and keeps the task chat up to date (pending comment → result with the node persona).- Human formatting per plugin with verdict emoji (✅/🚨/⚠️/❔) and evidence of the answering node — no raw JSON in the chat.
- 24 plugins publish commands via
fastr.json, and any new plugin can expose slash commands just by creating the manifest. - Robust fallback: LLM reply discarded when stub/contingency, with an automatic local verdict generated from the real tool data + DNS/HTTP context.
GitHub progress (issues)
Real-time panel with latest repository issues.
live feed
open issues on GitHubcarregando andamento...
não foi possivel carregar as issues agora. abra no github pelo link acima.
Real results
Native NEXUS plugin (is_core) for quick responses: plugin slash commands, fixed-text quick responses, custom macros and the /ia command that combines a tool + async OpenCode analysis in the task chat.
Architecture and organization
- PHP 8
- MySQL 8
- Alpine.js
- Tailwind CSS
- cURL
- OpenCode
- Plugin NEXUS
Execution and operations
The project follows reproducible execution flow with technical validation in production-like environments.
Screenshots
Talk about this project
Apply this implementation pattern in your environment and accelerate delivery with technical consistency.