Metadata-Version: 2.4
Name: agent-shell-py
Version: 0.1.0
Summary: A lightweight abstraction for executing CLI coding agents headlessly
Requires-Python: >=3.12
Description-Content-Type: text/markdown

# Agent Shell
Agent Shell is a light weight abstraction for executing a cli coding agent headlessly
and returning the output that can be used programatically as a unified contract

## Examples

### Execute

```python
from agent_shell.shell import AgentShell
from agent_shell.models.agent import AgentType

shell = AgentShell(agent_type=AgentType.CLAUDE_CODE)

response = await shell.execute(
    cwd="/path/to/project",
    prompt="Can you tell me about this project?",
    allowed_tools=["Read", "Glob", "Grep"],
    model="sonnet",
)

print(response.response)
print(f"Cost: ${response.cost:.4f}")
```

### Stream

```python
from agent_shell.shell import AgentShell
from agent_shell.models.agent import AgentType

shell = AgentShell(agent_type=AgentType.CLAUDE_CODE)

async for event in shell.stream(
    cwd="/path/to/project",
    prompt="Refactor the auth module",
    allowed_tools=["Read", "Edit", "Bash"],
    model="sonnet",
    effort="high",
    include_thinking=True,
):
    print(f"[{event.type}] {event.content}")
```

## Supported CLI Agents:

- [x] Claude Code
- [ ] OpenCode
- [ ] Gemini CLI
- [ ] Copilot CLI
- [ ] Codex




