- Brain: STATUS, PLAN (4 milestones), ARCH (module design), CONTEXT, SESSIONS, DEPS - Learnings: ERRORS.md, LEARNINGS.md (empty) - Code: cli.py stub, pyproject.toml, __init__.py - README with architecture diagram and queue format - Queue format: EDIT/CREATE/DELETE/TEST actions
48 lines
1.5 KiB
Python
48 lines
1.5 KiB
Python
"""TinyClaw CLI entry point."""
|
|
|
|
import argparse
|
|
import sys
|
|
|
|
|
|
def main():
|
|
parser = argparse.ArgumentParser(
|
|
description="TinyClaw: orchestrate tiny models for real project work"
|
|
)
|
|
sub = parser.add_subparsers(dest="command")
|
|
|
|
# tinyclaw run
|
|
run_p = sub.add_parser("run", help="Process task queue")
|
|
run_p.add_argument("--queue", default="QUEUE.md", help="Path to queue file")
|
|
run_p.add_argument("--model", default="qwen/qwen3.5-9b", help="Model ID")
|
|
run_p.add_argument("--api-base", help="API base URL (default: OpenRouter)")
|
|
run_p.add_argument("--dry-run", action="store_true", help="Parse queue without executing")
|
|
|
|
# tinyclaw status
|
|
sub.add_parser("status", help="Show queue status")
|
|
|
|
# tinyclaw plan
|
|
plan_p = sub.add_parser("plan", help="Decompose a feature into tasks (uses big model)")
|
|
plan_p.add_argument("description", help="Feature description")
|
|
plan_p.add_argument("--model", default="anthropic/claude-sonnet-4.6", help="Planning model")
|
|
|
|
args = parser.parse_args()
|
|
|
|
if args.command is None:
|
|
parser.print_help()
|
|
sys.exit(1)
|
|
|
|
if args.command == "run":
|
|
print(f"Would process queue: {args.queue} with model: {args.model}")
|
|
print("(not implemented yet)")
|
|
|
|
elif args.command == "status":
|
|
print("(not implemented yet)")
|
|
|
|
elif args.command == "plan":
|
|
print(f"Would decompose: {args.description}")
|
|
print("(not implemented yet)")
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|