scorpiox-systempromptcore

Linux x64 Linux ARM64 macOS ARM64 Windows x64

๐Ÿ“– Description

Generate and manage system prompts for AI agents. Compose base prompts, inject context, or produce clean prompts without runtime context.

scorpiox-systemprompt is a core utility that constructs the system prompt used by AI agents in scorpiox-code sessions. It assembles a base template with role instructions, tool descriptions, and behavioral rules, then optionally layers runtime context such as the current working directory, project files, environment variables, and CLAUDE.md configuration. The three output modes (--base, --no-context, --context) let you inspect each layer independently โ€” useful for debugging agent behavior, auditing prompt content, or building custom prompt pipelines.

โš™๏ธ Flags & Options (4)

Flag Short Description Takes Value
--base -b Output the base system prompt template without any context injected No
--no-context -n Generate the system prompt without runtime context (environment, files, etc.) No
--context -c Generate the full system prompt with all available runtime context included No
--help -h Display help information and usage No

๐Ÿ’ก Usage Examples

View the base prompt template
# Output the raw base system prompt template
$ scorpiox-systemprompt --base
You are Claude Code, Anthropic's official CLI for Claude...
Generate prompt without runtime context
# Produce a system prompt with tool definitions but no project context
$ scorpiox-systemprompt --no-context
# System prompt with tools, skills, and rules โ€” no environment info
Generate the full prompt with context
# Full system prompt including working directory, CLAUDE.md, git state
$ scorpiox-systemprompt --context
# Complete prompt with all runtime context injected
Compare prompt layers for debugging
# Save each layer to a file and diff them
$ scorpiox-systemprompt --base > /tmp/base.txt
$ scorpiox-systemprompt --no-context > /tmp/no_ctx.txt
$ scorpiox-systemprompt --context > /tmp/full.txt

# See what context adds to the prompt
$ diff /tmp/no_ctx.txt /tmp/full.txt
42a43,58
> ## Current Environment
> - Working Directory: /home/user/project
> - Git Branch: main
> ...
Pipe prompt to other tools
# Count tokens in the full prompt (using wc as proxy)
$ scorpiox-systemprompt --context | wc -w
3842

# Send the prompt to an external API for testing
$ scorpiox-systemprompt -c | curl -s -X POST \
  -H "Content-Type: application/json" \
  -d @- https://api.example.com/validate-prompt
Quick inspection with short flags
# Short flag equivalents
$ scorpiox-systemprompt -b   # same as --base
$ scorpiox-systemprompt -n   # same as --no-context
$ scorpiox-systemprompt -c   # same as --context
$ scorpiox-systemprompt -h   # show help

๐Ÿ“ฆ Source & Build Info

Source File
scorpiox/scorpiox-systemprompt.c
Lines of Code
175
Dependencies
libsxutil
Platforms
linux-x64 ยท linux-arm64 ยท macos-arm64 ยท windows-x64

๐Ÿ”— Related Tools