Skip to content

Commit d0ad6b2

Browse files
committed
Merge branch 'release'
2 parents ab66377 + 67ef6ff commit d0ad6b2

File tree

8 files changed

+48
-18
lines changed

8 files changed

+48
-18
lines changed

CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
## [0.10.1](https://github.com/drivecore/mycoder/compare/v0.10.0...v0.10.1) (2025-03-11)
2+
3+
4+
### Bug Fixes
5+
6+
* token caching ([5972e59](https://github.com/drivecore/mycoder/commit/5972e59ab572040e564d1756ab8a5625215e14dc))
7+
8+
# [0.10.0](https://github.com/drivecore/mycoder/compare/v0.9.0...v0.10.0) (2025-03-11)
9+
10+
11+
### Bug Fixes
12+
13+
* add deepmerge to cli package.json ([ab66377](https://github.com/drivecore/mycoder/commit/ab66377342c9f23fa874d2776e73d365141e8801))
14+
* update hierarchical configuration system to fix failing tests ([93d949c](https://github.com/drivecore/mycoder/commit/93d949c03b7ebe96bad36713f6476c38d2a35224))
15+
16+
17+
### Features
18+
19+
* add back token tracking, system prompt caching. ([ddc04ab](https://github.com/drivecore/mycoder/commit/ddc04ab0778eb2f571897e825c8d8ba17651db09))
20+
* add showStdIn and showStdout options to shellMessage and shellStart ([aed1b9f](https://github.com/drivecore/mycoder/commit/aed1b9f6ba489da19f2170c136861a7c80ad6e33)), closes [#167](https://github.com/drivecore/mycoder/issues/167)
21+
* add token caching. issue 145 ([d78723b](https://github.com/drivecore/mycoder/commit/d78723bb6d0514110088caf7009e196e3f79769e))
22+
* implement hierarchical configuration system ([84d73d1](https://github.com/drivecore/mycoder/commit/84d73d1e6324670890a203f455fe257aeb6ed07a)), closes [#153](https://github.com/drivecore/mycoder/issues/153)
23+
124
# [0.9.0](https://github.com/drivecore/mycoder/compare/v0.8.0...v0.9.0) (2025-03-11)
225

326

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mycoder-monorepo",
3-
"version": "0.9.0",
3+
"version": "0.10.1",
44
"type": "module",
55
"private": true,
66
"packageManager": "[email protected]",

packages/agent/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mycoder-agent",
3-
"version": "0.9.0",
3+
"version": "0.11.0",
44
"description": "Agent module for mycoder - an AI-powered software development assistant",
55
"type": "module",
66
"main": "dist/index.js",

packages/agent/src/core/llm/providers/anthropic.ts

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,16 @@ function addCacheControlToMessages(
5757
if (typeof m.content === 'string') {
5858
return {
5959
...m,
60-
content: [
61-
{
62-
type: 'text',
63-
text: m.content,
64-
cache_control: { type: 'ephemeral' },
65-
},
66-
],
60+
content:
61+
i >= messages.length - 2
62+
? [
63+
{
64+
type: 'text',
65+
text: m.content,
66+
cache_control: { type: 'ephemeral' },
67+
},
68+
]
69+
: m.content,
6770
};
6871
}
6972
return {

packages/agent/src/core/toolAgent/config.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,15 +144,15 @@ export function getDefaultSystemPrompt(toolContext: ToolContext): string {
144144
'',
145145
'## GitHub Mode',
146146
'GitHub mode is enabled. You should work with GitHub issues and PRs as part of your workflow:',
147-
'- Start from existing GitHub issues or create new ones for tasks',
147+
'- Start from existing GitHub issues (gh issue view 21) or create new ones (gh issue create) for tasks',
148148
"- Create branches for issues you're working on",
149149
'- Make commits with descriptive messages',
150-
'- Create PRs when work is complete',
150+
'- Create PRs when work is complete (gh pr create)',
151151
'- Create additional GitHub issues for follow-up tasks or ideas',
152152
'',
153-
'You can use the GitHub CLI (`gh`) for all GitHub interactions.',
153+
'You should use the Github CLI tool, gh, and the git cli tool, git, that you can access via shell commands.',
154154
'',
155-
'When creating GitHub issues, PRs, or comments, use temporary markdown files for the content instead of inline text:',
155+
'When creating GitHub issues, PRs, or comments, via the gh cli tool, use temporary markdown files for the content instead of inline text:',
156156
'- Create a temporary markdown file with the content you want to include',
157157
'- Use the file with GitHub CLI commands (e.g., `gh issue create --body-file temp.md`)',
158158
'- Clean up the temporary file when done',

packages/agent/src/tools/system/shellMessage.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@ const parameterSchema = z.object({
5858
.boolean()
5959
.optional()
6060
.describe(
61-
'Whether to show the input in the logs (default: false or value from shellStart)',
61+
'Whether to show the input to the user, or keep the output clean (default: false or value from shellStart)',
6262
),
6363
showStdout: z
6464
.boolean()
6565
.optional()
6666
.describe(
67-
'Whether to show output in the logs (default: false or value from shellStart)',
67+
'Whether to show output to the user, or keep the output clean (default: false or value from shellStart)',
6868
),
6969
});
7070

packages/agent/src/tools/system/shellStart.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,15 @@ const parameterSchema = z.object({
4141
showStdIn: z
4242
.boolean()
4343
.optional()
44-
.describe('Whether to show the command input in the logs (default: false)'),
44+
.describe(
45+
'Whether to show the command input to the user, or keep the output clean (default: false)',
46+
),
4547
showStdout: z
4648
.boolean()
4749
.optional()
48-
.describe('Whether to show command output in the logs (default: false)'),
50+
.describe(
51+
'Whether to show command output to the user, or keep the output clean (default: false)',
52+
),
4953
});
5054

5155
const returnSchema = z.union([

packages/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "mycoder",
33
"description": "A command line tool using agent that can do arbitrary tasks, including coding tasks",
4-
"version": "0.9.0",
4+
"version": "0.11.0",
55
"type": "module",
66
"bin": "./bin/cli.js",
77
"main": "./dist/index.js",

0 commit comments

Comments
 (0)