interplane.Get Omega
Read in your language

omega-harness

Agent skills for operating, encoding and communicating in Omega (.om) and the AIEN repositories

Brought by drakestapleton

branch main Branches Tags History

omega-harness / cli / src / commands.ts

38 lines · 2665 bytes Raw Blame History
1export interface SlashCommandDef {
2 name: string;
3 usage: string;
4 description: string;
5}
6
7export const SLASH_COMMANDS: SlashCommandDef[] = [
8 { name: '/help', usage: '/help', description: 'Show commands and keyboard shortcuts' },
9 { name: '/status', usage: '/status', description: 'Probe Inkling server health, KV slots & Arboris hits' },
10 { name: '/tools', usage: '/tools', description: 'List all 27 available agent tools' },
11 { name: '/agents', usage: '/agents', description: 'List active and completed Inkling subagents' },
12 { name: '/tasks', usage: '/tasks', description: 'Show current session task checklist' },
13 { name: '/memory', usage: '/memory [key]', description: 'Show persistent cross-session memories' },
14 { name: '/endpoint', usage: '/endpoint [url]', description: 'Show or switch the Inkling HTTP endpoint' },
15 { name: '/provider', usage: '/provider [inkling|gemini]', description: 'Switch backend between Inkling (default) and Gemini' },
16 { name: '/model', usage: '/model [id]', description: 'Show or switch the active model ID' },
17 { name: '/skills', usage: '/skills', description: 'List Omega Harness skills and active pins' },
18 { name: '/skill', usage: '/skill <name>', description: 'Pin or unpin a skill in the system prompt' },
19 { name: '/mode', usage: '/mode [default|auto-edit|yolo|omega-only]', description: 'Switch tool approval / guard mode' },
20 { name: '/pin', usage: '/pin', description: 'Show omega-harness PIN and local omc status' },
21 { name: '/compile', usage: '/compile <file.om>', description: 'Compile an .om file locally with omc' },
22 { name: '/run', usage: '/run <file.om>', description: 'Compile and run an .om file locally' },
23 { name: '/compact', usage: '/compact', description: 'Compact conversation history to free context' },
24 { name: '/resume', usage: '/resume [name]', description: 'Resume saved conversation session (default: latest)' },
25 { name: '/clear', usage: '/clear', description: 'Clear conversation history and transcript' },
26 { name: '/stats', usage: '/stats', description: 'Show session token usage and tool stats' },
27 { name: '/auth', usage: '/auth [key]', description: 'Show or set bearer/Gemini API key' },
28 { name: '/exit', usage: '/exit', description: 'Exit Ω Omega Harness CLI' },
29 { name: '/quit', usage: '/quit', description: 'Exit Ω Omega Harness CLI' },
30];
31
32export function matchSlashCommands(input: string): SlashCommandDef[] {
33 const trimmed = input.trimStart();
34 if (!trimmed.startsWith('/')) return [];
35 const token = trimmed.split(/\s+/)[0].toLowerCase();
36 if (trimmed.includes(' ')) return [];
37 return SLASH_COMMANDS.filter((c) => c.name.startsWith(token));
38}