feat(cli): Phase 3 - Agent, project, and import/export commands#4
Open
therichardngai-wolf wants to merge 6 commits intotherichardngai-code:mainfrom
Open
feat(cli): Phase 3 - Agent, project, and import/export commands#4therichardngai-wolf wants to merge 6 commits intotherichardngai-code:mainfrom
therichardngai-wolf wants to merge 6 commits intotherichardngai-code:mainfrom
Conversation
Adds a command-line interface for NoteCode management: Task commands: - notecode task list [--status, --priority, --project, --assignee, --search, --json] - notecode task get <id> [--json] - notecode task create --title '...' [--description, --priority, --assignee, --project, ...] - notecode task update <id> [--status, --priority, --title, ...] Session commands: - notecode session list [--task-id, --status, --limit, --json] - notecode session status <id> [--json] - notecode session get <id> [--json] Features: - All commands support --json flag for machine-readable output - Colored, formatted output for human readability - Calls REST API at http://localhost:41920 - Server start preserved: 'notecode' or 'notecode serve' starts the server - Uses Commander.js for CLI parsing
- Add commander.js for subcommand structure - Task commands: list, get, create, update - Session commands: list, get - Support --json output for AI agents - Backward compatible with legacy invocation - Global --api-url flag for custom server URL
Phase 2 CLI enhancements: Approval Commands: - notecode approval list [--session <id>] [--json] - notecode approval get <id> [--json] - notecode approval approve <id> [-m message] - notecode approval reject <id> -r <reason> Watch Command (real-time monitoring): - notecode watch [--json] - SSE-based activity streaming - notecode watch --poll - Polling fallback mode - Outputs: session events, approval pending, task changes Status Command (system overview): - notecode status [--json] - Shows: server status, task counts, sessions, pending approvals All commands support --json for AI agent consumption.
- Add 'approval list' to show pending approvals - Add 'approval get <id>' to view approval details with diffs - Add 'watch' command for real-time session/approval monitoring - Add 'status' command for server overview (sessions, tasks, approvals) - All commands support --json output format - Watch supports --interval for custom poll timing
Phase 3 CLI enhancements: Agent commands: - notecode agent list [--project <id>] [--provider <p>] [--json] - notecode agent get <name> [--project <id>] [--json] - notecode agent skills [--project <id>] [--provider <p>] - notecode agent spawn --task <id> --prompt <p> (experimental) Project commands: - notecode project list [--favorite] [--recent] [--search] [--json] - notecode project get <id> [--json] - notecode project switch <id> - notecode project current [--json] Batch operations: - notecode task export [--status] [--project] [-o file] - notecode task import <file> [--project] [--dry-run] All commands support --json output for programmatic usage. Builds on Phase 1 (task, session) and Phase 2 (approval, watch, status).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds agent management, project switching, and task import/export functionality.
New CLI Commands
Agent Management
notecode agent list— List configured agentsnotecode agent get <id>— Get agent detailsnotecode agent skills <id>— List agent skillsnotecode agent spawn <id> <prompt>— Spawn agent for a taskProject Management
notecode project list— List projectsnotecode project get <id>— Get project detailsnotecode project switch <id>— Switch active projectnotecode project current— Show current active projectImport/Export
notecode task export— Export tasks to JSON--status,--project-idfilters--output <file>to save to filenotecode task import <file>— Import tasks from JSON--project-idto specify target project--dry-runto preview without importingFeatures
--jsonsupport on all commands