NAME
@tlelabs/raw v0.1.6 MIT Node.js 22.13+
The agent harness you can fork.
The tool loop, context compaction, saved sessions, approvals and a dashboard already work. Every tool, skill, hook and policy is a file you can change, so you build an internal agent or a coding agent by editing parts, not by starting from an empty loop.
npm install -g @tlelabs/rawInstalls the raw command globally. Then run raw config init.
npx @tlelabs/raw --helpRuns once without a global install. Then run raw config init.
npm install -g github:lploc94/raw-cliBuilds the latest default branch from source. Then run raw config init.
◆ raw · agent raw · model local~/projects/api ❯ Why does the session test time out?◌ Thinking…↳ read_file tests/session.test.ts✓ read_file 41ms$ bash npm test -- session✓ bash 2.8s● The fixture never closes its socket, so the runner waits for the 3 s deadline. Close it in afterEach. ✓ Done · 6.4s · 2 tools Context ▰▰▰▱▱▱▱▱▱▱ ~9.6k / 32k · 30% used↪ raw --continue "Apply the fix"❯
EXAMPLES
Start from a working agent. Make it yours.
CODING AGENT
raw --agent reviewerYour team's conventions, built in
Write the conventions and review checklist as skills, allow the test command with a rule, and fork edit_file if your repository needs a different edit format.
OPS AGENT
"effect": "ask"Only the commands you approved
Policy rules allow the read-only commands, ask before a deploy and deny the rest. Hooks log or block every call before it runs.
INTERNAL AGENT
raw dashboardYour systems, without a shell
Connect internal systems through MCP and variables, select no Bash at all, and hand the team a package they install in one step.
DESCRIPTION
Every part is a file you can change.
models describe how to reach an upstream model. agents pick one model and decide exactly which tools, skills, hooks and variables that run may use. Several agents can share a model and still see different toolsets, and a request carries only what its agent was given.
- ToolsFourteen built-ins ship as editable plugins. Fork one with Fork to local, or write your own as one index.mjs.
- SkillsMarkdown procedures an agent can list and load on demand, including seven packaged setup skills.
- PolicyOrdered rules allow, ask or deny a tool or an argument pattern before the call runs.
- HooksCommands on session, turn and tool events that can deny a prompt or tool call, with a receipt for every run.
- MCPSelected tools from Model Context Protocol servers sit alongside built-ins.
- VarsRead-only values from config, environment, files or executable providers.
- DashboardFork, edit and attach parts from the Library in your browser, and see which agents use each one.
- PackagesShip an agent with its tools and skills as one .rawpkg archive that your team installs.
read_filewrite_fileedit_fileapply_patchbashpowershellprocessview_imagelist_skillsload_skilllist_varsread_vartodoask_user
{
"default_agent": "raw",
"models": {
"local": {
"provider": "ollama",
"method": "openai-chat-completions",
"model_id": "YOUR_INSTALLED_MODEL",
"base_url": "http://127.0.0.1:11434/v1",
"context_window_tokens": 32768
}
},
"agents": {
"raw": {
"model": "local",
"tools": {
"use": ["builtin/read_file", "builtin/bash"],
"rules": [{ "match": "builtin/bash", "effect": "ask" }]
},
"compact": { "trigger_tokens": 24000 }
}
}
}SURFACES
One runtime, three ways in.
TERMINAL
$ raw "task"One-shot runs and a saved REPL
Stream Markdown answers and tool activity, then pick the session back up with --continue or --resume. Redirected output stays plain for scripts.
DASHBOARD
$ raw dashboardA local browser workspace
Chat, inspect reasoning and context usage, answer approvals, and manage agents, models, tools, skills, vars, MCP and packages. Setup works without a model connection.
ACP
$ raw --acp --stdioInside editors and parent agents
Serve the Agent Client Protocol over stdio or a local WebSocket. Parent agents can drive sessions and register temporary reverse tools.

raw dashboard serves this app from your machine. Nothing is hosted.MODELS
Bring the model. Raw keeps the budget visible.
Choose the wire API per model; it never follows from the provider name. Raw estimates current context every turn, shows reported input, output and cache reads when the provider supplies them, and compacts older turns automatically before the model's context window fills.
Context and compaction →| method | typical service |
|---|---|
openai-chat-completions | OpenAI, DeepSeek, OpenRouter, Ollama, compatible gateways |
openai-responses | OpenAI |
anthropic-messages | Anthropic or compatible gateway |
google-generate-content | Gemini or compatible gateway |
CAVEATS
It runs as you.
Tool calls run automatically with your operating-system account's permissions. The working directory resolves relative paths; it is not a sandbox. Give an agent tools.rules toask before or deny specific tools and patterns — -y cannot bypass an explicit ask.
EXIT STATUS
- 0
- complete
- 1
- runtime error
- 2
- invalid input
- 3
- max steps
- 130
- cancelled
SEE ALSO
Start with one agent and one model.
npx @tlelabs/raw config init