This document outlines the conventions and usage patterns for the SPARC CLI command-line tool, which integrates with the SPARC framework to provide AI-assisted programming and research capabilities.
SPARC CLI follows SPARC's staged approach to problem-solving:
The basic syntax for sparc is:
sparc [options] -m "your task message"-
Should be a clear, specific description of the task
-
Example:
sparc -m "Add error handling to the database module" -
Useful for understanding code or exploring concepts
-
Example:
sparc -m "Explain the authentication flow" --research-only -
Include relevant context in the message
-
Example:
sparc -m "Add input validation to user registration function in auth.py"
sparc -m "Add error handling to the database module"sparc -m "Explain the authentication flow" --research-onlysparc -m "Refactor user authentication" --hilsparc -m "Optimize database queries" --provider openai --model gpt-4sparc -m "Analyze security vulnerabilities" --expert-provider anthropic --expert-model claude-2