
Security News
npm Tooling Bug Incorrectly Marks One-Character Packages as Security Holders
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.
@morphllm/subagents
Advanced tools
Modular AI subagents for document processing - DOCX editing, PDF filling, and more
Modular AI subagents for document processing. Built for use with OpenAI-compatible APIs.
npm install @morphllm/subagents
| Subagent | Description | Status |
|---|---|---|
| DOCX | Track changes, comments, and document editing | Available |
| Form filling and annotations | Coming Soon |
import { DocxClient } from '@morphllm/subagents/docx';
const client = new DocxClient();
// Upload a document
const doc = await client.upload(file);
// Read content
const content = await client.read(doc.doc_id);
// Add comments and track changes
await client.edit(doc.doc_id, [
{ type: 'add_comment', para_text: 'Introduction', comment: 'Needs citation' },
{ type: 'insert_text', para_text: 'Introduction', after: '.', new_text: ' [1]' },
]);
// Download the edited document
const blob = await client.download(doc.doc_id);
import OpenAI from 'openai';
import { DocxAgent } from '@morphllm/subagents/docx';
const openai = new OpenAI({
apiKey: process.env.OPENAI_API_KEY,
});
const agent = new DocxAgent({
openai,
documentId: 'your-doc-id',
});
// Run with natural language
const result = await agent.run('Review this contract and flag any issues');
console.log(result.response);
console.log(result.toolCalls);
// Or stream for real-time UI
for await (const event of agent.runStream('Add comments to unclear sections')) {
if (event.type === 'content_delta') {
process.stdout.write(event.delta.text);
} else if (event.type === 'tool_start') {
console.log(`\nExecuting: ${event.tool.name}`);
}
}
import OpenAI from 'openai';
import { DocxAgent } from '@morphllm/subagents/docx';
const openai = new OpenAI({
apiKey: process.env.KIMI_API_KEY,
baseURL: 'https://api.moonshot.cn/v1',
});
const agent = new DocxAgent({
openai,
model: 'moonshot-v1-32k',
});
// Import everything
import { DocxClient, DocxAgent, BaseClient } from '@morphllm/subagents';
// Import specific modules
import { DocxClient, DocxAgent } from '@morphllm/subagents/docx';
import { BaseClient, BaseAgent } from '@morphllm/subagents/core';
Extend the base classes to create your own subagents:
import { BaseClient, BaseAgent } from '@morphllm/subagents/core';
import type { Tool } from '@morphllm/subagents/core';
class MyClient extends BaseClient {
protected getDefaultApiUrl() {
return 'https://my-api.example.com';
}
async myMethod() {
return this.get('/my-endpoint');
}
}
class MyAgent extends BaseAgent<MyClient> {
protected getDefaultModel() {
return 'gpt-4';
}
protected getDefaultInstructions() {
return 'You are a helpful assistant.';
}
protected getTools(): Tool[] {
return [/* your tools */];
}
protected async executeTool(name: string, args: Record<string, unknown>) {
// Execute tool calls
}
}
| Variable | Description | Default |
|---|---|---|
DOCX_API_URL | DOCX service URL | Railway deployment |
MIT
FAQs
Subagent SDK - planning, filesystem, subagents, teams, DOCX, and more
The npm package @morphllm/subagents receives a total of 20 weekly downloads. As such, @morphllm/subagents popularity was classified as not popular.
We found that @morphllm/subagents demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.

Research
/Security News
Newer packages in this compromise use native extensions and .pth loaders to execute JavaScript stealers in developer environments.

Research
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.