Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .claude/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"version": "0.0.1",
"configurations": [
{
"name": "cagent API server",
Comment on lines +1 to +5
Copy link

Copilot AI Apr 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR description/title focuses on adding .claude/launch.json, but this PR also adds new example agent configs under examples/ and changes the nightly workflow. Please update the PR description (or split into separate PRs) so reviewers understand the full scope and intent of these additional changes.

Copilot uses AI. Check for mistakes.
"runtimeExecutable": "./bin/cagent",
"runtimeArgs": ["api", "--listen", ":8080", "./examples/pirate.yaml"],
"port": 8080
},
{
"name": "cagent A2A server",
"runtimeExecutable": "./bin/cagent",
"runtimeArgs": ["a2a", "--port", "9000", "./examples/pirate.yaml"],
"port": 9000
},
{
"name": "cagent MCP HTTP server",
"runtimeExecutable": "./bin/cagent",
"runtimeArgs": ["mcp", "--http", "--port", "8081", "./examples/pirate.yaml"],
"port": 8081
},
{
"name": "Jaeger (OpenTelemetry tracing UI)",
"runtimeExecutable": "docker",
"runtimeArgs": ["compose", "up", "jaeger"],
"port": 16686
}
]
}
5 changes: 5 additions & 0 deletions .github/workflows/nightly-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ jobs:
scan:
runs-on: ubuntu-latest
timeout-minutes: 30
# Skip if no API keys are configured
if: |
secrets.ANTHROPIC_API_KEY != '' ||
secrets.OPENAI_API_KEY != '' ||
secrets.GEMINI_API_KEY != ''
Comment on lines +27 to +30
Copy link

Copilot AI Apr 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The job-level if: is defined with a literal block scalar (|), which preserves newline characters in the expression. GitHub Actions if expressions are safer as a single-line expression or a folded scalar (>-) so newlines don’t get passed into the expression parser. Consider rewriting this as if: secrets.ANTHROPIC_API_KEY != '' || secrets.OPENAI_API_KEY != '' || secrets.GEMINI_API_KEY != '' (or using >- to fold lines).

Suggested change
if: |
secrets.ANTHROPIC_API_KEY != '' ||
secrets.OPENAI_API_KEY != '' ||
secrets.GEMINI_API_KEY != ''
if: secrets.ANTHROPIC_API_KEY != '' || secrets.OPENAI_API_KEY != '' || secrets.GEMINI_API_KEY != ''

Copilot uses AI. Check for mistakes.
env:
HAS_APP_SECRETS: ${{ secrets.CAGENT_REVIEWER_APP_ID != '' }}

Expand Down
21 changes: 21 additions & 0 deletions examples/new_agent.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/env cagent run
## Generated by GitHub Copilot on 2026-02-05
agents:
new_agent:
model: openai/gpt-4o
description: "Scaffolded agent for concise help, code, and file tasks."
instruction: |
You are the `new_agent`. Follow these rules:
- Be concise, helpful, and actionable.
- Prefer short examples; provide runnable snippets when applicable.
- Ask a clarifying question if the user's intent is ambiguous.
toolsets:
- type: filesystem
- type: shell
- type: memory
path: ./examples/new_agent_memory.db
- type: think
max_iterations: 10
num_history_items: 20
add_date: true
code_mode_tools: true
9 changes: 9 additions & 0 deletions examples/scaffolded_default_agent.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
agents:
scaffolded_default:
model: openai/gpt-5-mini
description: "Scaffolded default agent"
instruction: |
You are a helpful assistant. Respond concisely and ask clarifying questions when necessary.
toolsets:
- type: think
- type: todo
Loading