-
Notifications
You must be signed in to change notification settings - Fork 0
feat: Source Capture System + CLI scope standardization #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Add complete source capture infrastructure for external data integration: Phase 0 - Policy Layer: - Add capture-policy.md (scope, redaction, inbox security) - Add inbox-schema.md (v1.0 schema for slack/session) - Update .gitignore for inbox directory Phase 1 - Foundation: - Add .mcp.json for Slack MCP configuration - Update plugin.json to v1.1.0 with agents support Phase 2 - Session Capture: - Add session-capture skill for Claude Code history Phase 3 - Slack Capture: - Add slack-capture skill with MCP integration Phase 4 - Orchestration: - Add ctx-capture agent for multi-source workflows - Add /ctx.capture command Documentation: - Update AGENTS.md with Core Principle and Source Capture section 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add Agent Council (Codex, Gemini) review feedback: - Add security/privacy policy section (Section 3) - Add schema versioning and run_id - Add provenance tracking requirements - Add Open Questions & Decisions section - Reorder phases (Phase 0 policy layer first) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add CORE_PRINCIPLE.md with 8 core design principles - Add `ctx list` command for registry listing with scope options - Standardize all read commands with --global/--all scope flags - Update load command: use -k for keywords, -t for target - Update save command: use --keywords (not --when), add --target - Remove deprecated slack-capture skill - Update all documentation to reflect CLI changes - Add scope and list command tests 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Update plugin.json description (2-Level system) - Add marketplace.json for plugin distribution - Add plugin README.md with installation guide 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Summary of ChangesHello @yansfil, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request significantly enhances the CTX context management system by integrating a new Source Capture System, allowing users to easily capture and convert external data, such as Claude Code sessions, into structured context. Concurrently, it refines the command-line interface by standardizing scope options across various commands and introducing a new Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This is an excellent and comprehensive pull request that introduces a major new feature, the Source Capture System, and significantly refactors the CLI for better consistency. The design of the new capture system is robust, with a strong emphasis on security and privacy, as evidenced by the detailed policy documents. The standardization of CLI scope options (--global, --all) and the introduction of the ctx list command greatly improve the tool's usability and predictability. The extensive updates to documentation, including new RFCs and principle guides, are commendable and will be invaluable for future development and user understanding. The code refactoring, such as centralizing the global index update, simplifies the architecture and enhances maintainability. Overall, this is a high-quality contribution that significantly advances the project.
- Add #1 core principle: "One way to do things. One place to look." - Centralize DEFAULT_CONTEXT_PATHS constants (avoid duplication) - Update AGENTS.md cross-references 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Remove duplicate DEFAULT_*_CONTEXT_PATHS from init.ts - Update check.ts to use centralized getProjectContextPaths - Fix scanner.ts to use scope-appropriate defaults 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Transform specialized capture agent into central orchestrator for all context operations. The orchestrator now routes load, save, capture, and multi-step workflows to appropriate skills. Key changes: - Rename plugin/agents/ctx-capture → ctx-orchestrator - Expand description with PROACTIVELY trigger for semantic matching - Add routing logic for ctx-load, ctx-save, session-capture skills - Update AGENTS.md project structure documentation 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Move CLI_REFERENCE.md and CORE_PRINCIPLE.md to shared/ - Add @CLI_REFERENCE.md references in all skills - Update scope tests for CORE_PRINCIPLE #5 (read command fallback) - Fix load command to pass computed scope to handleManualMode 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- ctx load: JSON default output with --pretty for markdown (Principle #6) - Add --pretty option to load command for human-readable output - Simplify plugin command docs with @reference syntax 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Summary
--global/--allscope optionsKey Changes
Source Capture System
ctx-captureagent for orchestrating multi-source capturesession-captureskill for Claude Code session extraction/ctx.capturecommand as user entry point.ctx/inbox/) for temporary data storagecapture-policy.mdCLI Standardization
ctx listcommand with scope optionsctx load:-kfor keywords,-tfor targetctx save:--keywordsreplaces--when, added--target--global,--allflags--prettyfor human-readableCore Principles (CORE_PRINCIPLE.md)
Refactoring: Centralized DEFAULT Constants
DEFAULT_PROJECT_CONTEXT_PATHS/DEFAULT_GLOBAL_CONTEXT_PATHS→context-path-matcher.ts(single source of truth)init.ts,scanner.tscheck.tsto usegetProjectContextPaths()instead of hardcoded patternscanner.tsglobal scope bug (was using project defaults for global)Plugin Marketplace
marketplace.jsonfor distributionplugin/README.mdwith installation guideTest plan
pnpm validatepasses (typecheck + build + test)ctx listwith various scope optionsctx load -k <keywords>andctx load -t <target>claude --plugin-dir ./plugin🤖 Generated with Claude Code