@backendkit-labs/agent-coding 0.14.0 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +114 -0
  2. package/package.json +1 -1
package/README.md ADDED
@@ -0,0 +1,114 @@
1
+ # @backendkit-labs/agent-coding
2
+
3
+ Coding agent for the BackendKit agent framework — 10 specialized agents, file tools, git integration, LLM providers.
4
+
5
+ ```bash
6
+ npm install @backendkit-labs/agent-coding
7
+ ```
8
+
9
+ > **Quickstart**: `npx create-bk-agent my-project` — scaffolds a complete project in seconds.
10
+
11
+ ---
12
+
13
+ ## Usage
14
+
15
+ ```ts
16
+ import { createCodingEngine } from '@backendkit-labs/agent-coding';
17
+ import { CallbackTransport } from '@backendkit-labs/agent-core';
18
+
19
+ const transport = new CallbackTransport((event) => {
20
+ if (event.type === 'token') process.stdout.write(event.content);
21
+ });
22
+
23
+ const engine = createCodingEngine({
24
+ providers: { anthropic: { apiKey: process.env.ANTHROPIC_API_KEY! } },
25
+ defaultProvider: 'anthropic',
26
+ workingDir: process.cwd(),
27
+ appName: 'my-agent',
28
+ transport,
29
+ });
30
+
31
+ await engine.run('Add error handling to src/api/users.ts');
32
+ ```
33
+
34
+ ---
35
+
36
+ ## Providers
37
+
38
+ ```ts
39
+ import { AnthropicProvider, OpenAICompatibleProvider } from '@backendkit-labs/agent-coding';
40
+
41
+ // Anthropic
42
+ new AnthropicProvider(apiKey, model?)
43
+
44
+ // OpenAI / DeepSeek / Ollama / any OpenAI-compatible
45
+ new OpenAICompatibleProvider({ apiKey, baseUrl, model })
46
+ ```
47
+
48
+ ---
49
+
50
+ ## Built-in agents (10)
51
+
52
+ | Agent | ID | Specialty |
53
+ |---|---|---|
54
+ | General | `general` | Orchestrator — routes to specialists |
55
+ | Coder | `coder` | Implementation, bulk edits |
56
+ | Backend | `backend` | APIs, databases, services |
57
+ | Frontend | `frontend` | UI, components, CSS |
58
+ | QA Engineer | `qa-engineer` | Tests, edge cases, code review |
59
+ | Security | `security` | Vulnerabilities, hardening |
60
+ | Architecture | `architecture` | Design, patterns, ADRs |
61
+ | Infrastructure | `infrastructure` | Docker, CI/CD, cloud |
62
+ | Data | `data` | Pipelines, models, queries |
63
+ | Project Manager | `project-manager` | /init workflow, planning |
64
+
65
+ ---
66
+
67
+ ## Built-in tools
68
+
69
+ File operations (`read_file`, `write_file`, `edit_file`, `list_directory`, `search_files`),
70
+ command execution (`run_command`), memory (`save_learning`, `save_context`, `update_session`),
71
+ audit trail (`save_audit`).
72
+
73
+ All file tools are sandboxed to `workingDir` — path traversal is blocked at the framework level.
74
+
75
+ ---
76
+
77
+ ## Skills
78
+
79
+ Skills inject domain knowledge into the agent's context when triggered by keywords.
80
+
81
+ ```ts
82
+ // Built-in global skills (always available)
83
+ // conventional-commits, code-review, tdd, adr, security-checklist
84
+
85
+ // Built-in language packs (activated by detected stack)
86
+ // node-pack, python-pack, go-pack, java-pack, kotlin-pack
87
+
88
+ // Install external skill packs
89
+ // /skills install https://github.com/my-org/my-skills
90
+ ```
91
+
92
+ ---
93
+
94
+ ## createCodingEngine options
95
+
96
+ ```ts
97
+ createCodingEngine({
98
+ providers, // { [id]: { apiKey, model?, baseUrl? } }
99
+ defaultProvider, // provider ID to use by default
100
+ workingDir, // project root — all file tools are scoped here
101
+ appName, // used for ~/.{appName}/ data directory
102
+ transport, // CallbackTransport | StdoutTransport
103
+ maxIterations?, // default: 50
104
+ iterationMode?, // 'interactive' | 'auto' | 'step-by-step'
105
+ mcpServers?, // MCP server configs for external tool providers
106
+ orchestration?, // enable orchestration pipeline (risk scoring, gates)
107
+ })
108
+ ```
109
+
110
+ ---
111
+
112
+ ## License
113
+
114
+ MIT © [BackendKit Labs](https://github.com/BackendKit-labs)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backendkit-labs/agent-coding",
3
- "version": "0.14.0",
3
+ "version": "0.15.0",
4
4
  "description": "Coding agent profiles and tools for @backendkit-labs/agent-core",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",