agentc
GitHubagentc-sh/agentc
agentc
GitHubagentc-sh/agentc
›Introduction
Get started›Concepts in 5 minutes›Build your first agent›Add your first tool›Serve and connect
Concepts›Architecture overview›The manifest›The compilation pipeline›Archetypes›The graph›Tools and capabilities›Runtime libraries›Skills›Agents and prompts›Serving and protocols›Observability
Guides›Author a manifest›Write a tool›Give your agent a filesystem›Control network egress›Connect external tools via MCP›Connect agents via A2A›Use the bash tool›Control tool access with capabilities›Write templated prompts›Manage prompts with Langfuse›Pass context from the client›Configure a model provider›Connect a CopilotKit frontend›Deploy a standalone binary›Deploy with Docker and PostgreSQL›Instrument with OpenTelemetry›Extend code generation with blocks
Reference
›agentc init›agentc tool init›agentc build›agentc run›agentc generate›agentc inspect
Manifest
Runtime
›Observability

agentc tool init

Scaffold a new tool source directory.

agentc tool init scaffolds a new tool package for the given language with the correct structure, dependencies, and TDK integration pre-configured.

agentc tool init <NAME> --language <LANGUAGE> [OPTIONS]

Arguments

ArgumentDescription
NAMEName of the tool package. Used as the package name and as the default directory name.

Options

FlagShortDefaultDescription
--language <LANGUAGE>-lrequiredLanguage for the tool package. Accepted values: python, javascript.
--directory <DIR>-d./<NAME>Directory to create the package in.
--forcefalseOverwrite if the target directory already exists and is non-empty.
--format <FORMAT>autoOutput format. auto selects TTY or plain based on the terminal.

Examples

Scaffold a Python tool:

agentc tool init weather --language python

Scaffold a JavaScript tool:

agentc tool init math --language javascript

Output

On success, the command prints:

 ✓ Created weather

The generated package is immediately usable. For Python, install dependencies with uv sync. For JavaScript, install with pnpm install. The TDK dependency and the runtime stubs are pre-configured in both cases so you can start implementing tool logic right away.

Generated package

For JavaScript, the command writes a ready-to-use package with the tool development kit, runtime type stub reference, package metadata, and entry point already configured.

For Python, the command writes a ready-to-use package with a pyproject.toml, the tool development kit dependency, and a typed package directory for the tool implementation.

See Write a tool for details on the tool API and how to declare the tool in your manifest.

← Previousagentc initNext →agentc build

© 2026 pogue.dev. All rights reserved.

Creative CommonsCC BY 4.0
On this pageArgumentsOptionsExamplesOutputGenerated package

Search docs

Search the agentc documentation