> **Start here for agents.** No account is needed. The full steps, in order, are in https://harny.ai/auth.md. The index of every page is https://harny.ai/llms.txt. > Never print, commit or ask for an app key. Provision the app once and reuse its key. Do not provision on every run. Keys are server-side secrets. Never put one in browser or mobile code. > Write no API call from memory. Read the machine-readable description at https://harny.ai/openapi.json. > Every refusal uses a JSON body with code, status, debugMessage and data. Codes and what each means: https://harny.ai/docs/memory-api/errors.md # Long jobs > A long job lets the agent work through a bigger task over several turns, in a folder you choose. ## What a long job is A long job is the same agent loop with a bigger budget and a folder to work in. Long jobs are part of the Python SDK (`pip install harny`, module `harny.agent`). They are off by default. You turn them on with `long_task` in `AgentConfig`. The model runs on your own model key. Harny never sees it. For the basic agent setup, see [Agent harness overview](/docs/agent-harness/overview). For the memory a job can read, see [Memory API](/docs/memory-api/overview). ## Set up a long job Pass a `LongTaskConfig` with a workspace folder, then start the job with `run_task`: ```python from harny.agent import Agent, AgentConfig, FileSessionStore from harny.agent.long_task import LongTaskConfig agent = await Agent.create( harny=harny, provider="your-provider", model="your-model-id", config=AgentConfig( instructions="You work through a folder of tenant emails for the office manager.", long_task=LongTaskConfig(workspace="./jobs/renewals"), ), store=FileSessionStore("./data/sessions"), ) result = await agent.run_task(user="demo-user", message="List the tenants whose lease ends within 45 days.") ``` ## Limits per turn | Limit | Default | |---|---| | Model calls per turn | 100 | | Seconds per turn | 3,600 | | Turns in a chain | up to 10 | | Spend cap | 5,000,000 tokens | ## Folder and shell The folder and any shell are yours. Harny hosts nothing for a long job. Choose a workspace path your deploy can write to, and review what the job can run before you turn it on. ## Backup model on errors The job runs on the one model you set. On a transient provider error, the SDK retries the call twice. If it still fails, the turn stops and says why. You can run the same job again with the same message to resume. ## Example: leases ending soon Put the tenant emails in the workspace folder. Then ask the job: > List the tenants whose lease ends within 45 days. The run answers with the list it finds. Check the answer against the emails before you act on it. ## Next - [Agent harness overview](/docs/agent-harness/overview) - [Permissions](/docs/agent-harness/permissions) - [Limits](/docs/agent-harness/limits)