feat(agent): add global and repo-local agent integrations#74
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a new tscli agent command group that generates and refreshes repo-local or user-global “AI agent integration” assets (instructions/skills/prompts) derived from the live Cobra command tree, and wires the new surfaces into docs + test coverage.
Changes:
- Introduces
tscli agent init/tscli agent updateand the underlying bundle installer/manifest logic. - Adds generated docs pages + docs navigation updates for the new agent functionality.
- Extends CLI/docs tests and example-output coverage to include the new commands and artifacts.
Reviewed changes
Copilot reviewed 20 out of 20 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| test/docs/docs_test.go | Requires the new docs/agents.md page and agent command docs artifacts. |
| test/cli/testdata/leaf_commands.txt | Updates leaf-command manifest to include agent init / agent update. |
| test/cli/example_output_test.go | Adds example-output coverage for agent init / agent update with dynamic temp dirs. |
| test/cli/agent_integration_test.go | New integration tests verifying generated assets for local/global installs and update refresh behavior. |
| README.md | Documents the new agent init/update workflow. |
| pkg/agent/install.go | Implements tool/scope selection, manifest handling, asset rendering, and managed file writes. |
| pkg/agent/install_test.go | Unit tests for init/update behavior and manifest/tool handling. |
| internal/cli/root.go | Registers the new agent command and skips config resolution for agent subcommands. |
| docs/README.md | Adds “AI Agent Integrations” links to docs entry points. |
| docs/commands/tscli.md | Links the generated tscli agent command page. |
| docs/commands/tscli_agent.md | Generated docs for tscli agent. |
| docs/commands/tscli_agent_update.md | Generated docs for tscli agent update. |
| docs/commands/tscli_agent_init.md | Generated docs for tscli agent init. |
| docs/commands/README.md | Adds agent command pages to generated command index. |
| docs/commands/_sidebar.md | Adds agent command pages to generated commands sidebar. |
| docs/agents.md | New documentation page describing generated assets and workflows. |
| docs/_sidebar.md | Adds “AI Agents” to the main docs sidebar. |
| cmd/tscli/agent/update/cli.go | Implements the tscli agent update Cobra command wrapper. |
| cmd/tscli/agent/init/cli.go | Implements the tscli agent init Cobra command wrapper. |
| cmd/tscli/agent/cli.go | Adds the tscli agent parent command and wires subcommands. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9a52537c36
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Signed-off-by: Lee Briggs <lee@leebriggs.co.uk>
Signed-off-by: Lee Briggs <lee@leebriggs.co.uk>
No description provided.