Skip to content

Conversation

crisbeto
Copy link
Member

@crisbeto crisbeto commented Oct 1, 2025

Adds a runner that generates code using Claude Code.

Removes a couple of methods that were duplicated from the base class.
Moves the instructions and ignored files into the agent base class.
'--model',
MODEL_MAPPING[options.model],
// Skip all confirmations.
'--dangerously-skip-permissions',
Copy link
Member

Choose a reason for hiding this comment

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

Do we eventually need a warning before selecting some of these runners? seems "corp-risky"?

Copy link
Member Author

Choose a reason for hiding this comment

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

Maybe, although internally this wouldn't be installed anyways.

Copy link
Member

@devversion devversion Oct 1, 2025

Choose a reason for hiding this comment

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

I thought anybody could run with the claude code runner on a corporate machine and this could execute arbitrary commands?

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure, but I meant if we were running in a g3 context.

Copy link
Member

Choose a reason for hiding this comment

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

ah yeah, I'm mostly talking about it executing on corp machines, so it could technically even reach into other directories?

Copy link
Member Author

Choose a reason for hiding this comment

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

I think that it could in theory, but my impression was that it's set up to run in the CWD.

Copy link
Member

Choose a reason for hiding this comment

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

@crisbeto just to follow-up on this. The risk is that the agent is started in CWD, but can also use tools to read files from e.g. $HOME/.zshrc etc

package.json Outdated
"wcs": "./runner/bin/cli.js"
},
"dependencies": {
"@anthropic-ai/claude-code": "^1.0.128",
Copy link
Member

Choose a reason for hiding this comment

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

Should these runners be optional dependencies eventually? (i.e. users install them in their project?)

Copy link
Member Author

Choose a reason for hiding this comment

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

Hmm potentially, but how would the type checking work?

Copy link
Member

Choose a reason for hiding this comment

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

We'd have it as a dev dependency on our end, but not as a runtime dependency for shipping to npm.

Copy link
Member Author

Choose a reason for hiding this comment

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

I pushed another commit to make them optional.

Fixes an error I saw while debugging where if the `exit` event emits quickly, we would get a `Cannot access <name> before initialization` error.
Allows for agents inheriting from the `BaseCliAgentRunner` to override the timeout values.
Some agent processes don't seem to execute until stdin has ended. These changes add it to the `BaseCliAgentRunner`.
Adds a runner that generates code using Claude Code.
Reduces the font size of the provider labels so they don't wrap to the next line as often.
Copy link
Member Author

@crisbeto crisbeto left a comment

Choose a reason for hiding this comment

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

Feedback has been addressed.

package.json Outdated
"wcs": "./runner/bin/cli.js"
},
"dependencies": {
"@anthropic-ai/claude-code": "^1.0.128",
Copy link
Member Author

Choose a reason for hiding this comment

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

Hmm potentially, but how would the type checking work?

'--model',
MODEL_MAPPING[options.model],
// Skip all confirmations.
'--dangerously-skip-permissions',
Copy link
Member Author

Choose a reason for hiding this comment

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

Maybe, although internally this wouldn't be installed anyways.

@crisbeto crisbeto merged commit a6a6412 into angular:main Oct 1, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants